Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1460198rwb; Fri, 18 Nov 2022 19:47:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf7pw8PHEyA1sDZHM7/QJSGHWK3J4WDtIdfe0wCCYucIwE52HUxuOvA6u9P7Ha2dRNAaNyeM X-Received: by 2002:a17:902:bd42:b0:188:ca57:8945 with SMTP id b2-20020a170902bd4200b00188ca578945mr2444684plx.116.1668829650120; Fri, 18 Nov 2022 19:47:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668829650; cv=none; d=google.com; s=arc-20160816; b=fOFpu796uLIzGcAxLllNsURmIvyBC5VZH0bQIZ0M2ObTncaEAHTamOLNL6D2ll1nKR GzPnMl5wUwkLaJQme5LvB4ZkwWORtfm2EBiuO4Ps2dN+gJuqVVOvlaa3BmsVe2LY/ICT 3z4U+6TMOYZLVyCbV2hqfeiSPxtTdlbPUPrnGKBDOWZusVKHbuIt8xsGU9h2TaftO8H5 RxlMoqtz3BgqfRZUezI4dOV8Yj0eUrj8w2JMLsDGTE9Xxq5oMDKz6voOtx227/BGrE+l apW43gniC+XvVwN/JIjz1287Z/KfcTmurq4xlfb9yYjjYLh3TyBcKhwCA8bnQqz8FlZr nsBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=v8FIKB1yo94F9zXJpiz0MWcno9RBNj5MOPr+AP2/F2s=; b=MVZOuiMZLSqtglV+Qk2to1te5PbFU+vqB9/KhDe66lC4VeEKaU+zOx0ThBgVXomjCC 9yp0a8EgPBRMrF6H5HwmIT0GWo1/WKpjhIrC5axZw7KdeHDr0vyv+5i/sDayAZZ0CDV3 gpN+va2grVDzFX36M4XTV5NgOpl0u5WoRy7jNn/Xj3MSQXY0VTMU6nTIEWgX/RgVbjiS UuEdj08WnptvfPvZyWNZTvP3trFibWt4ogvNuhbFU2OojZhrA/zMZHNDfYeADRLUcSdh 3Kr6/nte01c01Hv2yJvmXc3nizux8ZQjM4S08Ah/TY40pBZl1fL0/ebUIUbjsw5CkxpE bFNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d43z9PmV; 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 s2-20020a056a00194200b00544e163575bsi5511698pfk.176.2022.11.18.19.47.18; Fri, 18 Nov 2022 19:47:30 -0800 (PST) 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=d43z9PmV; 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 S229743AbiKSDFA (ORCPT + 90 others); Fri, 18 Nov 2022 22:05:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbiKSDE4 (ORCPT ); Fri, 18 Nov 2022 22:04:56 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 033B3B6B18 for ; Fri, 18 Nov 2022 19:04:55 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 0EEBFCE2228 for ; Sat, 19 Nov 2022 03:04:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59FBEC433C1; Sat, 19 Nov 2022 03:04:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668827092; bh=ezOyZB3UDJ+PvNMeOk2B7+t6LUaggH2t0CNftLyOflc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d43z9PmV6H5gN8FuLdJoxOrAmFK8JdxkyyBNIclfrnFeNyIuzSJ+8lRjXVOpFTFvg 7oYaL5HHdbd1nMM/m82TxQu2d9O752zGbxqdGLea2iBZBKpgaPjJNXgADCLU2lbqYU WNNMenGToHImY7ygPHQEMbdPWcbnUCvPEw+otc+jBwoUZMxDhoyCpxQbTTEKd1wviN hDA3UgeIpEy/nkh1rtMAriAypDPYaL6sRn6zdYvF2zA3hwbVSRhRq87pWNj/owEDn/ lD7TnFqynSpEZ9o3Zmq67SDYJQCdqIYTsTFhUZSlcmW54OikO7BrJV0hyg0EAQXI6o O/Q2t3yADibyw== Date: Sat, 19 Nov 2022 11:04:46 +0800 From: Shawn Guo To: "Peng Fan (OSS)" Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan , Marco Felsch Subject: Re: [PATCH V6 04/12] arm64: dts: imx8mp-evk: enable uart1/3 ports Message-ID: <20221119030444.GE16229@T480> References: <20221117095403.1876071-1-peng.fan@oss.nxp.com> <20221117095403.1876071-5-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221117095403.1876071-5-peng.fan@oss.nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) 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 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 Thu, Nov 17, 2022 at 05:53:55PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Enable uart1/3 ports for evk board. > Configure the clock to source from IMX8MP_SYS_PLL1_80M, because the uart > could only support max 1.5M buadrate if using OSC_24M as clock source. > > Signed-off-by: Peng Fan > Reviewed-by: Marco Felsch > --- > arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 36 ++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > index e323e6f4b7e5..29472502d547 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > @@ -412,6 +412,15 @@ &snvs_pwrkey { > status = "okay"; > }; > > +&uart1 { /* BT */ > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_uart1>; > + assigned-clocks = <&clk IMX8MP_CLK_UART1>; > + assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>; > + fsl,uart-has-rtscts; 'fsl,uart-has-rtscts' is deprecated, and 'uart-has-rtscts' should be used instead. Fixed it up and applied, thanks! Shawn > + status = "okay"; > +}; > + > &uart2 { > /* console */ > pinctrl-names = "default"; > @@ -434,6 +443,15 @@ &usb_dwc3_1 { > status = "okay"; > }; > > +&uart3 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_uart3>; > + assigned-clocks = <&clk IMX8MP_CLK_UART3>; > + assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>; > + fsl,uart-has-rtscts; > + status = "okay"; > +}; > + > &usdhc2 { > assigned-clocks = <&clk IMX8MP_CLK_USDHC2>; > assigned-clock-rates = <400000000>; > @@ -609,6 +627,15 @@ MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x40 > >; > }; > > + pinctrl_uart1: uart1grp { > + fsl,pins = < > + MX8MP_IOMUXC_UART1_RXD__UART1_DCE_RX 0x140 > + MX8MP_IOMUXC_UART1_TXD__UART1_DCE_TX 0x140 > + MX8MP_IOMUXC_UART3_RXD__UART1_DCE_CTS 0x140 > + MX8MP_IOMUXC_UART3_TXD__UART1_DCE_RTS 0x140 > + >; > + }; > + > pinctrl_uart2: uart2grp { > fsl,pins = < > MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x140 > @@ -622,6 +649,15 @@ MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR 0x10 > >; > }; > > + pinctrl_uart3: uart3grp { > + fsl,pins = < > + MX8MP_IOMUXC_ECSPI1_SCLK__UART3_DCE_RX 0x140 > + MX8MP_IOMUXC_ECSPI1_MOSI__UART3_DCE_TX 0x140 > + MX8MP_IOMUXC_ECSPI1_SS0__UART3_DCE_RTS 0x140 > + MX8MP_IOMUXC_ECSPI1_MISO__UART3_DCE_CTS 0x140 > + >; > + }; > + > pinctrl_usdhc2: usdhc2grp { > fsl,pins = < > MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x190 > -- > 2.37.1 >