mirror of
https://github.com/Fishwaldo/build.git
synced 2025-04-15 18:41:26 +00:00
[ sunxi-current ] add VDD CPU regulator for the NanoPi R1
This commit is contained in:
parent
a032106fc0
commit
fbaf7562c0
1 changed files with 21 additions and 1 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Reference in a new issue