Skip to contentSkip to conversation

ARM: dts: sun8i-h3: add opp table for mali gpu

PATCH In review Qiang Yu 2 participants 2 messages Mar 28, 2020 – Mar 30, 2020

Subsystems (2)
lore
Share & tools
lore

Qiang Yu

author
#0 lore raw

PATCH 1/1 ARM: dts: sun8i-h3: add opp table for mali gpu

OPP table vaule is get from orangepi lichee linux-3.4 kernel driver.

---
 arch/arm/boot/dts/sun8i-h3.dtsi | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)
arch/arm/boot/dts/sun8i-h3.dtsi +18 -2
index 20217e2ca4d3..53ef9a18e953 100644
@@ -128,6 +128,23 @@
 			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
 	};
 
+	gpu_opp_table: gpu-opp-table {
+		compatible = "operating-points-v2";
+
+		opp-120000000 {
+			opp-hz = /bits/ 64 <120000000>;
+		};
+		opp-312000000 {
+			opp-hz = /bits/ 64 <312000000>;
+		};
+		opp-432000000 {
+			opp-hz = /bits/ 64 <432000000>;
+		};
+		opp-576000000 {
+			opp-hz = /bits/ 64 <576000000>;
+		};
+	};
+
 	soc {
 		deinterlace: deinterlace@1400000 {
 			compatible = "allwinner,sun8i-h3-deinterlace";
@@ -205,8 +222,7 @@
 			clock-names = "bus", "core";
 			resets = <&ccu RST_BUS_GPU>;
 
-			assigned-clocks = <&ccu CLK_GPU>;
-			assigned-clock-rates = <384000000>;
+			operating-points-v2 = <&gpu_opp_table>;
 		};
 
 		ths: thermal-sensor@1c25000 {
Signature · 1 line
2.17.1
#1 lore raw

Hi,

Quoted 4 lines · Qiang Yu

OPP table vaule is get from orangepi lichee linux-3.4 kernel driver.

Thanks!

I've fixed up the value typo, sorted the opp table according to its node name, and added some new lines after each OPP node. This will be part of 5.8.

Maxime