]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
DT: sun8i: add vdd_cpux regulator to nanopi-r1 and nanopi-neo{-air} v4.14.y-multi v4.14.232-multi
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 7 Aug 2019 04:44:48 +0000 (06:44 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 14 May 2021 13:17:21 +0000 (15:17 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts

index 85b88b2c9055eeb395ccd71cab4681eb6935b51d..0525673bb067b37c5c44406f2116f12849361c9a 100644 (file)
                        linux,default-trigger = "heartbeat";
                };
        };
+
+       reg_mp2134dj: 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_mp2134dj>;
 };
 
 &r_pio {
index 78f6c24952dd128249fd3010d212222832bb060a..1b95e157304f09f404550e6375e29faf376e1f03 100644 (file)
 / {
        model = "FriendlyARM NanoPi NEO";
        compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3";
+
+       reg_sy8113b: 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_sy8113b>;
 };
 
 &emac {
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 {