]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts
DT: sun8i: add vdd_cpux regulator to nanopi-r1 and nanopi-neo{-air}
[people/arne_f/kernel.git] / arch / arm / boot / dts / sun8i-h3-nanopi-r1.dts
index 1c3e18f5fbad0c06277a17d23d5db205ddd84502..856e534a923602f268bb7c4837b203c4e1912772 100644 (file)
                        linux,default-trigger = "netdev";
                };
        };
+
+       reg_mp2143dj: gpio-regulator {
+               compatible = "regulator-gpio";
+               regulator-name = "vdd-cpux";
+               regulator-type = "voltage";
+               regulator-boot-on;
+               regulator-always-on;
+               regulator-min-microvolt = <1100000>;
+               regulator-max-microvolt = <1300000>;
+               regulator-ramp-delay = <50>;            // 50=4ms check
+
+               gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>;  // PL6 check
+               enable-active-high;
+               gpios-states = <0x1>;
+               states = <1100000 0x0
+                         1300000 0x1>;
+       };
+};
+
+&cpu0 {
+       cpu-supply = <&reg_mp2143dj>;
 };
 
 &pio {