From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com> Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com>, Haibo Chen <haibo.chen@nxp.com>, Sherry Sun <sherry.sun@nxp.com> Subject: [PATCH v2 04/12] arm64: dts: imx93: assign usdhc[1..3] root clock to 400MHz Date: Fri, 19 Apr 2024 11:36:59 +0800 [thread overview] Message-ID: <20240419-imx93-dts-4-13-v2-4-9076e1d7d399@nxp.com> (raw) In-Reply-To: <20240419-imx93-dts-4-13-v2-0-9076e1d7d399@nxp.com> From: Haibo Chen <haibo.chen@nxp.com> 1. Config SDHC1 clock 400MHz to support eMMC HS400ES mode 2. The original usdhc2 and usdhc3 root clock is 200MHz. Then WIFI on usdhc3 at SDR104 mode can work under 200MHz. But if imx93 work under Low Drive mode, the usdhc3 pad signal is not good under 200MHz, SDR104 mode can't work stable. Need to downgrade to 133MHz to let WIFI work stable. To cover all the cases, for Norminal Drive mode, keep usdhc root at 400MHz, then card(SD/wifi) can work at SDR104 mode under 200MHz to get the best performance. For Low Drive mode, bootloader need override usdhc root clock to 266MHz, and the card(SD/wifi) work at SDR104 mode under 133MHz, can work stable. Reviewed-by: Sherry Sun <sherry.sun@nxp.com> Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> --- arch/arm64/boot/dts/freescale/imx93.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index d762d96afcd5..9a7cb59e2c7f 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -1018,6 +1018,9 @@ usdhc1: mmc@42850000 { <&clk IMX93_CLK_WAKEUP_AXI>, <&clk IMX93_CLK_USDHC1_GATE>; clock-names = "ipg", "ahb", "per"; + assigned-clocks = <&clk IMX93_CLK_USDHC1>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>; + assigned-clock-rates = <400000000>; bus-width = <8>; fsl,tuning-start-tap = <1>; fsl,tuning-step = <2>; @@ -1032,6 +1035,9 @@ usdhc2: mmc@42860000 { <&clk IMX93_CLK_WAKEUP_AXI>, <&clk IMX93_CLK_USDHC2_GATE>; clock-names = "ipg", "ahb", "per"; + assigned-clocks = <&clk IMX93_CLK_USDHC2>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>; + assigned-clock-rates = <400000000>; bus-width = <4>; fsl,tuning-start-tap = <1>; fsl,tuning-step = <2>; @@ -1095,6 +1101,9 @@ usdhc3: mmc@428b0000 { <&clk IMX93_CLK_WAKEUP_AXI>, <&clk IMX93_CLK_USDHC3_GATE>; clock-names = "ipg", "ahb", "per"; + assigned-clocks = <&clk IMX93_CLK_USDHC3>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>; + assigned-clock-rates = <400000000>; bus-width = <4>; fsl,tuning-start-tap = <1>; fsl,tuning-step = <2>; -- 2.37.1
WARNING: multiple messages have this Message-ID (diff)
From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com> Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com>, Haibo Chen <haibo.chen@nxp.com>, Sherry Sun <sherry.sun@nxp.com> Subject: [PATCH v2 04/12] arm64: dts: imx93: assign usdhc[1..3] root clock to 400MHz Date: Fri, 19 Apr 2024 11:36:59 +0800 [thread overview] Message-ID: <20240419-imx93-dts-4-13-v2-4-9076e1d7d399@nxp.com> (raw) In-Reply-To: <20240419-imx93-dts-4-13-v2-0-9076e1d7d399@nxp.com> From: Haibo Chen <haibo.chen@nxp.com> 1. Config SDHC1 clock 400MHz to support eMMC HS400ES mode 2. The original usdhc2 and usdhc3 root clock is 200MHz. Then WIFI on usdhc3 at SDR104 mode can work under 200MHz. But if imx93 work under Low Drive mode, the usdhc3 pad signal is not good under 200MHz, SDR104 mode can't work stable. Need to downgrade to 133MHz to let WIFI work stable. To cover all the cases, for Norminal Drive mode, keep usdhc root at 400MHz, then card(SD/wifi) can work at SDR104 mode under 200MHz to get the best performance. For Low Drive mode, bootloader need override usdhc root clock to 266MHz, and the card(SD/wifi) work at SDR104 mode under 133MHz, can work stable. Reviewed-by: Sherry Sun <sherry.sun@nxp.com> Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> --- arch/arm64/boot/dts/freescale/imx93.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index d762d96afcd5..9a7cb59e2c7f 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -1018,6 +1018,9 @@ usdhc1: mmc@42850000 { <&clk IMX93_CLK_WAKEUP_AXI>, <&clk IMX93_CLK_USDHC1_GATE>; clock-names = "ipg", "ahb", "per"; + assigned-clocks = <&clk IMX93_CLK_USDHC1>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>; + assigned-clock-rates = <400000000>; bus-width = <8>; fsl,tuning-start-tap = <1>; fsl,tuning-step = <2>; @@ -1032,6 +1035,9 @@ usdhc2: mmc@42860000 { <&clk IMX93_CLK_WAKEUP_AXI>, <&clk IMX93_CLK_USDHC2_GATE>; clock-names = "ipg", "ahb", "per"; + assigned-clocks = <&clk IMX93_CLK_USDHC2>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>; + assigned-clock-rates = <400000000>; bus-width = <4>; fsl,tuning-start-tap = <1>; fsl,tuning-step = <2>; @@ -1095,6 +1101,9 @@ usdhc3: mmc@428b0000 { <&clk IMX93_CLK_WAKEUP_AXI>, <&clk IMX93_CLK_USDHC3_GATE>; clock-names = "ipg", "ahb", "per"; + assigned-clocks = <&clk IMX93_CLK_USDHC3>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>; + assigned-clock-rates = <400000000>; bus-width = <4>; fsl,tuning-start-tap = <1>; fsl,tuning-step = <2>; -- 2.37.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2024-04-19 3:29 UTC|newest] Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-19 3:36 [PATCH v2 00/12] arm64: dts: imx93: various update Peng Fan (OSS) 2024-04-19 3:36 ` Peng Fan (OSS) 2024-04-19 3:36 ` [PATCH v2 01/12] arm64: dts: imx93: use FSL_EDMA_RX for rx channel Peng Fan (OSS) 2024-04-19 3:36 ` Peng Fan (OSS) 2024-04-19 14:26 ` Frank Li 2024-04-19 14:26 ` Frank Li 2024-04-19 3:36 ` [PATCH v2 02/12] arm64: dts: imx93: add dma support for lpi2c[1..8] Peng Fan (OSS) 2024-04-19 3:36 ` Peng Fan (OSS) 2024-04-19 14:27 ` Frank Li 2024-04-19 14:27 ` Frank Li 2024-04-19 3:36 ` [PATCH v2 03/12] arm64: dts: imx93: add dma support for lpspi[1..8] Peng Fan (OSS) 2024-04-19 3:36 ` Peng Fan (OSS) 2024-04-19 14:28 ` Frank Li 2024-04-19 14:28 ` Frank Li 2024-04-19 3:36 ` Peng Fan (OSS) [this message] 2024-04-19 3:36 ` [PATCH v2 04/12] arm64: dts: imx93: assign usdhc[1..3] root clock to 400MHz Peng Fan (OSS) 2024-04-19 3:37 ` [PATCH v2 05/12] arm64: dts: imx93: add nvmem property for fec1 Peng Fan (OSS) 2024-04-19 3:37 ` Peng Fan (OSS) 2024-04-19 3:37 ` [PATCH v2 06/12] arm64: dts: imx93: add nvmem property for eqos Peng Fan (OSS) 2024-04-19 3:37 ` Peng Fan (OSS) 2024-04-19 3:37 ` [PATCH v2 07/12] arm64: dts: imx93-11x11-evk: update resource table address Peng Fan (OSS) 2024-04-19 3:37 ` Peng Fan (OSS) 2024-04-19 3:37 ` [PATCH v2 08/12] arm64: dts: imx93-11x11-evk: add sleep pinctrl for eqos and fec Peng Fan (OSS) 2024-04-19 3:37 ` Peng Fan (OSS) 2024-04-19 3:37 ` [PATCH v2 09/12] arm64: dts: imx93-11x11-evk: add different usdhc pinctrl for different timing usage Peng Fan (OSS) 2024-04-19 3:37 ` Peng Fan (OSS) 2024-04-19 3:37 ` [PATCH v2 10/12] arm64: dts: imx93-11x11-evk: add sleep pinctrl for sdhc2 Peng Fan (OSS) 2024-04-19 3:37 ` Peng Fan (OSS) 2024-04-19 3:37 ` [PATCH v2 11/12] arm64: dts: imx93-11x11-evk: add reset gpios for ethernet PHYs Peng Fan (OSS) 2024-04-19 3:37 ` Peng Fan (OSS) 2024-04-19 3:37 ` [PATCH v2 12/12] arm64: defconfig: build in OCOTP ELE Peng Fan (OSS) 2024-04-19 3:37 ` Peng Fan (OSS) 2024-04-19 13:43 ` Krzysztof Kozlowski 2024-04-19 13:43 ` Krzysztof Kozlowski 2024-04-22 2:07 ` Peng Fan 2024-04-22 2:07 ` Peng Fan 2024-04-22 6:17 ` [PATCH v2 00/12] arm64: dts: imx93: various update Peng Fan 2024-04-22 6:17 ` Peng Fan 2024-04-25 7:03 ` Shawn Guo 2024-04-25 7:03 ` Shawn Guo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240419-imx93-dts-4-13-v2-4-9076e1d7d399@nxp.com \ --to=peng.fan@oss.nxp.com \ --cc=conor+dt@kernel.org \ --cc=devicetree@vger.kernel.org \ --cc=festevam@gmail.com \ --cc=haibo.chen@nxp.com \ --cc=imx@lists.linux.dev \ --cc=kernel@pengutronix.de \ --cc=krzk+dt@kernel.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=peng.fan@nxp.com \ --cc=robh@kernel.org \ --cc=s.hauer@pengutronix.de \ --cc=shawnguo@kernel.org \ --cc=sherry.sun@nxp.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.