]> www.infradead.org Git - linux.git/commitdiff
ARM: dts: microchip: at91-sama7g54_curiosity: Add reg_5v to supply PMIC nodes
authorAndrei Simion <andrei.simion@microchip.com>
Mon, 12 Aug 2024 13:52:28 +0000 (16:52 +0300)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Mon, 19 Aug 2024 04:34:06 +0000 (07:34 +0300)
Align with the datasheet by adding regulator-5v which
supplies each node from the regulator using phandle to
regulator-5v through pvin[1-4]-supply and lvin-supply.

Co-developed-by: Mihai Sain <mihai.sain@microchip.com>
Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
Link: https://lore.kernel.org/r/20240812135231.43744-5-andrei.simion@microchip.com
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts

index 009d2c83242102c8e46a6f2019026b5d60a583ac..645e49fdb7fe796f649d7e1d26ab03d92ac92eb3 100644 (file)
                device_type = "memory";
                reg = <0x60000000 0x10000000>; /* 256 MiB DDR3L-1066 16-bit */
        };
+
+       reg_5v: regulator-5v {
+               compatible = "regulator-fixed";
+               regulator-name = "5V_MAIN";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+       };
 };
 
 &adc {
                pmic@5b {
                        compatible = "microchip,mcp16502";
                        reg = <0x5b>;
+                       lvin-supply = <&reg_5v>;
+                       pvin1-supply = <&reg_5v>;
+                       pvin2-supply = <&reg_5v>;
+                       pvin3-supply = <&reg_5v>;
+                       pvin4-supply = <&reg_5v>;
 
                        regulators {
                                vdd_3v3: VDD_IO {