Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp696587rwi; Thu, 20 Oct 2022 04:16:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM56uSn3YqoXPkjc+rZICmpWigJOxWOfKrn+Yk+Md/XEreqvu9B//6Mfz44C9/RwxMiZ0+hk X-Received: by 2002:a17:907:c78e:b0:78d:138a:ec4b with SMTP id tz14-20020a170907c78e00b0078d138aec4bmr10417591ejc.381.1666264597447; Thu, 20 Oct 2022 04:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666264597; cv=none; d=google.com; s=arc-20160816; b=wAiinIEpH2n0OT1WlDE1STkZC3wHHk2O8sOXVU8e1exnRv9LCse2Iagy0Fg6rWKskb 5wbvCwdT0hiZBWq8OfohmXLDDQwb1tGPIC9ceyeyDGRTGBWfv5V/nC+0czKcZtavi8LY JuIdh/ieKb0F8yNKaUaMIwfDpCaP7zCAMxYsaW7KiOoNqSvdJYbWS/UNOFNTcu7z+ccm skmgTwWPFBMl2Bkb/dXHPFE0nkW6ybPaEeWtc4pl4F/5bllZ4h13d51rE4PKm8yhtuhL g2DJ/TGdA4pEjp0J4oN+w7NrMgvGhMcFsq58LfToHhCF6qpioNHL8kz09aHVzCBKZtiB a1aA== 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; bh=vv02uggbqhyIiT25gqIX+8f6q2txXyoNeiFQAVre+Ls=; b=oZSFU/VR55Mj8+91ANm2Cw/pgNYop8i7enAbtvpRCDp5gfZ2rg6sGSNH2kTB1YGnt5 Bkvc4EFZvjYXUUqHXr508e+6HMzc7OhG6MZanA53suLhJx95B5qzkt7qGzkjZx7lR4Uy NabQT5vee8l8mTkXf29Pzwxz7MKvqfXa0iHAXTUIFkhJ91UkSTBqOkQudOFs2nw2Ajzy /sgoNJ0VWFFZ61PXaSWPLDkybsGbCrTxKHWSd09Lo6Bpf7Nk2eR69mXpQ9P/3HrGiA3p ihbDe2fGhalSQUHoS29iW5z3NT78PVN7OmOybeQDPzg01AUMVOg2uU85nMGmOI1ryEaJ MVoQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qn24-20020a170907211800b0078d3ba4d567si14462579ejb.422.2022.10.20.04.16.11; Thu, 20 Oct 2022 04:16:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbiJTLHe (ORCPT + 99 others); Thu, 20 Oct 2022 07:07:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231153AbiJTLHc (ORCPT ); Thu, 20 Oct 2022 07:07:32 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E30419DD9D for ; Thu, 20 Oct 2022 04:07:31 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olTOW-00054g-CG; Thu, 20 Oct 2022 13:07:24 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1olTOV-0003bH-UK; Thu, 20 Oct 2022 13:07:23 +0200 Date: Thu, 20 Oct 2022 13:07:23 +0200 From: Marco Felsch To: "Peng Fan (OSS)" Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, devicetree@vger.kernel.org, Peng Fan , linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 05/15] arm64: dts: imx8mp-evk: enable uart1/3 ports Message-ID: <20221020110723.udftsfrfdnghudto@pengutronix.de> References: <20221020095934.1659449-1-peng.fan@oss.nxp.com> <20221020095934.1659449-6-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221020095934.1659449-6-peng.fan@oss.nxp.com> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hi Peng, On 22-10-20, Peng Fan (OSS) wrote: > From: Peng Fan > > Enable uart1/3 ports for evk board. > > Signed-off-by: Peng Fan > --- > 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 2e29bb3c041c..366f709f8790 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > @@ -428,6 +428,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>; I'm curious, what is the default parent and why is this wrong? For the already exisiting uart2 we don't do that. Same applies for uart3. Regards, Marco > + fsl,uart-has-rtscts; > + status = "okay"; > +}; > + > &uart2 { > /* console */ > pinctrl-names = "default"; > @@ -450,6 +459,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>; > @@ -625,6 +643,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 > @@ -638,6 +665,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 > > >