From patchwork Tue Aug 27 10:56:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavya Kapoor X-Patchwork-Id: 13779321 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 92885C54734 for ; Tue, 27 Aug 2024 10:59:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: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:List-Owner; bh=zPbib7xbMUlrnvdopHSHphG/Tp3WBjra4xzF/7bFHgw=; b=EuNvAj1pjVnMhj/4ZKMBw7hNav HhPV7AGfZM95H7Ki4eMsAObx1IoGf3td3gV1wYM3SYWG5FRoNz9xqL6zFxpd+Gig6lQSHok2QCtBK +Z3ZCh05gNHnN9bNT4h1qlBCfDgmQ+2HuzwzGQhFL9c3xtOWt7ADZZizsFwOKr9jydflGq4XSWhLS C06AOirhmv1//nwWbjBYPJKPBAWEP5SB3BU40iDze3bJC4Y83+oZP6xfkhy3OHuJyrGpsvcOUntHD puJJlKJH57oHAVxgDFzMVIWUgKxiLjYwDzHebSDaFVQnoNqHcokKOWiSncpyQtrh9bbS6ZykMFEaY U43hc+Ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sitvF-0000000AuXd-0Dsl; Tue, 27 Aug 2024 10:59:37 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sitsa-0000000AtqR-2Ilr for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 10:56:54 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 47RAun1G068796; Tue, 27 Aug 2024 05:56:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1724756209; bh=zPbib7xbMUlrnvdopHSHphG/Tp3WBjra4xzF/7bFHgw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=MloyMNoTQ8DwDwnalFLbExTUodOpCNW4hozGyUef6EG0XLQ8eoqEXHoDqjzx2Bl8j ugMA6OtiJZVRQAQ4fHJqplqN7hpLxCpaRLGIYnXM3AkMXwhYn1kGw0546SKMmO+q33 1UV/DKmSUeAyeT4NHIqKoKPu9M6+dxEuXvf4imPA= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 47RAunxP128162 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Aug 2024 05:56:49 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Aug 2024 05:56:49 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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.23 via Frontend Transport; Tue, 27 Aug 2024 05:56:49 -0500 Received: from localhost (a0498981-hp-z2-tower-g5-workstation.dhcp.ti.com [10.24.68.216]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 47RAumpu051333; Tue, 27 Aug 2024 05:56:48 -0500 From: Bhavya Kapoor To: , CC: , , , , , , , , Subject: [PATCH v2 2/2] arm64: dts: ti: k3-j722s-evm: Describe main_uart5 Date: Tue, 27 Aug 2024 16:26:44 +0530 Message-ID: <20240827105644.575862-3-b-kapoor@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240827105644.575862-1-b-kapoor@ti.com> References: <20240827105644.575862-1-b-kapoor@ti.com> MIME-Version: 1.0 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-20240827_035652_714870_B8B105A4 X-CRM114-Status: GOOD ( 10.93 ) 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 System firmware uses main_uart5 in J722S EVM for trace data. Thus, describe it in device tree for completeness, adding the pinmux and mark it as reserved. Signed-off-by: Bhavya Kapoor --- Link to v1: https://lore.kernel.org/all/20240822053538.10475-1-b-kapoor@ti.com/ changelog v1->v2: - Modified commit message to be more clear - provide documentation on why main_uart5 is reserved arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts index 8daa47a245aa..41c36f82a3c5 100644 --- a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts @@ -20,6 +20,7 @@ / { aliases { serial0 = &wkup_uart0; serial2 = &main_uart0; + serial3 = &main_uart5; mmc0 = &sdhci0; mmc1 = &sdhci1; }; @@ -211,6 +212,13 @@ J722S_IOPAD(0x01cc, PIN_OUTPUT, 0) /* (B22) UART0_TXD */ bootph-all; }; + main_uart5_pins_default: main-uart5-default-pins { + pinctrl-single,pins = < + J722S_IOPAD(0x0108, PIN_INPUT, 3) /* (J27) UART5_RXD */ + J722S_IOPAD(0x010c, PIN_OUTPUT, 3) /* (H27) UART5_TXD */ + >; + }; + vdd_sd_dv_pins_default: vdd-sd-dv-default-pins { pinctrl-single,pins = < J722S_IOPAD(0x0120, PIN_INPUT, 7) /* (F27) MMC2_CMD.GPIO0_70 */ @@ -330,6 +338,13 @@ &main_uart0 { bootph-all; }; +&main_uart5 { + /* MAIN UART 5 is used by System firmware */ + pinctrl-names = "default"; + pinctrl-0 = <&main_uart5_pins_default>; + status = "reserved"; +}; + &mcu_pmx0 { mcu_mcan0_pins_default: mcu-mcan0-default-pins {