arm64: dts: imx8mn-var-som: add fixed 3.3V regulator for EEPROM
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Mon, 30 Oct 2023 15:19:20 +0000 (11:19 -0400)
committerShawn Guo <shawnguo@kernel.org>
Wed, 6 Dec 2023 01:53:52 +0000 (09:53 +0800)
When the EEPROM is probed, we have this warning:

    at24 0-0052: supply vcc not found, using dummy regulator

Add fixed 3.3v regulator 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.dtsi

index b8946edf317bd1b3fa841ac3468003efa0c670a7..b364307868f25eb05507c651afa6fee8d0c8423f 100644 (file)
                gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>;
                enable-active-high;
        };
+
+       reg_3v3_fixed: regulator-3v3-fixed {
+               compatible = "regulator-fixed";
+               regulator-name = "fixed_3v3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
+       };
 };
 
 &A53_0 {
                compatible = "atmel,24c04";
                reg = <0x52>;
                pagesize = <16>;
+               vcc-supply = <&reg_3v3_fixed>;
        };
 };