]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
arm64: dts: rockchip: Add gpu opp nodes to px30 dtsi
authorMaciej Matuszczyk <maccraft123mc@gmail.com>
Thu, 25 Feb 2021 08:19:44 +0000 (08:19 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 21 Mar 2021 20:05:28 +0000 (21:05 +0100)
This matches the values in the vendor kernel.

Signed-off-by: Maciej Matuszczyk <maccraft123mc@gmail.com>
[added tiny commit description]
Link: https://lore.kernel.org/r/20210225081943.127714-1-maccraft123mc@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/px30.dtsi

index c45b0cfcae09c6de8598d499219ece3719d46480..235338927a10976a150a6d14e7827b43891b06fd 100644 (file)
                status = "disabled";
        };
 
+       gpu_opp_table: opp-table2 {
+               compatible = "operating-points-v2";
+
+               opp-200000000 {
+                       opp-hz = /bits/ 64 <200000000>;
+                       opp-microvolt = <950000>;
+               };
+               opp-300000000 {
+                       opp-hz = /bits/ 64 <300000000>;
+                       opp-microvolt = <975000>;
+               };
+               opp-400000000 {
+                       opp-hz = /bits/ 64 <400000000>;
+                       opp-microvolt = <1050000>;
+               };
+               opp-480000000 {
+                       opp-hz = /bits/ 64 <480000000>;
+                       opp-microvolt = <1125000>;
+               };
+       };
+
        gpu: gpu@ff400000 {
                compatible = "rockchip,px30-mali", "arm,mali-bifrost";
                reg = <0x0 0xff400000 0x0 0x4000>;
                clocks = <&cru SCLK_GPU>;
                #cooling-cells = <2>;
                power-domains = <&power PX30_PD_GPU>;
+               operating-points-v2 = <&gpu_opp_table>;
                status = "disabled";
        };