All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: sashiko-reviews@lists.linux.dev
Cc: Freimut Diener <f.diener@pengutronix.de>,
	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 10:15:40 -0600	[thread overview]
Message-ID: <awRmrCk8tOd_F8MG@SMW015318> (raw)
In-Reply-To: <sashiko-outbox-229145@kernel.org>

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
>

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

Thread overview: 12+ 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 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 [this message]
2026-11-24  9:58       ` Freimut Diener
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

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=awRmrCk8tOd_F8MG@SMW015318 \
    --to=frank.li@oss.nxp.com \
    --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 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.