arm64: dts: allwinner: a64: Add GPU opp table
authorJernej Skrabec <jernej.skrabec@gmail.com>
Sun, 12 Sep 2021 09:50:32 +0000 (11:50 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 13 Sep 2021 07:18:31 +0000 (09:18 +0200)
GPU on A64 currently runs at default frequency, which is 297 MHz. This
is a bit low in some cases and noticeable lag can be observed in GPU
rendered UIs. GPU is capable to run at 432 MHz.

Add GPU OPP table.

Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20210912095032.2397824-1-jernej.skrabec@gmail.com
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi

index 6ddb717..5ba3790 100644 (file)
                status = "disabled";
        };
 
+       gpu_opp_table: opp-table-gpu {
+               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>;
+               };
+       };
+
        osc24M: osc24M_clk {
                #clock-cells = <0>;
                compatible = "fixed-clock";
                        clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
                        clock-names = "bus", "core";
                        resets = <&ccu RST_BUS_GPU>;
+                       operating-points-v2 = <&gpu_opp_table>;
                };
 
                gic: interrupt-controller@1c81000 {