Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/5] arm64: dts: freescale: Fix i.MX93 FRDM hardware descriptions
@ 2026-11-23 11:25 Freimut Diener
  2026-11-23 11:25 ` [PATCH v2 1/5] arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter Freimut Diener
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Freimut Diener @ 2026-11-23 11:25 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, kernel,
	Freimut Diener, Marco Felsch

This series fixes and completes several hardware descriptions for the
NXP FRDM-i.MX93 board and the common i.MX91/i.MX93 device tree.

The changes enable the PMIC's I2C level shifter, describe the PCAL6524
GPIO expander supply and USB2 VBUS supply, and restrict USDHC3 probing
to SDIO devices.

Additionally, the missing EL2 virtual timer interrupt is added to the
common i.MX91/i.MX93 timer description, allowing VHE-enabled Linux to
use the EL2 virtual timer.

The changes have been tested on an NXP FRDM-i.MX93 board.

Signed-off-by: Freimut Diener <f.diener@pengutronix.de>
---
Changes in v2:
- Keep USDHC3 at 4-bit bus width and restrict probing to SDIO.
- Move the I2C level shifter configuration to the common DTSI.
- Address review feedback.
- Link to v1: https://patch.msgid.link/20261120-imx93-frdm-fixes-v1-0-78dde22a56fe@pengutronix.de

To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Frank Li <Frank.Li@nxp.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
To: Pengutronix Kernel Team <kernel@pengutronix.de>
To: Fabio Estevam <festevam@gmail.com>
Cc: devicetree@vger.kernel.org
Cc: imx@lists.linux.dev
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org

---
Freimut Diener (5):
      arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter
      arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply
      arm64: dts: freescale: imx93-11x11-frdm: restrict USDHC3 to SDIO
      arm64: dts: freescale: imx91-93-common: Add EL2 virtual timer interrupt
      arm64: dts: freescale: imx93-11x11-frdm-common: Describe USB2 VBUS supply

 arch/arm64/boot/dts/freescale/imx91_93_common.dtsi |  3 ++-
 .../dts/freescale/imx93-11x11-frdm-common.dtsi     | 29 ++++++++++++++++++++--
 arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts |  2 ++
 3 files changed, 31 insertions(+), 3 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261110-imx93-frdm-fixes-56f8d5ef0c66

Best regards,
--  
Freimut Diener <f.diener@pengutronix.de>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH v2 1/5] arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter
  2026-11-23 11:25 [PATCH v2 0/5] arm64: dts: freescale: Fix i.MX93 FRDM hardware descriptions Freimut Diener
@ 2026-11-23 11:25 ` Freimut Diener
  2026-11-23 11:30   ` sashiko-bot
  2026-11-23 16:18   ` Frank Li
  2026-11-23 11:25 ` [PATCH v2 2/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply Freimut Diener
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 11+ messages in thread
From: Freimut Diener @ 2026-11-23 11:25 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, kernel,
	Freimut Diener, Marco Felsch

Without the PMIC's I2C level translator enabled, probing the GPIO
expander fails with input/output error:

       pca953x 0-0020: failed writing register: -5
       pca953x 0-0020: probe with driver pca953x failed with error -5

So enable it.

The GPIO expander is connected to the level shifted I2C output of the PMIC.

Suggested-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Freimut Diener <f.diener@pengutronix.de>
---
 arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
index 33ed26aafde88..b3dfe516b1d55 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
@@ -216,6 +216,7 @@ pmic@25 {
 		reg = <0x25>;
 		interrupt-parent = <&pcal6524>;
 		interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
+		nxp,i2c-lt-enable;
 
 		regulators {
 

-- 
2.56.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v2 2/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply
  2026-11-23 11:25 [PATCH v2 0/5] arm64: dts: freescale: Fix i.MX93 FRDM hardware descriptions Freimut Diener
  2026-11-23 11:25 ` [PATCH v2 1/5] arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter Freimut Diener
