]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: imx91-var-dart-sonata: add RGB enable supply for PCA6408
authorStefano Radaelli <stefano.r@variscite.com>
Tue, 31 Mar 2026 09:21:12 +0000 (11:21 +0200)
committerFrank Li <Frank.Li@nxp.com>
Tue, 5 May 2026 18:39:14 +0000 (14:39 -0400)
RGB enable pin, labeled as RGBSEL, is a board-level enable signal on
the Sonata carrier board.

The two PCA6408 GPIO expanders depend on this signal being asserted, so
model it as a fixed regulator and use it as their vcc-supply.

Signed-off-by: Stefano Radaelli <stefano.r@variscite.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
arch/arm64/boot/dts/freescale/imx91-var-dart-sonata.dts

index afa39dab240a723a9db8cf35402af1873ac35301..3f0fd321d95f05441f1c73a88dfd62b5efe3d4c6 100644 (file)
                regulator-max-microvolt = <1800000>;
        };
 
+       reg_rgb_sel: regulator-rgb-enable {
+               compatible = "regulator-fixed";
+               regulator-name = "RGBSEL";
+               gpio = <&pca9534 7 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
        reg_usdhc2_vmmc: regulator-vmmc-usdhc2 {
                compatible = "regulator-fixed";
                pinctrl-names = "default";
                #gpio-cells = <2>;
                interrupt-parent = <&gpio1>;
                interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
+               vcc-supply = <&reg_rgb_sel>;
        };
 
        pca6408_2: gpio@21 {
                #gpio-cells = <2>;
                interrupt-parent = <&gpio1>;
                interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
+               vcc-supply = <&reg_rgb_sel>;
        };
 
        pca9534: gpio@22 {