From: Frank Li <Frank.li@nxp.com>
To: Primoz Fiser <primoz.fiser@norik.com>
Cc: 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>,
devicetree@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, upstream@lists.phytec.de
Subject: Re: [PATCH 04/13] arm64: dts: freescale: imx93-phycore-som: Enhance eMMC pinctrl
Date: Fri, 11 Apr 2025 10:34:23 -0400 [thread overview]
Message-ID: <Z/kobxo56A857eZr@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <d68df49c-222a-445d-b29c-f9ad962b87aa@norik.com>
On Fri, Apr 11, 2025 at 08:29:05AM +0200, Primoz Fiser wrote:
> Hi Frank,
>
> On 10. 04. 25 16:56, Frank Li wrote:
> > On Thu, Apr 10, 2025 at 11:02:42AM +0200, Primoz Fiser wrote:
> >> Improve eMMC on phyCORE-i.MX93 SOM by adding 100MHz and 200MHz pinctrl
> >> modes. This enables to use eMMC at enhanced data rates (e.g. HS400).
> >>
> >> While at it, apply a workaround for the i.MX93 chip errata ERR052021.
> >>
> >> Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
> >> ---
> >> .../boot/dts/freescale/imx93-phycore-som.dtsi | 57 +++++++++++++++----
> >> 1 file changed, 47 insertions(+), 10 deletions(-)
> >>
> >> diff --git a/arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi b/arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi
> >> index 82f680d891c2..3d84eed33074 100644
> >> --- a/arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi
> >> +++ b/arch/arm64/boot/dts/freescale/imx93-phycore-som.dtsi
> >> @@ -166,8 +166,10 @@ eeprom@50 {
> >>
> >> /* eMMC */
> >> &usdhc1 {
> >> - pinctrl-names = "default";
> >> + pinctrl-names = "default", "state_100mhz", "state_200mhz";
> >> pinctrl-0 = <&pinctrl_usdhc1>;
> >> + pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
> >> + pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
> >> bus-width = <8>;
> >> non-removable;
> >> status = "okay";
> >> @@ -213,18 +215,53 @@ MX93_PAD_ENET2_RD3__GPIO4_IO27 0x31e
> >> >;
> >> };
> >>
> >> + /* need to config the SION for data and cmd pad, refer to ERR052021 */
> >> pinctrl_usdhc1: usdhc1grp {
> >> fsl,pins = <
> >> MX93_PAD_SD1_CLK__USDHC1_CLK 0x179e
> >> - MX93_PAD_SD1_CMD__USDHC1_CMD 0x1386
> >> - MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x138e
> >> - MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x1386
> >> - MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x138e
> >> - MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x1386
> >> - MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x1386
> >> - MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x1386
> >> - MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x1386
> >> - MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x1386
> >> + MX93_PAD_SD1_CMD__USDHC1_CMD 0x40001386
> >> + MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x4000138e
> >> + MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x40001386
> >> + MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x4000138e
> >> + MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x40001386
> >> + MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x40001386
> >> + MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x40001386
> >> + MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x40001386
> >> + MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x40001386
> >> + MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x179e
> >> + >;
> >> + };
> >> +
> >> + /* need to config the SION for data and cmd pad, refer to ERR052021 */
> >> + pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
> >> + fsl,pins = <
> >> + MX93_PAD_SD1_CLK__USDHC1_CLK 0x17be
> >> + MX93_PAD_SD1_CMD__USDHC1_CMD 0x4000139e
> >> + MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x4000138e
> >
> > any reason why DATA0 is difference with other one?
> >
> >> + MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x4000139e
> >> + MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x400013be
> >> + MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x4000139e
> >> + MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x4000139e
> >> + MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x4000139e
> >> + MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x4000139e
> >> + MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x4000139e
> >> + MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x179e
> >> + >;
> >> + };
> >> +
> >> + /* need to config the SION for data and cmd pad, refer to ERR052021 */
> >> + pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp {
> >> + fsl,pins = <
> >> + MX93_PAD_SD1_CLK__USDHC1_CLK 0x17be
> >> + MX93_PAD_SD1_CMD__USDHC1_CMD 0x4000139e
> >> + MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x4000139e
> >
> > any reason why DATA0/DATA1 is difference with other one
>
> Bus signal integrity envelope was measured and drive-strengths adjusted
> accordingly by the PHYTEC hardware department to conform to the specs.
>
> Values were thus determined empirically to adjust for differences in
> signal impedance due to PCB layout.
Okay thanks, I just to make sure it is not typo.
Frank
>
> BR,
> Primoz
>
> >
> > Frank
> >> + MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x400013be
> >> + MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x400013be
> >> + MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x400013be
> >> + MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x400013be
> >> + MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x400013be
> >> + MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x400013be
> >> + MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x400013be
> >> MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x179e
> >> >;
> >> };
> >> --
> >> 2.34.1
> >>
>
> --
> Primoz Fiser
> phone: +386-41-390-545
> email: primoz.fiser@norik.com
> --
> Norik systems d.o.o.
> Your embedded software partner
> Slovenia, EU
> phone: +386-41-540-545
> email: info@norik.com
next prev parent reply other threads:[~2025-04-11 14:34 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-10 9:02 [PATCH 00/13] Update PHYTEC i.MX93 DTS Primoz Fiser
2025-04-10 9:02 ` [PATCH 01/13] arm64: dts: freescale: imx93-phycore-som: Add PMIC support Primoz Fiser
2025-04-10 14:53 ` Frank Li
2025-04-10 9:02 ` [PATCH 02/13] arm64: dts: freescale: imx93-phycore-som: Add EEPROM support Primoz Fiser
2025-04-10 14:54 ` Frank Li
2025-04-10 9:02 ` [PATCH 03/13] arm64: dts: freescale: imx93-phycore-som: Disable LED pull-up Primoz Fiser
2025-04-10 14:49 ` Frank Li
2025-04-10 9:02 ` [PATCH 04/13] arm64: dts: freescale: imx93-phycore-som: Enhance eMMC pinctrl Primoz Fiser
2025-04-10 14:56 ` Frank Li
2025-04-11 6:29 ` Primoz Fiser
2025-04-11 14:34 ` Frank Li [this message]
2025-04-10 9:02 ` [PATCH 05/13] arm64: dts: freescale: imx93-phycore-som: Add eMMC no-1-8-v by default Primoz Fiser
2025-04-10 15:01 ` Frank Li
2025-04-11 6:51 ` Primoz Fiser
2025-04-11 14:32 ` Frank Li
2025-04-10 9:02 ` [PATCH 06/13] arm64: dts: freescale: imx93-phyboard-segin: Drop eMMC no-1-8-v flag Primoz Fiser
2025-04-10 15:02 ` Frank Li
2025-04-12 16:23 ` Stefan Wahren
2025-04-14 10:39 ` Primoz Fiser
2025-04-14 11:31 ` Stefan Wahren
2025-04-10 9:02 ` [PATCH 07/13] arm64: dts: freescale: imx93-phyboard-segin: Disable SD-card write-protect Primoz Fiser
2025-04-10 15:05 ` Frank Li
2025-04-10 9:02 ` [PATCH 08/13] arm64: dts: freescale: imx93-phyboard-segin: Fix SD-card pinctrl Primoz Fiser
2025-04-10 15:08 ` Frank Li
2025-04-10 9:02 ` [PATCH 09/13] arm64: dts: freescale: imx93-phyboard-segin: Add RTC support Primoz Fiser
2025-04-10 15:12 ` Frank Li
2025-04-11 7:51 ` Primoz Fiser
2025-04-10 9:02 ` [PATCH 10/13] arm64: dts: freescale: imx93-phyboard-segin: Add CAN support Primoz Fiser
2025-04-10 15:23 ` Frank Li
2025-04-11 8:08 ` Primoz Fiser
2025-04-11 14:30 ` Frank Li
2025-04-12 13:41 ` Marc Kleine-Budde
2025-04-14 8:02 ` Primoz Fiser
2025-04-10 9:02 ` [PATCH 11/13] arm64: dts: freescale: imx93-phyboard-segin: Add USB support Primoz Fiser
2025-04-10 15:25 ` Frank Li
2025-04-11 8:21 ` Ahmad Fatoum
2025-04-10 9:02 ` [PATCH 12/13] arm64: dts: freescale: imx93-phyboard-segin: Add I2S audio Primoz Fiser
2025-04-10 15:27 ` Frank Li
2025-04-10 9:02 ` [PATCH 13/13] arm64: dts: freescale: imx93-phyboard-segin: Add EQOS Ethernet Primoz Fiser
2025-04-10 15:30 ` Frank Li
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=Z/kobxo56A857eZr@lizhi-Precision-Tower-5810 \
--to=frank.li@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.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=primoz.fiser@norik.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=upstream@lists.phytec.de \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox