arm64: dts: rockchip: Add dynamic-power-coefficient to rk3399 GPU
authorLukasz Luba <lukasz.luba@arm.com>
Mon, 27 Nov 2023 08:15:11 +0000 (08:15 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 12 Dec 2023 20:43:47 +0000 (21:43 +0100)
Add dynamic-power-coefficient to the GPU node. That will create Energy
Model for the GPU based on the coefficient and OPP table information.
It will enable mechanism such as DTMP or IPA to work with the GPU DVFS.
In similar way the Energy Model for CPUs in rk3399 is created, so both
are aligned in power scale. The maximum power used from this coefficient
is 1.5W at 600MHz.

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/r/20231127081511.1911706-1-lukasz.luba@arm.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399.dtsi

index faf02e59d6c73ccc573dd52f357953bc17d68742..a2c209c6e2976c0cec4ad07ca221907493cfd953 100644 (file)
                interrupt-names = "job", "mmu", "gpu";
                clocks = <&cru ACLK_GPU>;
                #cooling-cells = <2>;
+               dynamic-power-coefficient = <2640>;
                power-domains = <&power RK3399_PD_GPU>;
                status = "disabled";
        };