mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-17 20:02:48 +00:00
[ sunxi-dev ] add default regulator for orangepizero-plus2-h5
Note: by default Orange Pi Zero Plus2 H5 boards are missing part of their regulator hardware circuit; as such the default regulator is limited to 1.1v.
This commit is contained in:
parent
2a5291349f
commit
e0f27fff66
1 changed files with 32 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
||||||
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
|
||||||
|
index 50ad2e4fd..e1ee1cd09 100644
|
||||||
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
|
||||||
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts
|
||||||
|
@@ -98,6 +98,27 @@
|
||||||
|
linux,default-trigger = "heartbeat";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
+
|
||||||
|
+ reg_vdd_cpux: 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 = <1100000>;
|
||||||
|
+ regulator-ramp-delay = <50>; /* 4ms */
|
||||||
|
+
|
||||||
|
+ gpios = <&r_pio 0 6 0>; /* PL6 */
|
||||||
|
+ enable-active-high;
|
||||||
|
+ gpios-states = <0x1>;
|
||||||
|
+ states = <1100000 0x0
|
||||||
|
+ 1100000 0x1>;
|
||||||
|
+ };
|
||||||
|
+};
|
||||||
|
+
|
||||||
|
+&cpu0 {
|
||||||
|
+ cpu-supply = <®_vdd_cpux>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&de {
|
Loading…
Add table
Reference in a new issue