ARM: dts: sun8i-h3: add opp table for mali gpu
authorQiang Yu <yuq825@gmail.com>
Sat, 28 Mar 2020 09:16:32 +0000 (17:16 +0800)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 14 Apr 2020 07:21:25 +0000 (09:21 +0200)
OPP table value is get from orangepi lichee linux-3.4
kernel driver.

Signed-off-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm/boot/dts/sun8i-h3.dtsi

index e83aa6866e7ea5de7e25880f20b0ddb48079cdbc..4e89701df91f8f94d59e366612842835cb52b6e2 100644 (file)
                };
        };
 
+       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>;
+               };
+       };
+
        pmu {
                compatible = "arm,cortex-a7-pmu";
                interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
                        clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
                        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 {