Skip to contentSkip to conversation

ARM: dts: rockchip: convert rk3288 to operating-points-v2

PATCH Superseded Heiko Stuebner 2 participants 2 messages Jun 17, 2018 – Jun 18, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/1 ARM: dts: rockchip: convert rk3288 to operating-points-v2

Operating points need to be present in each cpu core using it, not only the first one. With operating-points-v1 this would require duplicating this table into each cpu node.

With opp-v2 we can share the same table on all nodes.

---
 arch/arm/boot/dts/rk3288-veyron.dtsi | 36 +++++++-------
 arch/arm/boot/dts/rk3288.dtsi        | 70 ++++++++++++++++++++++------
 2 files changed, 75 insertions(+), 31 deletions(-)
arch/arm/boot/dts/rk3288-veyron.dtsi +20 -16
index 823c7ed47fcf..c8c83bf544b9 100644
@@ -91,22 +91,26 @@
 
 &cpu0 {
 	cpu0-supply = <&vdd_cpu>;
-	operating-points = <
-		/* KHz    uV */
-		1800000 1400000
-		1704000 1350000
-		1608000 1300000
-		1512000 1250000
-		1416000 1200000
-		1200000 1100000
-		1008000 1050000
-		 816000 1000000
-		 696000  950000
-		 600000  900000
-		 408000  900000
-		 216000  900000
-		 126000  900000
-	>;
+};
+
+/* rk3288-c used in Veyron Chrome-devices has slightly changed OPPs */
+&cpu_opp_table {
+	/delete-node/ opp02;
+
+	opp10 {
+		opp-microvolt = <1250000>;
+	};
+	opp11 {
+		opp-microvolt = <1300000>;
+	};
+	opp12 {
+		opp-hz = /bits/ 64 <1704000000>;
+		opp-microvolt = <1350000>;
+	};
+	opp13 {
+		opp-hz = /bits/ 64 <1800000000>;
+		opp-microvolt = <1400000>;
+	};
 };
 
 &emmc {
arch/arm/boot/dts/rk3288.dtsi +55 -15

82 lines not on this page · raw message

Signature · 1 line
2.17.0
#1 lore raw

PATCH 1/1 ARM: dts: rockchip: convert rk3288 to operating-points-v2

arch/arm/boot/dts/rk3288.dtsi line 92

Quoted 5 lines · Heiko Stuebner
arch/arm/boot/dts/rk3288.dtsi +5 -0
+	cpu_opp_table: cpu-opp-table {
+		compatible = "operating-points-v2";
+		opp-shared;
+
+		opp00 {

Most of the platforms write it as "opp-126000000". Maybe follow the same nomenclature ?

Signature · 1 line
viresh