[ sunxi-dev ] added cpu-clock-1.0GHz-1.1v overlay for overclocking the H5 to 1.0GHz on boards that have a fixed 1.1v regulator
This commit is contained in:
parent
cbe0c1b8a1
commit
f1cdca2753
@ -1,19 +1,57 @@
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/overlay/Makefile b/arch/arm64/boot/dts/allwinner/overlay/Makefile
|
||||
index 3ef0a3737..fb6bee993 100644
|
||||
index 128d32cbe..5227b9741 100644
|
||||
--- a/arch/arm64/boot/dts/allwinner/overlay/Makefile
|
||||
+++ b/arch/arm64/boot/dts/allwinner/overlay/Makefile
|
||||
@@ -13,6 +13,8 @@ dtbo-$(CONFIG_ARCH_SUNXI) += \
|
||||
@@ -13,6 +13,9 @@ dtbo-$(CONFIG_ARCH_SUNXI) += \
|
||||
sun50i-a64-w1-gpio.dtbo \
|
||||
sun50i-h5-analog-codec.dtbo \
|
||||
sun50i-h5-cir.dtbo \
|
||||
+ sun50i-h5-cpu-clock-1.0GHz-1.1v.dtbo \
|
||||
+ sun50i-h5-cpu-clock-1.3GHz-1.3v.dtbo \
|
||||
+ sun50i-h5-gpio-regulator-1.3v.dtbo \
|
||||
sun50i-h5-i2c0.dtbo \
|
||||
sun50i-h5-i2c1.dtbo \
|
||||
sun50i-h5-i2c2.dtbo \
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/overlay/sun50i-h5-cpu-clock-1.0GHz-1.1v.dts b/arch/arm64/boot/dts/allwinner/overlay/sun50i-h5-cpu-clock-1.0GHz-1.1v.dts
|
||||
new file mode 100644
|
||||
index 000000000..a8079e825
|
||||
--- /dev/null
|
||||
+++ b/arch/arm64/boot/dts/allwinner/overlay/sun50i-h5-cpu-clock-1.0GHz-1.1v.dts
|
||||
@@ -0,0 +1,31 @@
|
||||
+// DT overlay for CPU frequency operating points to up to 1.0GHz at a maximum CPU voltage of 1.1v
|
||||
+
|
||||
+/dts-v1/;
|
||||
+/plugin/;
|
||||
+
|
||||
+/ {
|
||||
+ fragment@0 {
|
||||
+ target = <&cpu0_opp_table>;
|
||||
+
|
||||
+ __overlay__ {
|
||||
+ compatible = "operating-points-v2";
|
||||
+ opp-shared;
|
||||
+
|
||||
+ // in order to match the H5 DT cooling-maps, update the existing OP table in-place
|
||||
+ // with the new voltages
|
||||
+
|
||||
+ opp-960000000 {
|
||||
+ opp-hz = /bits/ 64 <960000000>;
|
||||
+ opp-microvolt = <1100000 1100000 1300000>;
|
||||
+ clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
+ };
|
||||
+
|
||||
+ opp-1008000000 {
|
||||
+ opp-hz = /bits/ 64 <1008000000>;
|
||||
+ opp-microvolt = <1100000 1100000 1300000>;
|
||||
+ clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/overlay/sun50i-h5-cpu-clock-1.3GHz-1.3v.dts b/arch/arm64/boot/dts/allwinner/overlay/sun50i-h5-cpu-clock-1.3GHz-1.3v.dts
|
||||
new file mode 100644
|
||||
index 000000000..03cae05bd
|
||||
index 000000000..ed0d9ac63
|
||||
--- /dev/null
|
||||
+++ b/arch/arm64/boot/dts/allwinner/overlay/sun50i-h5-cpu-clock-1.3GHz-1.3v.dts
|
||||
@@ -0,0 +1,61 @@
|
||||
@ -80,7 +118,7 @@ index 000000000..03cae05bd
|
||||
+
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/overlay/sun50i-h5-gpio-regulator-1.3v.dts b/arch/arm64/boot/dts/allwinner/overlay/sun50i-h5-gpio-regulator-1.3v.dts
|
||||
new file mode 100644
|
||||
index 000000000..4bf787c66
|
||||
index 000000000..8d2755c3d
|
||||
--- /dev/null
|
||||
+++ b/arch/arm64/boot/dts/allwinner/overlay/sun50i-h5-gpio-regulator-1.3v.dts
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
Loading…
Reference in New Issue
Block a user