[ sunxi-current ] add VDD CPU regulator for the NanoPi R1

This commit is contained in:
5kft 2020-08-04 18:26:01 -07:00
parent a032106fc0
commit fbaf7562c0
No known key found for this signature in database
GPG key ID: 1FA43AEDB0493C92

View file

@ -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>;