Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2395438rwd; Fri, 2 Jun 2023 08:51:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7vtDIlmllqsyfrykjnvTBU5XnhUUX2QVCBDOT+A86+x+1u4pN7aZVYkXksGQX9Qi9/ozjB X-Received: by 2002:a05:6a21:900c:b0:f3:33fb:a62b with SMTP id tq12-20020a056a21900c00b000f333fba62bmr11771209pzb.9.1685721077406; Fri, 02 Jun 2023 08:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685721077; cv=none; d=google.com; s=arc-20160816; b=JM8FeOgKLMlGdXsqgqNIYr5odY6O7E3NK1enGVi84WR4ItJX0VjxcZpax89kif7tXP FNVlWTuNVLJ8wvHq4i0k4pBlE1fPuV+Z5FYcvMVRVHo6ywLa6X+VySUdgRqGu2PAhFc/ 3X1d+uhIxoeIRDo0zL+NcKyKjn3MGq0hfUhXElHd8Eey5BNrIapfT+heeDbgwcmxJZfU cgMVfTPN/88N3s5eJ2VBEis6SsQMp+gNiodc7O7Std9D8DyedWZNMm5UxYQQASZQsZRi tXYQLjlxl8NjZz6gVsGfSb5i2WhIGKtNSvLoN139Kmh4dJGzBHRrpDKOyUUH3j8hhfQm rUlw== 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=URQLikW4i6p/yS1LGKoVMXHzfa2hlYD5+Ta3mGuHcYU=; b=XGmvrjM4nP6QaPz0+nxilbP6RQzUaVJcZwhcUikqVgc20jYzgc323zt8ANm/df2tTD Bx2cdNThRNTzRCfRU15TxoFvJmAAD0yDpSiLyGM2zOBN57/gxRKtHcjwGojAF0Oz2cVH 7DEkpzXUULNOLjItDjGZeLi9+iqgNpWJuwXh/5k77UZvIxBXdy5fHMVf9YTnLv4U0sY/ difv0xdE4lB6eSLWluL+xwilkXSUOOxiX7bSRWpJpgaHfAc7M1tafL+2OFExYZUgt9u+ nCdnPx/jbVWK4OX5KWx/jdpGHQQK0aREM1P4EpAFypiszdLyrw1zy1sIlxwk8hIowUev cMLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=V3ajfBOM; 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 m189-20020a6258c6000000b0064f78c32b89si937259pfb.95.2023.06.02.08.51.03; Fri, 02 Jun 2023 08:51:17 -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=V3ajfBOM; 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 S236758AbjFBPgU (ORCPT + 99 others); Fri, 2 Jun 2023 11:36:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235675AbjFBPgM (ORCPT ); Fri, 2 Jun 2023 11:36:12 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA4C71A1; Fri, 2 Jun 2023 08:36:09 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 352FZvau118405; Fri, 2 Jun 2023 10:35:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1685720157; bh=URQLikW4i6p/yS1LGKoVMXHzfa2hlYD5+Ta3mGuHcYU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=V3ajfBOMAiy2zZFovWNPuJqB+BF3ie4V2XUC3Rfc4vaMOFx8wFstqTXQH+6YWEiUo xR3bq5MZmLf0FZypTmlEn3vQ+CBc9dIDKZHyNQpZG2+c/sb5HW7S4RLrkoSVQEh8Zf xZ0Fl6ZlTsUxHMnGpj4FVBlcFNcH48uCOPnHADC4= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 352FZvv7056221 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 2 Jun 2023 10:35:57 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE111.ent.ti.com (10.64.6.32) 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 10:35:57 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE106.ent.ti.com (10.64.6.27) 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 10:35:57 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 352FZv6V046548; Fri, 2 Jun 2023 10:35:57 -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 Subject: [PATCH 3/6] arm64: dts: ti: k3-am68-sk-base-board: Add uart pinmux Date: Fri, 2 Jun 2023 10:35:51 -0500 Message-ID: <20230602153554.1571128-4-nm@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230602153554.1571128-1-nm@ti.com> References: <20230602153554.1571128-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 Define the wakeup uart pin-mux for completeness and add explicit muxing for mcu_uart0. This allows the device tree usage in bootloader and firmwares that can configure the same appropriately. Signed-off-by: Nishanth Menon --- New patch in the series .../boot/dts/ti/k3-am68-sk-base-board.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts index 014ff13d1032..979898bc5b02 100644 --- a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts @@ -22,6 +22,8 @@ chosen { }; aliases { + serial0 = &wkup_uart0; + serial1 = &mcu_uart0; serial2 = &main_uart8; mmc1 = &main_sdhci1; can0 = &mcu_mcan0; @@ -202,6 +204,15 @@ J721S2_IOPAD(0x08c, PIN_INPUT, 7) /* (T25) MCASP0_AXR7.GPIO0_35 */ }; &wkup_pmx2 { + wkup_uart0_pins_default: wkup-uart0-pins-default { + pinctrl-single,pins = < + J721S2_WKUP_IOPAD(0x070, PIN_INPUT, 0) /* (E25) WKUP_GPIO0_6.WKUP_UART0_CTSn */ + J721S2_WKUP_IOPAD(0x074, PIN_OUTPUT, 0) /* (F28) WKUP_GPIO0_7.WKUP_UART0_RTSn */ + J721S2_WKUP_IOPAD(0x048, PIN_INPUT, 0) /* (D28) WKUP_UART0_RXD */ + J721S2_WKUP_IOPAD(0x04c, PIN_OUTPUT, 0) /* (D27) WKUP_UART0_TXD */ + >; + }; + mcu_cpsw_pins_default: mcu-cpsw-pins-default { pinctrl-single,pins = < J721S2_WKUP_IOPAD(0x02C, PIN_INPUT, 0) /* (B22) MCU_RGMII1_RD0 */ @@ -254,6 +265,13 @@ J721S2_WKUP_IOPAD(0x07c, PIN_INPUT, 0) /* (H26) WKUP_GPIO0_9.MCU_I2C1_SDA */ >; }; + mcu_uart0_pins_default: mcu-uart0-pins-default { + pinctrl-single,pins = < + J721S2_WKUP_IOPAD(0x08c, PIN_INPUT, 0) /* (C24) WKUP_GPIO0_13.MCU_UART0_RXD */ + J721S2_WKUP_IOPAD(0x088, PIN_OUTPUT, 0) /* (C25) WKUP_GPIO0_12.MCU_UART0_TXD */ + >; + }; + mcu_rpi_header_gpio0_pins0_default: mcu-rpi-header-gpio0-pins0-default { pinctrl-single,pins = < J721S2_WKUP_IOPAD(0x118, PIN_INPUT, 7) /* (G25) WKUP_GPIO0_66 */ @@ -305,6 +323,14 @@ &wkup_gpio1 { &wkup_uart0 { 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 { -- 2.40.0