arm64: dts: imx8mn-var-som-symphony: add vcc supply for PCA9534
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Tue, 7 Nov 2023 15:50:40 +0000 (10:50 -0500)
committerShawn Guo <shawnguo@kernel.org>
Wed, 6 Dec 2023 01:53:52 +0000 (09:53 +0800)
The following warning is shown when probing device:

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

Define a new fixed 3.3v regulator for carrier board peripherals,
enabled by mosfet switch Q2 after the SOM_3V3 supply rises (no software
control).

Add this new regulator as vcc supply to the PCA9534 to silence the warning.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts

index a7a57442cb81ff9535ffe810118869be574f4a94..a6b94d1957c92ac6bcc18667b477ca05eda8b1bc 100644 (file)
                        linux,default-trigger = "heartbeat";
                };
        };
+
+       /* Peripherals supply, enabled by Q2 after SOM_3V3 rises. */
+       reg_per_3v3: regulator-peripheral-3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "per_3v3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
+       };
 };
 
 &ethphy {
@@ -79,6 +88,7 @@
                interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
                #gpio-cells = <2>;
                wakeup-source;
+               vcc-supply = <&reg_per_3v3>;
 
                /* USB 3.0 OTG (usbotg1) / SATA port switch, set to USB 3.0 */
                usb3-sata-sel-hog {