From patchwork Tue Apr 25 22:17:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Brattlof X-Patchwork-Id: 677006 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28889C77B7C for ; Tue, 25 Apr 2023 22:17:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236297AbjDYWRZ (ORCPT ); Tue, 25 Apr 2023 18:17:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236180AbjDYWRY (ORCPT ); Tue, 25 Apr 2023 18:17:24 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3405C148; Tue, 25 Apr 2023 15:17:23 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33PMHEk4113983; Tue, 25 Apr 2023 17:17:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682461034; bh=u1H0Fqn/80ve1Ka1YxgqDbspP9wyIsN+1RrZm+j2b9w=; h=From:To:CC:Subject:Date; b=wHr+xS7jjgatSHxdMEGJ0MiUCAthx+YEdp70cAwhRf0mh9GoreN52qD7mNZO59BRY VZW8PFZ1DCDBdA4C5WsOJ+guHq0w5B8qMU+KyI1txdUJH2RSqG++iLBIWjys1vkIti nkXZQ/tI0+15G18gYy4zXv+66UxFSxtb/81WQcO0= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33PMHEbB115073 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Apr 2023 17:17:14 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 25 Apr 2023 17:17:14 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 25 Apr 2023 17:17:14 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33PMHEGx079092; Tue, 25 Apr 2023 17:17:14 -0500 From: Bryan Brattlof To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo CC: Rob Herring , Krzysztof Kozlowski , ARM Linux Mailing List , Device Tree Mailing List , Linux Kernel Mailing List , Bryan Brattlof Subject: [PATCH v3] arm64: dts: ti: k3-am62a7-sk: Describe main_uart1 and wkup_uart Date: Tue, 25 Apr 2023 17:17:08 -0500 Message-ID: <20230425221708.549675-1-bb@ti.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2852; i=bb@ti.com; h=from:subject; bh=q+XzaLEc/0uNV+5CSBhrhUBJplHKivvwB+KJBgr5nE4=; b=owNCWmg5MUFZJlNZSA5eEQAAav///nfdf+v967/39X+13i/y/uu/+e+/e9/d8rjPsPPrjuWwA RswIepoyANAMjIAAaNDQaZGgaNDRoAAaADTQAAMgGmgaGhoaDaj0Rppk9EYJhqHQBpoBoaNMmga ZBiDTCaGRoBoYRoGQGIaNGmjAQBo0AGRk0Bpp6jTIBoAAyAaGg9TRk000A0aYRkaAAAZNAMmJkx BhDQA0NMIAGho0ZGgaDEMmmQYQAAIEWhOQvCjgeJBRADOJ6KcAkLBk7GdpgNa9jQr42ffZPN6Av K4XA57vDCdA/jMOU8HyrJn9syAfDjGolJesIRNR87sx/OqYYBA13Km1ZBxbhKeTzHTl4IwiRk1Y DgFqeGc7vN6RNTuMSBNskeXE3PgopoEZVHAvYDVoK+h87XY55aAso7NlWq53cp2yQZsahjanXQs gzCrD9Rg9aMWU+W0XFE555KJq8FCGGnQIllR1eis3AF7s1hhMTuAnWslfGaUTArymWoKgMc2tx7 v62h8amjyZ1Yz5DiQ4VCrjz8325IUAEiCObozIDU8TFMhkAVT25NEFuuwCdmfSUfCNyOVIcZAs8 BeCvXZq+DeFa0QyNbMVi5q0AMMB7eyPqQN+pZuWVZEF0p0keAHiNAtYy10jJZzYkiLhIpSSbcg4 ES04BZyIJ/JTf+LuSKcKEgkBy8IgA== X-Developer-Key: i=bb@ti.com; a=openpgp; fpr=D3D177E40A38DF4D1853FEEF41B90D5D71D56CE0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Nishanth Menon wkup_uart and main_uart1 on this platform is used by tifs and DM firmwares. Describe them for completeness including the pinmux. Signed-off-by: Nishanth Menon [bb@ti.com: updated pinmux and commit subject] Signed-off-by: Bryan Brattlof --- Changes from v2: [1] - Included the patch version to the $subject Changes from v1: [0] - Updated $subject to align with previous commits [1] https://lore.kernel.org/lkml/20230425214311.546191-1-bb@ti.com/ [0] https://lore.kernel.org/linux-devicetree/20230424183355.68360-1-bb@ti.com/ arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 40 +++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) base-commit: 891db0c48efb48c3af334006f9d7ea6a0aa49cb9 diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index f6a67f072dca6..65caa5611d6d5 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -17,7 +17,9 @@ / { model = "Texas Instruments AM62A7 SK"; aliases { + serial0 = &wkup_uart0; serial2 = &main_uart0; + serial3 = &main_uart1; mmc1 = &sdhci1; }; @@ -114,11 +116,38 @@ led-0 { }; }; +&mcu_pmx0 { + wkup_uart0_pins_default: wkup-uart0-pins-default { + pinctrl-single,pins = < + AM62AX_MCU_IOPAD(0x0024, PIN_INPUT, 0) /* (C9) WKUP_UART0_RXD */ + AM62AX_MCU_IOPAD(0x0028, PIN_OUTPUT, 0) /* (E9) WKUP_UART0_TXD */ + AM62AX_MCU_IOPAD(0x002c, PIN_INPUT, 0) /* (C10) WKUP_UART0_CTSn */ + AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */ + >; + }; +}; + +/* WKUP UART0 is used for DM firmware logs */ +&wkup_uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&wkup_uart0_pins_default>; + status = "reserved"; +}; + &main_pmx0 { main_uart0_pins_default: main-uart0-pins-default { pinctrl-single,pins = < - AM62AX_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14) UART0_RXD */ - AM62AX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */ + AM62AX_IOPAD(0x1c8, PIN_INPUT, 0) /* (E14) UART0_RXD */ + AM62AX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (D15) UART0_TXD */ + >; + }; + + main_uart1_pins_default: main-uart1-pins-default { + pinctrl-single,pins = < + AM62AX_IOPAD(0x01e8, PIN_INPUT, 1) /* (C17) I2C1_SCL.UART1_RXD */ + AM62AX_IOPAD(0x01ec, PIN_OUTPUT, 1) /* (E17) I2C1_SDA.UART1_TXD */ + AM62AX_IOPAD(0x0194, PIN_INPUT, 2) /* (C19) MCASP0_AXR3.UART1_CTSn */ + AM62AX_IOPAD(0x0198, PIN_OUTPUT, 2) /* (B19) MCASP0_AXR2.UART1_RTSn */ >; }; @@ -254,6 +283,13 @@ &main_uart0 { pinctrl-0 = <&main_uart0_pins_default>; }; +/* Main UART1 is used for TIFS firmware logs */ +&main_uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&main_uart1_pins_default>; + status = "reserved"; +}; + &usbss1 { status = "okay"; };