From: Freimut Diener <f.diener@pengutronix.de>
To: Frank Li <Frank.li@oss.nxp.com>, sashiko-reviews@lists.linux.dev
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: Tue, 24 Nov 2026 10:58:05 +0100 [thread overview]
Message-ID: <87jym2mtzm.fsf@theta.mail-host-address-is-not-set> (raw)
In-Reply-To: <awRmrCk8tOd_F8MG@SMW015318>
Frank Li <Frank.li@oss.nxp.com> writes:
>> 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 = <®_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.
This would mean dropping the entire patch and keeping the warning about
the dummy regulator:
pca953x 1-0022: supply vcc not found, using dummy regulator
Is that preferable?
Best,
Freimut
next prev parent reply other threads:[~2026-11-24 9:58 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
2026-11-24 9:58 ` Freimut Diener [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 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=87jym2mtzm.fsf@theta.mail-host-address-is-not-set \
--to=f.diener@pengutronix.de \
--cc=Frank.Li@kernel.org \
--cc=Frank.li@oss.nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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