From fbaf7562c05c841036b45ec1c225756847598343 Mon Sep 17 00:00:00 2001 From: 5kft <5kft@users.noreply.github.com> Date: Tue, 4 Aug 2020 18:26:01 -0700 Subject: [PATCH] [ sunxi-current ] add VDD CPU regulator for the NanoPi R1 --- .../xxx-add-nanopi-r1-and-duo2.patch | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/patch/kernel/sunxi-current/xxx-add-nanopi-r1-and-duo2.patch b/patch/kernel/sunxi-current/xxx-add-nanopi-r1-and-duo2.patch index 02b5ba5e4..f2fa900e9 100644 --- a/patch/kernel/sunxi-current/xxx-add-nanopi-r1-and-duo2.patch +++ b/patch/kernel/sunxi-current/xxx-add-nanopi-r1-and-duo2.patch @@ -16,7 +16,7 @@ new file mode 100644 index 000000000..731c705a4 --- /dev/null +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts -@@ -0,0 +1,170 @@ +@@ -0,0 +1,190 @@ +/* + * Copyright (C) 2019 Igor Pecovnik + * @@ -88,6 +88,22 @@ index 000000000..731c705a4 + gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; + }; + ++ vdd_cpux: gpio-regulator { ++ compatible = "regulator-gpio"; ++ pinctrl-names = "default"; ++ 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>; /* 4ms */ ++ gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ ++ gpios-states = <0x1>; ++ states = <1100000 0x0 ++ 1300000 0x1>; ++ }; ++ + leds { + /delete-node/ status; + /delete-node/ pwr; @@ -127,6 +143,10 @@ index 000000000..731c705a4 + }; +}; + ++&cpu0 { ++ cpu-supply = <&vdd_cpux>; ++}; ++ +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>;