Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Freimut Diener" <f.diener@pengutronix.de>
Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, robh@kernel.org,
	conor+dt@kernel.org, Frank.Li@kernel.org
Subject: Re: [PATCH v2 2/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe PCAL6524 supply
Date: Mon, 23 Nov 2026 11:31:56 +0000	[thread overview]
Message-ID: <sashiko-outbox-229145@kernel.org> (raw)
In-Reply-To: <20261123-imx93-frdm-fixes-v2-2-dd97c7fca4b1@pengutronix.de>

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

  reply	other threads:[~2026-11-23 11:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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 [this message]
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 11:25 ` [PATCH v2 5/5] arm64: dts: freescale: imx93-11x11-frdm-common: Describe USB2 VBUS supply Freimut Diener

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=sashiko-outbox-229145@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=f.diener@pengutronix.de \
    --cc=imx@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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