Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2783487rwd; Fri, 2 Jun 2023 14:53:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5jsrsLNjF9HgCeS0gL1OfxdAMajNXf1B+c8/MwmCsNGqBe+6H29dorQHcglP+B6yIHEjBH X-Received: by 2002:a17:90a:450e:b0:253:26e5:765a with SMTP id u14-20020a17090a450e00b0025326e5765amr844613pjg.48.1685742815781; Fri, 02 Jun 2023 14:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685742815; cv=none; d=google.com; s=arc-20160816; b=IfU2fbYd3KR1M617Qrt3VdU2Cbof0B8XLEzTowPntPcIewqiUKkwRt8PiXaYGO5BzI mA9RU3XXQFyhWxPNe/VkGtSZ8R35clBHQoPyJYt8Nkkm8l2vI/ASOSP4tEwzL6EeCK+J lhELHDRq/PhSCZaOMpC8eMel5d+IObDEVssu7BxpPlWPO/vvjZqLbfTCg8eJC4S1EFg9 nB4iURhC07s9siJal0bPmVbs+kSAVDAkyrrrPcCC1O7UUafFPK7RPj1xk2Ioe2r/bv/p rX9+DH58dUAeAxaLs5lsfBt4BzRnAzW3wC3+OwTp7EhjTC5s69idHu9SoqJkcKaws7kt wBHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TMNSZMGkksF+J7rQabIxoZP4bfr+ASz+Tbwfb4Ef9wE=; b=E0UuzucXoyt0hxKA7lKYLolwPSwN9EMZNMDvIdXjxTdl8EtpSmJD9fe3TSMH/Qh3ls jy5LHlB7Woy/0G7OGG0uQd70lgH+5lW8NsM9jbuLX9HlFKtXjbzwvHo/beYiKmZSeSpk fOe4AhCGEceEd1ZQihVKV4vQ7/RsCQbR9zqHjsYi/AERWgAAjB9v5IvOi6s4mIk/38ZB y29UeepJPEc+XnVza/l3yR6F0WLSIUCpo5s+Ae1TaDUarDOFEPzRjPC9UY1dAhxYITCQ F57f124vcibpxlTaJ0RbdAyudE0tErh7e/Gci2UXUACP9j+g2FGhckQtBEqieIn6A+P0 gMBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PoGxlVSR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 30-20020a17090a191e00b0025352448b95si3285929pjg.172.2023.06.02.14.53.21; Fri, 02 Jun 2023 14:53:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PoGxlVSR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236670AbjFBVtw (ORCPT + 99 others); Fri, 2 Jun 2023 17:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236491AbjFBVtr (ORCPT ); Fri, 2 Jun 2023 17:49:47 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F183F1B5; Fri, 2 Jun 2023 14:49:46 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 352Lndl2103185; Fri, 2 Jun 2023 16:49:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1685742579; bh=TMNSZMGkksF+J7rQabIxoZP4bfr+ASz+Tbwfb4Ef9wE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PoGxlVSRkb31KYp2WtztBplHhm9+ATw+kN4SBI9nhNbITExO8JkM/ikvKfvckp1SW LOBwRo/TbBR/XOuWqHkvFiip5wFcm8mPFQpWdx5Bmxsd+Go5xlhYaePId2fYiHgBBn lB3u/bj/5WlOeRVAd4N1mC6tn/XSs0G7j+zUm27I= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 352Lnd07059494 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 2 Jun 2023 16:49:39 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) 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.23; Fri, 2 Jun 2023 16:49:38 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Fri, 2 Jun 2023 16:49:39 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 352LndBR006136; Fri, 2 Jun 2023 16:49:39 -0500 From: Nishanth Menon To: Conor Dooley , Krzysztof Kozlowski , Rob Herring , Tero Kristo , Vignesh Raghavendra CC: , , , Nishanth Menon , Udit Kumar , Nitin Yadav , Neha Malcom Francis , Sinthu Raja , Thejasvi Konduru , Dasnavis Sabiya Subject: [PATCH 6/8] arm64: dts: ti: k3-am69-sk: Add mcu and wakeup uarts Date: Fri, 2 Jun 2023 16:49:35 -0500 Message-ID: <20230602214937.2349545-7-nm@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230602214937.2349545-1-nm@ti.com> References: <20230602214937.2349545-1-nm@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add wakeup and MCU uart. This allows the device tree usage in bootloader and firmwares that can configure the same appropriately. Signed-off-by: Nishanth Menon --- Depends on https://lore.kernel.org/linux-arm-kernel/20230503083143.32369-1-t-konduru@ti.com/ arch/arm64/boot/dts/ti/k3-am69-sk.dts | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti/k3-am69-sk.dts index ae41ff6249a1..409fcbaf0126 100644 --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts @@ -21,6 +21,8 @@ chosen { }; aliases { + serial0 = &wkup_uart0; + serial1 = &mcu_uart0; serial2 = &main_uart8; mmc1 = &main_sdhci1; i2c3 = &main_i2c0; @@ -141,6 +143,22 @@ J784S4_IOPAD(0x0C4, PIN_INPUT, 7) /* (AD36) ECAP0_IN_APWM_OUT.GPIO0_49 */ }; &wkup_pmx2 { + wkup_uart0_pins_default: wkup-uart0-pins-default { + pinctrl-single,pins = < + J721S2_WKUP_IOPAD(0x070, PIN_INPUT, 0) /* (L37) WKUP_GPIO0_6.WKUP_UART0_CTSn */ + J721S2_WKUP_IOPAD(0x074, PIN_INPUT, 0) /* (L36) WKUP_GPIO0_7.WKUP_UART0_RTSn */ + J721S2_WKUP_IOPAD(0x048, PIN_INPUT, 0) /* (K35) WKUP_UART0_RXD */ + J721S2_WKUP_IOPAD(0x04c, PIN_INPUT, 0) /* (K34) WKUP_UART0_TXD */ + >; + }; + + mcu_uart0_pins_default: mcu-uart0-pins-default { + pinctrl-single,pins = < + J784S4_WKUP_IOPAD(0x08c, PIN_INPUT, 0) /* (K38) WKUP_GPIO0_13.MCU_UART0_RXD */ + J784S4_WKUP_IOPAD(0x088, PIN_OUTPUT, 0) /* (J37) WKUP_GPIO0_12.MCU_UART0_TXD */ + >; + }; + mcu_cpsw_pins_default: mcu-cpsw-pins-default { pinctrl-single,pins = < J784S4_WKUP_IOPAD(0x02c, PIN_INPUT, 0) /* (A35) MCU_RGMII1_RD0 */ @@ -166,6 +184,19 @@ J784S4_WKUP_IOPAD(0x030, PIN_INPUT, 0) /* (B35) MCU_MDIO0_MDIO */ }; }; +&wkup_uart0 { + /* Firmware usage */ + status = "reserved"; + pinctrl-names = "default"; + pinctrl-0 = <&wkup_uart0_pins_default>; +}; + +&mcu_uart0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mcu_uart0_pins_default>; +}; + &main_uart8 { status = "okay"; pinctrl-names = "default"; -- 2.40.0