Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp1103443pxr; Mon, 11 Apr 2022 15:22:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9VpJeZ1civmwoD6ZQd+KDTGz2k13HvCHdPLXA0c5KJ00RcOTQTPQ9wJ8/Aa5hF7jMpTWE X-Received: by 2002:a17:902:b495:b0:158:8318:4cf9 with SMTP id y21-20020a170902b49500b0015883184cf9mr1639773plr.33.1649715758872; Mon, 11 Apr 2022 15:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649715758; cv=none; d=google.com; s=arc-20160816; b=NKZYpYdbltC+PnlfaT6CzoaOwCShWpCAKBZ0O/9wi0fWxLAhFYXpyvlsz19cpvWguG wzJSY0brtDyF4gJbq+Oi+dfcQaZJZQkSJcVTQKL/138zmUxdl2MLi+epz74QPldFEpOW WLhxdEVlhT/3uzD3zF2QM5wrUhep9liYWzieoRDrcxt/1j6+V9HvglqjW3f9pGBhXtyj RGTk/c5k3Fk1u+mSxGB2w+HZU1629bOhpt8k+9bWXfxk/kU7b7stb1hPRSa7ILSPLxE0 14p4vfaENSmt3uFsJg3RFgCdZVefEBBg4MyqXU/hG/CyDESPVPe1XZUw0eFqSukVcnuB Pv3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6Ab6YZy0a5ZSnqjYD2VFniCiYx+8M9u8ywEEAbvjrh8=; b=WH/pJ6vp+sQJHNMm38ic0cyeVdGj6Ij38UH1AdAM5ocGbzMmAycaGaHDVvggFJABbo aoQUUDE1CPTDBPrfa+qBTL71UA8M9qm5GcvufGsFoY+NScPBfbsZlYFtgbkpDWVf3gG6 jqokJ62vNBicMAHJbZz7obWpqMO1U1RHJlg9Stu2PsM945N3nT5pUVGS2VSnm4o1JpfD vzkTxxuF/bYqVMF/iaHPtAhSxTwe//ESALnW72ZY9yccyx/Xz6T2pVT44FG1GnYxQiBR FT2JqV5Sqyj+COAvJcMfKa5rP7y68IheR4V9ecru8ErTXGdL7dHI5u0WuCZp4aQueygV qR7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pg4O9zDD; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id on11-20020a17090b1d0b00b001c74c9f028asi4229098pjb.34.2022.04.11.15.22.24; Mon, 11 Apr 2022 15:22:38 -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=@kernel.org header.s=k20201202 header.b=pg4O9zDD; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238869AbiDKB3i (ORCPT + 99 others); Sun, 10 Apr 2022 21:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229834AbiDKB3h (ORCPT ); Sun, 10 Apr 2022 21:29:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B01A2E9D7; Sun, 10 Apr 2022 18:27:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 02149B80CED; Mon, 11 Apr 2022 01:27:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64384C385A1; Mon, 11 Apr 2022 01:27:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649640441; bh=L4L9jfnhdFvFNpuV1PPrk/+fo41aYcf20eGtgKboxSk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pg4O9zDD8TbN3+2d5vF3S1GrmB+E6L2fk9QqPtaAgkrrBqFAk14rQ0NkFpV7dS0fa Llm8taxNs3Y9OUpQpj2onhcOkhghj5lVpfFcDaK12gOzbEPF0PAe4F5QX++zkRPA4O VBQJo0bX2vIu2rsd26dNxkjTas25H5I8SpGQBsan6Yrny9WyId56tNViUiOyfrSUTv jn1ik13/oDzUEhwcJ64UKVUwwpiZlZxn8QI7p1Rkq4miUKu0Md0AR1XSV2EttzUEKG EsxgWHDleOrhZgFr/wJADZidlXcG/rfst/NVMIqxMCxBCKOwHND1DqJknYIPKtJ4yS zHoTdmVPRmF7Q== Date: Mon, 11 Apr 2022 09:27:14 +0800 From: Shawn Guo To: Tim Harvey Cc: Rob Herring , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] imx8mm-venice-gw7901: move UART gpio config into hog group Message-ID: <20220411012714.GC129381@dragon> References: <20220405200407.18698-1-tharvey@gateworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220405200407.18698-1-tharvey@gateworks.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Tue, Apr 05, 2022 at 01:04:07PM -0700, Tim Harvey wrote: > Move UART related GPIO into hog group so that they still are pinmuxed > even if the uart driver is not probed. What are these GPIOs used for? So they will be used anyway even when UART support is disabled? Shawn > > Signed-off-by: Tim Harvey > --- > .../dts/freescale/imx8mm-venice-gw7901.dts | 44 +++++++------------ > 1 file changed, 15 insertions(+), 29 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts > index 7e7231046215..ee78c189c556 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts > @@ -710,7 +710,7 @@ > > &uart1 { > pinctrl-names = "default"; > - pinctrl-0 = <&pinctrl_uart1>, <&pinctrl_uart1_gpio>; > + pinctrl-0 = <&pinctrl_uart1>; > rts-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; > cts-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; > dtr-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; > @@ -728,7 +728,7 @@ > > &uart3 { > pinctrl-names = "default"; > - pinctrl-0 = <&pinctrl_uart3>, <&pinctrl_uart3_gpio>; > + pinctrl-0 = <&pinctrl_uart3>; > cts-gpios = <&gpio4 10 GPIO_ACTIVE_LOW>; > rts-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; > status = "okay"; > @@ -736,7 +736,7 @@ > > &uart4 { > pinctrl-names = "default"; > - pinctrl-0 = <&pinctrl_uart4>, <&pinctrl_uart4_gpio>; > + pinctrl-0 = <&pinctrl_uart4>; > cts-gpios = <&gpio5 11 GPIO_ACTIVE_LOW>; > rts-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>; > status = "okay"; > @@ -807,6 +807,18 @@ > MX8MM_IOMUXC_SAI3_RXD_GPIO4_IO30 0x40000041 /* SIM2DET# */ > MX8MM_IOMUXC_SAI3_RXC_GPIO4_IO29 0x40000041 /* SIM1DET# */ > MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x40000041 /* SIM2SEL */ > + MX8MM_IOMUXC_SAI3_TXFS_GPIO4_IO31 0x40000041 /* WDIS# */ > + MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x40000041 /* UART1_RS422# */ > + MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x40000041 /* UART1_RS485# */ > + MX8MM_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x40000041 /* UART1_RS232# */ > + MX8MM_IOMUXC_SAI1_RXD4_GPIO4_IO6 0x40000110 /* UART3_RS232# */ > + MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7 0x40000110 /* UART3_RS422# */ > + MX8MM_IOMUXC_SAI1_RXD6_GPIO4_IO8 0x40000110 /* UART3_RS485# */ > + > + MX8MM_IOMUXC_ECSPI2_SCLK_GPIO5_IO10 0x40000041 /* UART4_RS232# */ > + MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x40000041 /* UART4_RS422# */ > + MX8MM_IOMUXC_SAI2_MCLK_GPIO4_IO27 0x40000041 /* UART4_RS485# */ > + > >; > }; > > @@ -874,7 +886,6 @@ > > pinctrl_pcie0: pciegrp { > fsl,pins = < > - MX8MM_IOMUXC_SAI3_TXFS_GPIO4_IO31 0x40000041 /* WDIS# */ > MX8MM_IOMUXC_SAI3_MCLK_GPIO5_IO2 0x41 > >; > }; > @@ -932,14 +943,6 @@ > >; > }; > > - pinctrl_uart1_gpio: uart1gpiogrp { > - fsl,pins = < > - MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x40000041 /* RS422# */ > - MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x40000041 /* RS485# */ > - MX8MM_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x40000041 /* RS232# */ > - >; > - }; > - > pinctrl_uart2: uart2grp { > fsl,pins = < > MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140 > @@ -956,14 +959,6 @@ > >; > }; > > - pinctrl_uart3_gpio: uart3gpiogrp { > - fsl,pins = < > - MX8MM_IOMUXC_SAI1_RXD4_GPIO4_IO6 0x40000110 /* RS232# */ > - MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7 0x40000110 /* RS422# */ > - MX8MM_IOMUXC_SAI1_RXD6_GPIO4_IO8 0x40000110 /* RS485# */ > - >; > - }; > - > pinctrl_uart4: uart4grp { > fsl,pins = < > MX8MM_IOMUXC_UART4_RXD_UART4_DCE_RX 0x140 > @@ -973,15 +968,6 @@ > >; > }; > > - pinctrl_uart4_gpio: uart4gpiogrp { > - fsl,pins = < > - > - MX8MM_IOMUXC_ECSPI2_SCLK_GPIO5_IO10 0x40000041 /* RS232# */ > - MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x40000041 /* RS422# */ > - MX8MM_IOMUXC_SAI2_MCLK_GPIO4_IO27 0x40000041 /* RS485# */ > - >; > - }; > - > pinctrl_usdhc1: usdhc1grp { > fsl,pins = < > MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x190 > -- > 2.17.1 >