Skip to content

Commit 09d0aaa

Browse files
Andre-ARMvireshk
authored andcommitted
arm64: dts: allwinner: h616: enable DVFS for all boards
With the DT bindings now describing the format of the CPU OPP tables, we can include the OPP table in each board's .dts file, and specify the CPU power supply. This allows to enable DVFS, and get up to 50% of performance benefit in the highest OPP, or up to 60% power savings in the lowest OPP, compared to the fixed 1GHz @ 1.0V OPP we are running in by default at the moment. Signed-off-by: Andre Przywara <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent 3e057e0 commit 09d0aaa

7 files changed

+35
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-h616-bigtreetech-cb1.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/dts-v1/;
77

88
#include "sun50i-h616.dtsi"
9+
#include "sun50i-h616-cpu-opp.dtsi"
910

1011
#include <dt-bindings/gpio/gpio.h>
1112
#include <dt-bindings/interrupt-controller/arm-gic.h>
@@ -62,6 +63,10 @@
6263
};
6364
};
6465

66+
&cpu0 {
67+
cpu-supply = <&reg_dcdc2>;
68+
};
69+
6570
&mmc0 {
6671
vmmc-supply = <&reg_dldo1>;
6772
/* Card detection pin is not connected */

arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66
/dts-v1/;
77

88
#include "sun50i-h616-orangepi-zero.dtsi"
9+
#include "sun50i-h616-cpu-opp.dtsi"
910

1011
/ {
1112
model = "OrangePi Zero2";
1213
compatible = "xunlong,orangepi-zero2", "allwinner,sun50i-h616";
1314
};
1415

16+
&cpu0 {
17+
cpu-supply = <&reg_dcdca>;
18+
};
19+
1520
&emac0 {
1621
allwinner,rx-delay-ps = <3100>;
1722
allwinner,tx-delay-ps = <700>;

arch/arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/dts-v1/;
77

88
#include "sun50i-h616.dtsi"
9+
#include "sun50i-h616-cpu-opp.dtsi"
910

1011
#include <dt-bindings/gpio/gpio.h>
1112
#include <dt-bindings/interrupt-controller/arm-gic.h>
@@ -32,6 +33,10 @@
3233
};
3334
};
3435

36+
&cpu0 {
37+
cpu-supply = <&reg_dcdca>;
38+
};
39+
3540
&ehci0 {
3641
status = "okay";
3742
};

arch/arm64/boot/dts/allwinner/sun50i-h618-longan-module-3h.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
*/
55

66
#include "sun50i-h616.dtsi"
7+
#include "sun50i-h616-cpu-opp.dtsi"
8+
9+
&cpu0 {
10+
cpu-supply = <&reg_dcdc2>;
11+
};
712

813
&mmc2 {
914
pinctrl-names = "default";

arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/dts-v1/;
77

88
#include "sun50i-h616.dtsi"
9+
#include "sun50i-h616-cpu-opp.dtsi"
910

1011
#include <dt-bindings/gpio/gpio.h>
1112
#include <dt-bindings/interrupt-controller/arm-gic.h>
@@ -53,6 +54,10 @@
5354
};
5455
};
5556

57+
&cpu0 {
58+
cpu-supply = <&reg_dcdc2>;
59+
};
60+
5661
&ehci1 {
5762
status = "okay";
5863
};

arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66
/dts-v1/;
77

88
#include "sun50i-h616-orangepi-zero.dtsi"
9+
#include "sun50i-h616-cpu-opp.dtsi"
910

1011
/ {
1112
model = "OrangePi Zero3";
1213
compatible = "xunlong,orangepi-zero3", "allwinner,sun50i-h618";
1314
};
1415

16+
&cpu0 {
17+
cpu-supply = <&reg_dcdc2>;
18+
};
19+
1520
&emac0 {
1621
allwinner,tx-delay-ps = <700>;
1722
phy-mode = "rgmii-rxid";

arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/dts-v1/;
77

88
#include "sun50i-h616.dtsi"
9+
#include "sun50i-h616-cpu-opp.dtsi"
910

1011
#include <dt-bindings/gpio/gpio.h>
1112
#include <dt-bindings/interrupt-controller/arm-gic.h>
@@ -51,6 +52,10 @@
5152
};
5253
};
5354

55+
&cpu0 {
56+
cpu-supply = <&reg_dcdc2>;
57+
};
58+
5459
&ehci0 {
5560
status = "okay";
5661
};

0 commit comments

Comments
 (0)