Amlogic: add support for overclocking ODROID-N2/N2+/N2L
This commit is contained in:
parent
0308cc36b1
commit
a508e4c1bb
1 changed files with 104 additions and 0 deletions
|
@ -0,0 +1,104 @@
|
|||
From cb702d6643d389b5e439ba326e72ab26b35172b0 Mon Sep 17 00:00:00 2001
|
||||
From: adamg <adamg88@users.noreply.github.com>
|
||||
Date: Sun, 4 Feb 2024 09:48:31 +0000
|
||||
Subject: [PATCH 50/50] arm64: meson: odroid-n2*: add support for overclocking
|
||||
|
||||
---
|
||||
.../dts/amlogic/meson-g12b-odroid-n2-plus.dts | 24 ++++++++++++++++++
|
||||
.../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 17 +++++++++++++
|
||||
.../dts/amlogic/meson-g12b-odroid-n2l.dts | 25 +++++++++++++++++++
|
||||
3 files changed, 66 insertions(+)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
||||
index ce1198ad34e4..f237b255c283 100644
|
||||
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
|
||||
@@ -29,3 +29,27 @@ &vddcpu_b {
|
||||
pwms = <&pwm_AO_cd 1 1500 0>;
|
||||
};
|
||||
|
||||
+&cpu_opp_table_0 {
|
||||
+ opp-1908000000 {
|
||||
+ opp-hz = /bits/ 64 <1908000000>;
|
||||
+ opp-microvolt = <1030000>;
|
||||
+ };
|
||||
+ opp-2016000000 {
|
||||
+ opp-hz = /bits/ 64 <2016000000>;
|
||||
+ opp-microvolt = <1040000>;
|
||||
+ turbo-mode;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&cpub_opp_table_1 {
|
||||
+ opp-2304000000 {
|
||||
+ opp-hz = /bits/ 64 <2304000000>;
|
||||
+ opp-microvolt = <1030000>;
|
||||
+ turbo-mode;
|
||||
+ };
|
||||
+ opp-2400000000 {
|
||||
+ opp-hz = /bits/ 64 <2400000000>;
|
||||
+ opp-microvolt = <1040000>;
|
||||
+ turbo-mode;
|
||||
+ };
|
||||
+};
|
||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
||||
index a198a91259ec..0c71e8bc0124 100644
|
||||
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
|
||||
@@ -13,3 +13,20 @@ / {
|
||||
compatible = "hardkernel,odroid-n2", "amlogic,s922x", "amlogic,g12b";
|
||||
model = "Hardkernel ODROID-N2";
|
||||
};
|
||||
+
|
||||
+&cpu_opp_table_0 {
|
||||
+ opp-1992000000 {
|
||||
+ turbo-mode;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&cpub_opp_table_1 {
|
||||
+ opp-1908000000 {
|
||||
+ turbo-mode;
|
||||
+ };
|
||||
+ opp-2004000000 {
|
||||
+ opp-hz = /bits/ 64 <2004000000>;
|
||||
+ opp-microvolt = <1022000>;
|
||||
+ turbo-mode;
|
||||
+ };
|
||||
+};
|
||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2l.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2l.dts
|
||||
index e26f3e3258e1..d0884af36f16 100644
|
||||
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2l.dts
|
||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2l.dts
|
||||
@@ -122,3 +122,28 @@ &usb2_phy0 {
|
||||
&usb2_phy1 {
|
||||
phy-supply = <&usb_pwr_en>;
|
||||
};
|
||||
+
|
||||
+&cpu_opp_table_0 {
|
||||
+ opp-1908000000 {
|
||||
+ opp-hz = /bits/ 64 <1908000000>;
|
||||
+ opp-microvolt = <1030000>;
|
||||
+ };
|
||||
+ opp-2016000000 {
|
||||
+ opp-hz = /bits/ 64 <2016000000>;
|
||||
+ opp-microvolt = <1040000>;
|
||||
+ turbo-mode;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&cpub_opp_table_1 {
|
||||
+ opp-2304000000 {
|
||||
+ opp-hz = /bits/ 64 <2304000000>;
|
||||
+ opp-microvolt = <1030000>;
|
||||
+ turbo-mode;
|
||||
+ };
|
||||
+ opp-2400000000 {
|
||||
+ opp-hz = /bits/ 64 <2400000000>;
|
||||
+ opp-microvolt = <1040000>;
|
||||
+ turbo-mode;
|
||||
+ };
|
||||
+};
|
||||
--
|
||||
2.34.1
|
||||
|
Loading…
Reference in a new issue