Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[ sunxi-current ] add VDD CPU regulator for the NanoPi R1
- Loading branch information
Showing
with
21 additions
and
1 deletion.
-
+21
−1
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 <igor@armbian.com> |
|
|
+ * |
|
|
@@ -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>; |
|
|
|