@ 2026-11-23 11:25 ` Freimut Diener
  2026-11-23 11:31   ` sashiko-bot
  2026-11-23 11:25 ` [PATCH v2 3/5] arm64: dts: freescale: imx93-11x11-frdm: restrict USDHC3 to SDIO Freimut Diener
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 11+ messages in thread
From: Freimut Diener @ 2026-11-23 11:25 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, kernel,
	Freimut Diener

The PCAL6524 GPIO expander is powered by the PMIC's BUCK4 regulator.
The PMIC in turn uses the expander as its interrupt controller.

Referencing BUCK4 directly through the expander's vcc-supply
property creates a circular dependency: the expander requires the
PMIC regulator to probe, while the PMIC requires the expander for
its interrupt.

Describe the expander's 3.3 V supply using an always-on fixed
regulator as a proxy for BUCK4. This allows the GPIO expander to
acquire its supply without introducing the dependency cycle and avoid a
respective warning:

     pca953x 1-0022: supply vcc not found, using dummy regulator

The proxy does not represent a separate physical regulator.

Signed-off-by: Freimut Diener <f.diener@pengutronix.de>
---
 .../boot/dts/freescale/imx93-11x11-frdm-common.dtsi      | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
index b3dfe516b1d55..e81b2342c50dc 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
@@ -49,6 +49,19 @@ button-k3 {
 		};
 	};
 
+	/*
+	 * PCAL6524 is powered by PMIC BUCK4, but the PMIC uses PCAL6524
+	 * as its interrupt controller. Model the supply with a fixed
+	 * regulator to avoid a circular device dependency.
+	 */
+	reg_pcal6524_vcc: regulator-pcal6524-vcc {
+		compatible = "regulator-fixed";
+		regulator-name = "VDD_3V3_PCAL6524";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+	};
+
 	reg_usdhc2_vmmc: regulator-usdhc2 {
 		compatible = "regulator-fixed";
 		off-on-delay-us = <12000>;
@@ -207,8 +220,7 @@ pcal6524: gpio@22 {
 		gpio-controller;
 		pinctrl-0 = <&pinctrl_pcal6524>;
 		pinctrl-names = "default";
-		/* does not boot with supplier set, because it is the bucks interrupt parent */
-		/* vcc-supply = <&buck4>; */
+		vcc-supply = <&reg_pcal6524_vcc>;
 	};
 
 	pmic@25 {

-- 
2.56.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v2 3/5] arm64: dts: freescale: imx93-11x11-frdm: restrict USDHC3 to SDIO
  2026-11-23 11:25 [PATCH v2 0/5] arm64: dts: freescale: Fix i.MX93 FRDM hardware descriptions Freimut Diener
  2026-11-23 11:25 ` [PATCH v2 1/5] arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter Freimut Diener
  2026-11-23 11:25 ` [PATCH v2 2/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply Freimut Diener
@ 2026-11-23 11:25 ` Freimut Diener
  2026-11-23 11:25 ` [PATCH v2 4/5] arm64: dts: freescale: imx91-93-common: Add EL2 virtual timer interrupt Freimut Diener
  2026-11-23 11:25 ` [PATCH v2 5/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe USB2 VBUS supply Freimut Diener
  4 siblings, 0 replies; 11+ messages in thread
From: Freimut Diener @ 2026-11-23 11:25 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, kernel,
	Freimut Diener

USDHC3 is connected to the onboard Wi-Fi module by default and can
alternatively be routed to the M.2 Key E connector. Both interfaces
provide a 4-bit SDIO connection.

Add no-sd and no-mmc to skip unnecessary card detection and avoid
the HS400 warning from mmc_validate_host_caps():

     sdhci-esdhc-imx 428b0000.mmc: drop HS400 support since no 8-bit bus

Signed-off-by: Freimut Diener <f.diener@pengutronix.de>
---
 arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
index 6e8351d120160..40997115e4a26 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts
@@ -73,6 +73,8 @@ &usdhc3 {
 	keep-power-in-suspend;
 	mmc-pwrseq = <&usdhc3_pwrseq>;
 	non-removable;
+	no-mmc;
+	no-sd;
 	pinctrl-0 = <&pinctrl_usdhc3>;
 	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
 	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;

-- 
2.56.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v2 4/5] arm64: dts: freescale: imx91-93-common: Add EL2 virtual timer interrupt
  2026-11-23 11:25 [PATCH v2 0/5] arm64: dts: freescale: Fix i.MX93 FRDM hardware descriptions Freimut Diener
                   ` (2 preceding siblings ...)
  2026-11-23 11:25 ` [PATCH v2 3/5] arm64: dts: freescale: imx93-11x11-frdm: restrict USDHC3 to SDIO Freimut Diener
@ 2026-11-23 11:25 ` Freimut Diener
  2026-11-23 16:22   ` Frank Li
  2026-11-23 11:25 ` [PATCH v2 5/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe USB2 VBUS supply Freimut Diener
  4 siblings, 1 reply; 11+ messages in thread
From: Freimut Diener @ 2026-11-23 11:25 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, kernel,
	Freimut Diener

The Cortex-A55 CPUs in the i.MX91 and i.MX93 SoCs support Virtual Host
Extensions (VHE). When running at EL2 with VHE enabled, Linux prefers
the EL2 virtual timer over the EL2 physical timer.

The timer node in imx91_93_common.dtsi only describes four architected
timer interrupts, omitting the EL2 virtual timer interrupt. As a result,
Linux reports:

    [Firmware Bug]: VHE-capable CPU without EL2 virtual timer interrupt

and falls back to the EL2 physical timer.

Add the missing EL2 virtual timer interrupt (PPI 12) to allow Linux to
use the EL2 virtual timer.

Tested on an NXP FRDM-i.MX93 board. Linux selects the EL2 virtual
timer (hyp-virt), and interrupt counts increase on both CPUs. Timer
operation was also verified across CPU idle transitions.

Signed-off-by: Freimut Diener <f.diener@pengutronix.de>

---
While this change fixes a real bug for me, this same change was already
previously proposed by Marc Zyngier <maz@kernel.org> in May as part of a
larger series.

Link: https://lore.kernel.org/all/20260523140242.586031-10-maz@kernel.org/
---
 arch/arm64/boot/dts/freescale/imx91_93_common.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi b/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi
index a68ffd04ee084..af4c93c128d31 100644
--- a/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi
@@ -82,7 +82,8 @@ timer {
 		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
 			     <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
 			     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
-			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
+			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>,
+			     <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>;
 		clock-frequency = <24000000>;
 		arm,no-tick-in-suspend;
 		interrupt-parent = <&gic>;

-- 
2.56.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v2 5/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe USB2 VBUS supply
  2026-11-23 11:25 [PATCH v2 0/5] arm64: dts: freescale: Fix i.MX93 FRDM hardware descriptions Freimut Diener
                   ` (3 preceding siblings ...)
  2026-11-23 11:25 ` [PATCH v2 4/5] arm64: dts: freescale: imx91-93-common: Add EL2 virtual timer interrupt Freimut Diener
@ 2026-11-23 11:25 ` Freimut Diener
  4 siblings, 0 replies; 11+ messages in thread
From: Freimut Diener @ 2026-11-23 11:25 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, kernel,
	Freimut Diener

The FRDM-i.MX93 USB2 Type-A host port receives its 5 V VBUS supply
through an SGM2526 load switch. The switch's enable input is tied to
the always-on VDD_3V3 rail, keeping VBUS enabled whenever the board
is powered.

Describe the switch output as an always-on fixed regulator and
reference it from the USB2 PHY's vbus-supply property.

This provides the PHY with its actual VBUS supply instead of
falling back to a dummy regulator, which else triggers a warning:

        usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests (id=vbus)

Signed-off-by: Freimut Diener <f.diener@pengutronix.de>
---
 arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
index e81b2342c50dc..bde2cab5b0c0c 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
@@ -62,6 +62,14 @@ reg_pcal6524_vcc: regulator-pcal6524-vcc {
 		regulator-always-on;
 	};
 
+	reg_usb2_vbus: regulator-usb2-vbus {
+		compatible = "regulator-fixed";
+		regulator-name = "usb2-vbus";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		regulator-always-on;
+	};
+
 	reg_usdhc2_vmmc: regulator-usdhc2 {
 		compatible = "regulator-fixed";
 		off-on-delay-us = <12000>;
@@ -399,6 +407,10 @@ &usbotg2 {
 	status = "okay";
 };
 
+&usbphynop2 {
+	vbus-supply = <&reg_usb2_vbus>;
+};
+
 &usdhc1 {
 	bus-width = <8>;
 	non-removable;

-- 
2.56.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH v2 1/5] arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter
  2026-11-23 11:25 ` [PATCH v2 1/5] arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter Freimut Diener
@ 2026-11-23 11:30   ` sashiko-bot
  2026-11-23 16:18   ` Frank Li
  1 sibling, 0 replies; 11+ messages in thread
From: sashiko-bot @ 2026-11-23 11:30 UTC (permalink / raw)
  To: Freimut Diener; +Cc: devicetree, imx, robh, conor+dt, Frank.Li

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] arm64: dts: freescale: missing Fixes trailer on I2C level
  shifter bug fix
--

commit 256ea15938a0c1f5220a1a6b6b0a240df9ba2817
Author: Freimut Diener <f.diener@pengutronix.de>

> arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter
>
> Without the PMIC's I2C level translator enabled, probing the GPIO
> expander fails with input/output error:
>
>        pca953x 0-0020: failed writing register: -5
>        pca953x 0-0020: probe with driver pca953x failed with error -5
>
> So enable it.
>
> The GPIO expander is connected to the level shifted I2C output of the PMIC.
>
> Suggested-by: Marco Felsch <m.felsch@pengutronix.de>
> Signed-off-by: Freimut Diener <f.diener@pengutronix.de>

[Severity: Low]
This fixes the pcal6408 GPIO expander probe failure on i.MX93 11x11 FRDM.
Should this include a Fixes tag for commit 1a7d97c2d386 ("arm64: dts:
imx93-11x11-frdm: enable additional devices"), which enabled the GPIO
expander, or commit eb2f28413e23 ("arm64: dts: freescale: add support for
NXP i.MX93 FRDM"), which introduced the pmic@25 node without
nxp,i2c-lt-enable?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-imx93-frdm-fixes-v2-0-dd97c7fca4b1@pengutronix.de?part=1

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2 2/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply
  2026-11-23 11:25 ` [PATCH v2 2/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply Freimut Diener
@ 2026-11-23 11:31   ` sashiko-bot
  2026-11-23 16:15     ` Frank Li
  0 siblings, 1 reply; 11+ messages in thread
From: sashiko-bot @ 2026-11-23 11:31 UTC (permalink / raw)
  To: Freimut Diener; +Cc: devicetree, imx, robh, conor+dt, Frank.Li

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: imx93-11x11-frdm-common: fake fixed regulator for
  pcal6524 vcc-supply
--

commit e42789fdf3e25ebbcd3c5baf782ad166ded4e5f4
Author: Freimut Diener <f.diener@pengutronix.de>

arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply

This commit adds a fixed 3.3 V regulator node as a proxy for PMIC BUCK4
and wires it to the PCAL6524 GPIO expander's vcc-supply to avoid a circular
probe dependency between the PMIC and its interrupt parent.

> diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
> index b3dfe516b1d55..e81b2342c50dc 100644
> --- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
> @@ -49,6 +49,19 @@ button-k3 {
>  		};
>  	};
>  
> +	/*
> +	 * PCAL6524 is powered by PMIC BUCK4, but the PMIC uses PCAL6524
> +	 * as its interrupt controller. Model the supply with a fixed
> +	 * regulator to avoid a circular device dependency.
> +	 */
> +	reg_pcal6524_vcc: regulator-pcal6524-vcc {
> +		compatible = "regulator-fixed";
> +		regulator-name = "VDD_3V3_PCAL6524";
> +		regulator-min-microvolt = <3300000>;
> +		regulator-max-microvolt = <3300000>;
> +		regulator-always-on;
> +	};
> +
>  	reg_usdhc2_vmmc: regulator-usdhc2 {
>  		compatible = "regulator-fixed";
>  		off-on-delay-us = <12000>;
> @@ -207,8 +220,7 @@ pcal6524: gpio@22 {
>  		gpio-controller;
>  		pinctrl-0 = <&pinctrl_pcal6524>;
>  		pinctrl-names = "default";
> -		/* does not boot with supplier set, because it is the bucks interrupt parent */
> -		/* vcc-supply = <&buck4>; */
> +		vcc-supply = <&reg_pcal6524_vcc>;
>  	};

[Severity: Medium]
Should reg_pcal6524_vcc be added to the Devicetree when no separate
fixed regulator exists on the board?

Devicetree describes the physical hardware topology rather than encoding
workarounds for Linux driver probe ordering or dummy-regulator log
messages.  Modeling BUCK4 as a standalone always-on regulator-fixed node
misrepresents the board's power tree in the DT ABI and instantiates a
redundant platform device duplicating the regulator core's dummy
regulator.

In Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml, vcc-supply
is optional, and other i.MX91/i.MX93 boards with the same PCA9451A and
PCAL6524 topology (such as imx93-11x11-evk-common.dtsi and
imx91-11x11-frdm.dts) omit vcc-supply on pcal6524 until the cyclic
dependency between PMIC IRQ resolution and expander supply lookup is
handled in the kernel drivers.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-imx93-frdm-fixes-v2-0-dd97c7fca4b1@pengutronix.de?part=2

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2 2/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply
  2026-11-23 11:31   ` sashiko-bot
@ 2026-11-23 16:15     ` Frank Li
  0 siblings, 0 replies; 11+ messages in thread
From: Frank Li @ 2026-11-23 16:15 UTC (permalink / raw)
  To: sashiko-reviews; +Cc: Freimut Diener, devicetree, imx, robh, conor+dt, Frank.Li

On Mon, Nov 23, 2026 at 11:31:56AM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [Medium] arm64: dts: imx93-11x11-frdm-common: fake fixed regulator for
>   pcal6524 vcc-supply
> --
>
> commit e42789fdf3e25ebbcd3c5baf782ad166ded4e5f4
> Author: Freimut Diener <f.diener@pengutronix.de>
>
> arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply
>
> This commit adds a fixed 3.3 V regulator node as a proxy for PMIC BUCK4
> and wires it to the PCAL6524 GPIO expander's vcc-supply to avoid a circular
> probe dependency between the PMIC and its interrupt parent.
>
> > diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
> > index b3dfe516b1d55..e81b2342c50dc 100644
> > --- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
> > @@ -49,6 +49,19 @@ button-k3 {
> >  		};
> >  	};
> >
> > +	/*
> > +	 * PCAL6524 is powered by PMIC BUCK4, but the PMIC uses PCAL6524
> > +	 * as its interrupt controller. Model the supply with a fixed
> > +	 * regulator to avoid a circular device dependency.
> > +	 */
> > +	reg_pcal6524_vcc: regulator-pcal6524-vcc {
> > +		compatible = "regulator-fixed";
> > +		regulator-name = "VDD_3V3_PCAL6524";
> > +		regulator-min-microvolt = <3300000>;
> > +		regulator-max-microvolt = <3300000>;
> > +		regulator-always-on;
> > +	};
> > +
> >  	reg_usdhc2_vmmc: regulator-usdhc2 {
> >  		compatible = "regulator-fixed";
> >  		off-on-delay-us = <12000>;
> > @@ -207,8 +220,7 @@ pcal6524: gpio@22 {
> >  		gpio-controller;
> >  		pinctrl-0 = <&pinctrl_pcal6524>;
> >  		pinctrl-names = "default";
> > -		/* does not boot with supplier set, because it is the bucks interrupt parent */
> > -		/* vcc-supply = <&buck4>; */
> > +		vcc-supply = <&reg_pcal6524_vcc>;
> >  	};
>
> [Severity: Medium]
> Should reg_pcal6524_vcc be added to the Devicetree when no separate
> fixed regulator exists on the board?
>
> Devicetree describes the physical hardware topology rather than encoding
> workarounds for Linux driver probe ordering or dummy-regulator log
> messages.  Modeling BUCK4 as a standalone always-on regulator-fixed node
> misrepresents the board's power tree in the DT ABI and instantiates a
> redundant platform device duplicating the regulator core's dummy
> regulator.
>
> In Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml, vcc-supply
> is optional, and other i.MX91/i.MX93 boards with the same PCA9451A and
> PCAL6524 topology (such as imx93-11x11-evk-common.dtsi and
> imx91-11x11-frdm.dts) omit vcc-supply on pcal6524 until the cyclic
> dependency between PMIC IRQ resolution and expander supply lookup is
> handled in the kernel drivers.

Look like you just need remove vcc-supply property.

Frank

>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20261123-imx93-frdm-fixes-v2-0-dd97c7fca4b1@pengutronix.de?part=2
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2 1/5] arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter
  2026-11-23 11:25 ` [PATCH v2 1/5] arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter Freimut Diener
  2026-11-23 11:30   ` sashiko-bot
@ 2026-11-23 16:18   ` Frank Li
  1 sibling, 0 replies; 11+ messages in thread
From: Frank Li @ 2026-11-23 16:18 UTC (permalink / raw)
  To: Freimut Diener
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, devicetree,
	imx, linux-arm-kernel, linux-kernel, Marco Felsch

On Mon, Nov 23, 2026 at 12:25:15PM +0100, Freimut Diener wrote:
> Without the PMIC's I2C level translator enabled, probing the GPIO
> expander fails with input/output error:
>
>        pca953x 0-0020: failed writing register: -5
>        pca953x 0-0020: probe with driver pca953x failed with error -5
>
> So enable it.
>
> The GPIO expander is connected to the level shifted I2C output of the PMIC.
>
> Suggested-by: Marco Felsch <m.felsch@pengutronix.de>
> Signed-off-by: Freimut Diener <f.diener@pengutronix.de>
> ---

Need fix tags.

Frank

>  arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
> index 33ed26aafde88..b3dfe516b1d55 100644
> --- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
> @@ -216,6 +216,7 @@ pmic@25 {
>  		reg = <0x25>;
>  		interrupt-parent = <&pcal6524>;
>  		interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
> +		nxp,i2c-lt-enable;
>
>  		regulators {
>
>
> --
> 2.56.0
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v2 4/5] arm64: dts: freescale: imx91-93-common: Add EL2 virtual timer interrupt
  2026-11-23 11:25 ` [PATCH v2 4/5] arm64: dts: freescale: imx91-93-common: Add EL2 virtual timer interrupt Freimut Diener
@ 2026-11-23 16:22   ` Frank Li
  0 siblings, 0 replies; 11+ messages in thread
From: Frank Li @ 2026-11-23 16:22 UTC (permalink / raw)
  To: Freimut Diener
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Frank Li,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam, devicetree,
	imx, linux-arm-kernel, linux-kernel

On Mon, Nov 23, 2026 at 12:25:18PM +0100, Freimut Diener wrote:
> The Cortex-A55 CPUs in the i.MX91 and i.MX93 SoCs support Virtual Host
> Extensions (VHE). When running at EL2 with VHE enabled, Linux prefers
> the EL2 virtual timer over the EL2 physical timer.
>
> The timer node in imx91_93_common.dtsi only describes four architected
> timer interrupts, omitting the EL2 virtual timer interrupt. As a result,
> Linux reports:
>
>     [Firmware Bug]: VHE-capable CPU without EL2 virtual timer interrupt
>
> and falls back to the EL2 physical timer.
>
> Add the missing EL2 virtual timer interrupt (PPI 12) to allow Linux to
> use the EL2 virtual timer.
>
> Tested on an NXP FRDM-i.MX93 board. Linux selects the EL2 virtual
> timer (hyp-virt), and interrupt counts increase on both CPUs. Timer
> operation was also verified across CPU idle transitions.
>
> Signed-off-by: Freimut Diener <f.diener@pengutronix.de>
>
> ---
> While this change fixes a real bug for me, this same change was already
> previously proposed by Marc Zyngier <maz@kernel.org> in May as part of a
> larger series.
>
> Link: https://lore.kernel.org/all/20260523140242.586031-10-maz@kernel.org/

Thanks, I missed this one. I will pick Marc Zyngier's patches.

Frank

> ---
>  arch/arm64/boot/dts/freescale/imx91_93_common.dtsi | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi b/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi
> index a68ffd04ee084..af4c93c128d31 100644
> --- a/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx91_93_common.dtsi
> @@ -82,7 +82,8 @@ timer {
>  		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
>  			     <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
>  			     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
> -			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
> +			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>,
> +			     <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>;
>  		clock-frequency = <24000000>;
>  		arm,no-tick-in-suspend;
>  		interrupt-parent = <&gic>;
>
> --
> 2.56.0
>
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-11-23 16:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 11:25 [PATCH v2 0/5] arm64: dts: freescale: Fix i.MX93 FRDM hardware descriptions Freimut Diener
2026-11-23 11:25 ` [PATCH v2 1/5] arm64: dts: freescale: imx93-11x11-frdm-common: Enable I2C level shifter Freimut Diener
2026-11-23 11:30   ` sashiko-bot
2026-11-23 16:18   ` Frank Li
2026-11-23 11:25 ` [PATCH v2 2/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply Freimut Diener
2026-11-23 11:31   ` sashiko-bot
2026-11-23 16:15     ` Frank Li
2026-11-23 11:25 ` [PATCH v2 3/5] arm64: dts: freescale: imx93-11x11-frdm: restrict USDHC3 to SDIO Freimut Diener
2026-11-23 11:25 ` [PATCH v2 4/5] arm64: dts: freescale: imx91-93-common: Add EL2 virtual timer interrupt Freimut Diener
2026-11-23 16:22   ` Frank Li
2026-11-23 11:25 ` [PATCH v2 5/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe USB2 VBUS supply Freimut Diener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox