From patchwork Tue Apr 25 21:43:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Brattlof X-Patchwork-Id: 13223820 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49047C77B7C for ; Tue, 25 Apr 2023 21:44:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/CIrBZxJ0RaJTs3HAxCVCoP/JH+E+00w4aqm6IIQAyw=; b=Oeo5/BGfEVebPP mYaI4Gw20ci4jJuwhS1Jz4BpMondiNJnIOjFE+XsN0vlgXKlfVN2kXHDrVbXM6DoL/d7Ga/eKOpbW WJohAhAfTY1iOELuDeKe4QlVvzvGDeti/F0IO/WiBRLDLi2TXPnQdbStawQGZ47wXGUEYlKTVkKT/ bgDY9osq3J8ap9wFDqCp/y7wbl+vGlP6Nk90ipo1SjZfoxjB9hqxIqksZSdiYlTUnX/rXuhb5xEo8 XBb37A0uKkVOsy7iO3utShvZQ71W+pybVilbbI4D6Lz5eZeLnwHFvmG+saWh+c6TGCsqxSXx3BYnb cMPYzeVg8TjMgLc9cfOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1prQRZ-002Ghj-2V; Tue, 25 Apr 2023 21:43:25 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1prQRW-002GhG-2c for linux-arm-kernel@lists.infradead.org; Tue, 25 Apr 2023 21:43:24 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33PLhF4T016097; Tue, 25 Apr 2023 16:43:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682458996; bh=hcVxdL4FLx0hwez58KXLcmrDbTt3daM5J0GsmRhVUBA=; h=From:To:CC:Subject:Date; b=M/hSWS/cqNnJ/o1OdF7AcgFKtk7hf4VrkISg9ngtj97mNxN8OVXiN39Qz4dgurDQl II3Sq+VR8JdBgU43rzI6zUMrx6Az47YpHvmYbjTbXSsc++7tSYEgDXKuX425irUTug ZGhJm8fQt8e5PscJ0Rwu363Mo07Nxcfnyu9tkccs= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33PLhFNJ051766 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Apr 2023 16:43:15 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE104.ent.ti.com (157.170.170.34) 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 16:43:14 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE104.ent.ti.com (157.170.170.34) 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 16:43:14 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33PLhEYn035712; Tue, 25 Apr 2023 16:43: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] arm64: dts: ti: k3-am62a7-sk: Describe main_uart1 and wkup_uart Date: Tue, 25 Apr 2023 16:43:11 -0500 Message-ID: <20230425214311.546191-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=2715; i=bb@ti.com; h=from:subject; bh=cGB/F/c+1FRJZb3sIYvgjqiJFwIX3JQVRIqE0qqvbfY=; b=owNCWmg5MUFZJlNZ/BeK8wAAYP///r9f72/5353mfd81vTej32pjUvV/Sv/d2vjv3/p8/06wA Rsa2QBoMjQDEZAAGmEyYTTIaDQyAA0YBGCA0aMEyMgAaaAyGmI0GQBkeUMiaANBoaNNAABo0DQD QaAA00aaGjQ0MgDEyaaPU2iD1NMgDRo0ZMENqDTEehEPUMgZD0QDJo00Mah6QaNAyDIGgNNAADI MhiGQAAMIDRpiZAwgZGQ9T1NBgxHE2lLDJQhsaPBeGiw3yhwR0EVsm4CdX1RXPokw3YGWW+ZFin NHNxb3+gL1FCE0l6LqVnygPQTL1wu0BmKOeGV+Op7L/T0oYkTYoCwjFobQmgh4g8/wLjA4+HAVo 0yXrBA8mFiXTAL+E03UtdYXMVTKsy3bCuq9uVSkPR7KrMP3c7psgixJT9xe9YDuM21ndjaRr9ry uubUbJR27jH5HROl1zyT8wjFuYOy7iLnHCdaLeMJ906UAyN9Re8F/W4RUJCzxERGg7NA51TU3F7 /nTow+8DCmZ0AB33vGJx5BgB0ztUeZLSOqUzgbWKDHAmYEGSaKMZyWOP3zoMfHwGAn4mcoxgSR6 nQjRBj60OLHrreQdIYphBAKgEcmcsX0umsH4dDB5vgIzlZv9ayVSJAVYe0KIEKT9wq5iAOQxP6j BABVf4u5IpwoSH4LxXm X-Developer-Key: i=bb@ti.com; a=openpgp; fpr=D3D177E40A38DF4D1853FEEF41B90D5D71D56CE0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230425_144323_020323_F8E957BF X-CRM114-Status: GOOD ( 13.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 v1: [0] - Updated $subject to align with previous commits [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"; };