ARM: dts: rockchip: Add 12V main supply for edgeble-neu2
authorJagan Teki <jagan@edgeble.ai>
Mon, 31 Jul 2023 10:35:18 +0000 (16:05 +0530)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 10 Aug 2023 20:41:55 +0000 (22:41 +0200)
The Main supply volatge for Edgeble Neu2 IO board is 12V DC.

Add the 12v supply regulator for it and input to vcc5v0_sys.

Since the power regulator is part of IO board circuit, move the
regulator in IO dts file.

Signed-off-by: Jagan Teki <jagan@edgeble.ai>
Link: https://lore.kernel.org/r/20230731103518.2906147-14-jagan@edgeble.ai
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rockchip/rv1126-edgeble-neu2-io.dts
arch/arm/boot/dts/rockchip/rv1126-edgeble-neu2.dtsi

index 6dfcd7f..3d58760 100644 (file)
                stdout-path = "serial2:1500000n8";
        };
 
+       vcc12v_dcin: vcc12v-dcin-regulator {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc12v_dcin";
+               regulator-always-on;
+               regulator-boot-on;
+               regulator-min-microvolt = <12000000>;
+               regulator-max-microvolt = <12000000>;
+       };
+
+       vcc5v0_sys: vcc5v0-sys-regulator {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc5v0_sys";
+               regulator-always-on;
+               regulator-boot-on;
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               vin-supply = <&vcc12v_dcin>;
+       };
+
        v3v3_sys: v3v3-sys-regulator {
                compatible = "regulator-fixed";
                regulator-name = "v3v3_sys";
index 6bbaf6d..7ea8d7d 100644 (file)
                mmc0 = &emmc;
        };
 
-       vcc5v0_sys: vcc5v0-sys-regulator {
-               compatible = "regulator-fixed";
-               regulator-name = "vcc5v0_sys";
-               regulator-always-on;
-               regulator-boot-on;
-               regulator-min-microvolt = <5000000>;
-               regulator-max-microvolt = <5000000>;
-       };
-
        vccio_flash: vccio-flash-regulator {
                compatible = "regulator-fixed";
                enable-active-high;