]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: rockchip: Update CPU OPP voltages in RK356x SoC dtsi
authorDragan Simic <dsimic@manjaro.org>
Sat, 2 Nov 2024 03:08:59 +0000 (04:08 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 9 Nov 2024 11:53:09 +0000 (12:53 +0100)
Update the lower/upper voltage limits and the exact voltages for the Rockchip
RK356x CPU OPPs, using the most conservative values (i.e. the highest per-OPP
voltages) found in the vendor kernel source. [1]

Using the most conservative per-OPP voltages ensures reliable CPU operation
regardless of the actual CPU binning, with the downside of possibly using
a bit more power for the CPU cores than absolutely needed.

Additionally, fill in the missing "clock-latency-ns" CPU OPP properties, using
the values found in the vendor kernel source. [1]

[1] https://raw.githubusercontent.com/rockchip-linux/kernel/f8b9431ee38ed561650be7092ab93f564598daa9/arch/arm64/boot/dts/rockchip/rk3568.dtsi

Related-to: eb665b1c06bc ("arm64: dts: rockchip: Update GPU OPP voltages in RK356x SoC dtsi")
Signed-off-by: Dragan Simic <dsimic@manjaro.org>
Link: https://lore.kernel.org/r/f816cd24b62742dd05a1b7c6fe162bb581c9b3bf.1730516702.git.dsimic@manjaro.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3568.dtsi
arch/arm64/boot/dts/rockchip/rk356x.dtsi

index 0946310e8c124826ebb66f41ce6ef8489e4dfa17..5c54898f6ed11f7e945b90f95a094cd7a8829b36 100644 (file)
        opp-1992000000 {
                opp-hz = /bits/ 64 <1992000000>;
                opp-microvolt = <1150000 1150000 1150000>;
+               clock-latency-ns = <40000>;
        };
 };
 
index 0ee0ada6f0ab0f144baee4228079c2278db2f560..534593f2ed0b8cf388e0658bb0e17ec480852501 100644 (file)
 
                opp-408000000 {
                        opp-hz = /bits/ 64 <408000000>;
-                       opp-microvolt = <900000 900000 1150000>;
+                       opp-microvolt = <850000 850000 1150000>;
                        clock-latency-ns = <40000>;
                };
 
                opp-600000000 {
                        opp-hz = /bits/ 64 <600000000>;
-                       opp-microvolt = <900000 900000 1150000>;
+                       opp-microvolt = <850000 850000 1150000>;
+                       clock-latency-ns = <40000>;
                };
 
                opp-816000000 {
                        opp-hz = /bits/ 64 <816000000>;
-                       opp-microvolt = <900000 900000 1150000>;
+                       opp-microvolt = <850000 850000 1150000>;
+                       clock-latency-ns = <40000>;
                        opp-suspend;
                };
 
                opp-1104000000 {
                        opp-hz = /bits/ 64 <1104000000>;
                        opp-microvolt = <900000 900000 1150000>;
+                       clock-latency-ns = <40000>;
                };
 
                opp-1416000000 {
                        opp-hz = /bits/ 64 <1416000000>;
-                       opp-microvolt = <900000 900000 1150000>;
+                       opp-microvolt = <1025000 1025000 1150000>;
+                       clock-latency-ns = <40000>;
                };
 
                opp-1608000000 {
                        opp-hz = /bits/ 64 <1608000000>;
-                       opp-microvolt = <975000 975000 1150000>;
+                       opp-microvolt = <1100000 1100000 1150000>;
+                       clock-latency-ns = <40000>;
                };
 
                opp-1800000000 {
                        opp-hz = /bits/ 64 <1800000000>;
-                       opp-microvolt = <1050000 1050000 1150000>;
+                       opp-microvolt = <1150000 1150000 1150000>;
+                       clock-latency-ns = <40000>;
                };
        };