arm64: dts: rockchip: used range'd gpu opps on rk3399
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Thu, 25 Feb 2021 13:33:21 +0000 (14:33 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 21 Mar 2021 20:06:30 +0000 (21:06 +0100)
Similar to the cpu opps, also use opps with a range on the gpu.
(min, preferred, max). The voltage just needs to be higher than
the minimum and this allows the regulator more freedom if it
can't provide the exact voltage specified, but just say 5mV higher,
as can be seen on rk3399-puma which fails to scale panfrost voltages
nearly completely.

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Link: https://lore.kernel.org/r/20210225133322.3420724-2-heiko@sntech.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi

index 20b0d60..da41cd8 100644 (file)
 
                opp00 {
                        opp-hz = /bits/ 64 <200000000>;
-                       opp-microvolt = <825000>;
+                       opp-microvolt = <825000 825000 1150000>;
                };
                opp01 {
                        opp-hz = /bits/ 64 <297000000>;
-                       opp-microvolt = <825000>;
+                       opp-microvolt = <825000 825000 1150000>;
                };
                opp02 {
                        opp-hz = /bits/ 64 <400000000>;
-                       opp-microvolt = <825000>;
+                       opp-microvolt = <825000 825000 1150000>;
                };
                opp03 {
                        opp-hz = /bits/ 64 <500000000>;
-                       opp-microvolt = <875000>;
+                       opp-microvolt = <875000 875000 1150000>;
                };
                opp04 {
                        opp-hz = /bits/ 64 <600000000>;
-                       opp-microvolt = <925000>;
+                       opp-microvolt = <925000 925000 1150000>;
                };
                opp05 {
                        opp-hz = /bits/ 64 <800000000>;
-                       opp-microvolt = <1100000>;
+                       opp-microvolt = <1100000 1100000 1150000>;
                };
        };
 };