ARM64: dts: rk3399: add clock-latency-ns for each opp
authorChen Liang <cl@rock-chips.com>
Thu, 24 Nov 2016 06:29:56 +0000 (14:29 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 24 Nov 2016 08:48:13 +0000 (16:48 +0800)
We may miss clock-latency-ns when disable some opps, then cpufreq
will fallback to performance governor, so add clock-latency-ns for
each opp to make disable opp easy.

code as below:
drivers/cpufreq/cpufreq.c:2010
if (policy->governor->max_transition_latency &&
    policy->cpuinfo.transition_latency >
    policy->governor->max_transition_latency) {
if (!gov)
         return -EINVAL;
else {
       pr_warn("%s governor failed, too long transition latency of HW,
fallback to %s governor\n",
                 policy->governor->name, gov->name);
         policy->governor = gov;
}
}

Change-Id: I93cff667deb487baa0115b7af0206f0803010d37
Signed-off-by: Chen Liang <cl@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-box.dtsi
arch/arm64/boot/dts/rockchip/rk3399-evb-rev2.dtsi
arch/arm64/boot/dts/rockchip/rk3399-evb-rev3.dtsi
arch/arm64/boot/dts/rockchip/rk3399-mid-818-android-next.dts
arch/arm64/boot/dts/rockchip/rk3399-mid-818-android.dts
arch/arm64/boot/dts/rockchip/rk3399-rv1-android.dts
arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
arch/arm64/boot/dts/rockchip/rk3399-vr-android.dts
arch/arm64/boot/dts/rockchip/rk3399.dtsi

index 6b605ca..a1fffff 100644 (file)
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <875000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <925000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1050000>;
+               clock-latency-ns = <40000>;
        };
        opp@1512000000 {
                opp-hz = /bits/ 64 <1512000000>;
                opp-microvolt = <1125000>;
+               clock-latency-ns = <40000>;
        };
 };
 
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <825000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <875000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <950000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1025000>;
+               clock-latency-ns = <40000>;
        };
        opp@1608000000 {
                opp-hz = /bits/ 64 <1608000000>;
                opp-microvolt = <1100000>;
+               clock-latency-ns = <40000>;
        };
        opp@1800000000 {
                opp-hz = /bits/ 64 <1800000000>;
                opp-microvolt = <1175000>;
+               clock-latency-ns = <40000>;
        };
        opp@1992000000 {
                opp-hz = /bits/ 64 <1992000000>;
                opp-microvolt = <1250000>;
+               clock-latency-ns = <40000>;
        };
 };
 
index c0a4f71..869a1d8 100644 (file)
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <875000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <925000>;
+               clock-latency-ns = <40000>;
                status = "disabeld";
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1050000>;
+               clock-latency-ns = <40000>;
                status = "disabeld";
        };
        opp@1512000000 {
                opp-hz = /bits/ 64 <1512000000>;
                opp-microvolt = <1075000>;
+               clock-latency-ns = <40000>;
                status = "disabeld";
        };
 };
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <825000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <875000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <950000>;
+               clock-latency-ns = <40000>;
                status = "disabeld";
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1025000>;
+               clock-latency-ns = <40000>;
                status = "disabeld";
        };
        opp@1608000000 {
                opp-hz = /bits/ 64 <1608000000>;
                opp-microvolt = <1125000>;
+               clock-latency-ns = <40000>;
                status = "disabeld";
        };
        opp@1800000000 {
                opp-hz = /bits/ 64 <1800000000>;
                opp-microvolt = <1200000>;
+               clock-latency-ns = <40000>;
                status = "disabeld";
        };
 };
index 335a016..aa30305 100644 (file)
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <850000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <925000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1050000>;
+               clock-latency-ns = <40000>;
        };
        opp@1512000000 {
                opp-hz = /bits/ 64 <1512000000>;
                opp-microvolt = <1100000>;
+               clock-latency-ns = <40000>;
        };
 };
 
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <825000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <850000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <900000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1000000>;
+               clock-latency-ns = <40000>;
        };
        opp@1608000000 {
                opp-hz = /bits/ 64 <1608000000>;
                opp-microvolt = <1050000>;
+               clock-latency-ns = <40000>;
        };
        opp@1800000000 {
                opp-hz = /bits/ 64 <1800000000>;
                opp-microvolt = <1150000>;
+               clock-latency-ns = <40000>;
        };
        opp@1992000000 {
                opp-hz = /bits/ 64 <1992000000>;
                opp-microvolt = <1225000>;
+               clock-latency-ns = <40000>;
        };
 };
 
index 89b7fe1..23fe3b1 100644 (file)
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <875000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <925000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1050000>;
+               clock-latency-ns = <40000>;
        };
        opp@1512000000 {
                opp-hz = /bits/ 64 <1512000000>;
                opp-microvolt = <1100000>;
+               clock-latency-ns = <40000>;
                status="disabled";
        };
 };
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <825000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <875000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <950000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1025000>;
+               clock-latency-ns = <40000>;
        };
        opp@1608000000 {
                opp-hz = /bits/ 64 <1608000000>;
                opp-microvolt = <1100000>;
+               clock-latency-ns = <40000>;
        };
        opp@1800000000 {
                opp-hz = /bits/ 64 <1800000000>;
                opp-microvolt = <1175000>;
+               clock-latency-ns = <40000>;
        };
        opp@1992000000 {
                opp-hz = /bits/ 64 <1992000000>;
                opp-microvolt = <1250000>;
+               clock-latency-ns = <40000>;
        };
 };
 
index e049493..b8b173f 100644 (file)
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <875000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <925000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1050000>;
+               clock-latency-ns = <40000>;
        };
        opp@1512000000 {
                opp-hz = /bits/ 64 <1512000000>;
                opp-microvolt = <1100000>;
+               clock-latency-ns = <40000>;
                status="disabled";
        };
 };
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <825000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <875000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <950000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1025000>;
+               clock-latency-ns = <40000>;
        };
        opp@1608000000 {
                opp-hz = /bits/ 64 <1608000000>;
                opp-microvolt = <1100000>;
+               clock-latency-ns = <40000>;
        };
        opp@1800000000 {
                opp-hz = /bits/ 64 <1800000000>;
                opp-microvolt = <1175000>;
+               clock-latency-ns = <40000>;
        };
        opp@1992000000 {
                opp-hz = /bits/ 64 <1992000000>;
                opp-microvolt = <1250000>;
+               clock-latency-ns = <40000>;
        };
 };
 
index 18f9fd3..f457cfd 100644 (file)
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <850000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <925000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1075000>;
+               clock-latency-ns = <40000>;
        };
        opp@1512000000 {
                opp-hz = /bits/ 64 <1512000000>;
                opp-microvolt = <1100000>;
+               clock-latency-ns = <40000>;
                status="disabled";
        };
 };
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <825000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <850000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <900000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1000000>;
+               clock-latency-ns = <40000>;
        };
        opp@1608000000 {
                opp-hz = /bits/ 64 <1608000000>;
                opp-microvolt = <1050000>;
+               clock-latency-ns = <40000>;
        };
        opp@1800000000 {
                opp-hz = /bits/ 64 <1800000000>;
                opp-microvolt = <1150000>;
+               clock-latency-ns = <40000>;
        };
        opp@1992000000 {
                opp-hz = /bits/ 64 <1992000000>;
                opp-microvolt = <1225000>;
+               clock-latency-ns = <40000>;
        };
 };
 
index 9056875..f6ba367 100644 (file)
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <875000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <925000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1050000>;
+               clock-latency-ns = <40000>;
        };
 };
 
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <825000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <875000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <950000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1025000>;
+               clock-latency-ns = <40000>;
        };
        opp@1608000000 {
                opp-hz = /bits/ 64 <1608000000>;
                opp-microvolt = <1100000>;
+               clock-latency-ns = <40000>;
        };
        opp@1800000000 {
                opp-hz = /bits/ 64 <1800000000>;
                opp-microvolt = <1175000>;
+               clock-latency-ns = <40000>;
        };
        opp@1992000000 {
                opp-hz = /bits/ 64 <1992000000>;
                opp-microvolt = <1250000>;
+               clock-latency-ns = <40000>;
        };
 };
 
index e415a88..25e1b06 100644 (file)
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <850000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <925000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1075000>;
+               clock-latency-ns = <40000>;
        };
        opp@1512000000 {
                opp-hz = /bits/ 64 <1512000000>;
                opp-microvolt = <1100000>;
+               clock-latency-ns = <40000>;
                status="disabled";
        };
 };
        opp@600000000 {
                opp-hz = /bits/ 64 <600000000>;
                opp-microvolt = <800000>;
+               clock-latency-ns = <40000>;
        };
        opp@816000000 {
                opp-hz = /bits/ 64 <816000000>;
                opp-microvolt = <825000>;
+               clock-latency-ns = <40000>;
        };
        opp@1008000000 {
                opp-hz = /bits/ 64 <1008000000>;
                opp-microvolt = <850000>;
+               clock-latency-ns = <40000>;
        };
        opp@1200000000 {
                opp-hz = /bits/ 64 <1200000000>;
                opp-microvolt = <900000>;
+               clock-latency-ns = <40000>;
        };
        opp@1416000000 {
                opp-hz = /bits/ 64 <1416000000>;
                opp-microvolt = <1000000>;
+               clock-latency-ns = <40000>;
        };
        opp@1608000000 {
                opp-hz = /bits/ 64 <1608000000>;
                opp-microvolt = <1050000>;
+               clock-latency-ns = <40000>;
        };
        opp@1800000000 {
                opp-hz = /bits/ 64 <1800000000>;
                opp-microvolt = <1150000>;
+               clock-latency-ns = <40000>;
        };
        opp@1992000000 {
                opp-hz = /bits/ 64 <1992000000>;
                opp-microvolt = <1225000>;
+               clock-latency-ns = <40000>;
        };
 };
 
index baeaed5..6b69f83 100644 (file)
                opp@600000000 {
                        opp-hz = /bits/ 64 <600000000>;
                        opp-microvolt = <800000>;
+                       clock-latency-ns = <40000>;
                };
                opp@816000000 {
                        opp-hz = /bits/ 64 <816000000>;
                        opp-microvolt = <800000>;
+                       clock-latency-ns = <40000>;
                };
                opp@1008000000 {
                        opp-hz = /bits/ 64 <1008000000>;
                        opp-microvolt = <875000>;
+                       clock-latency-ns = <40000>;
                };
                opp@1200000000 {
                        opp-hz = /bits/ 64 <1200000000>;
                        opp-microvolt = <925000>;
+                       clock-latency-ns = <40000>;
                };
                opp@1416000000 {
                        opp-hz = /bits/ 64 <1416000000>;
                        opp-microvolt = <1025000>;
+                       clock-latency-ns = <40000>;
                };
        };
 
                opp@600000000 {
                        opp-hz = /bits/ 64 <600000000>;
                        opp-microvolt = <800000>;
+                       clock-latency-ns = <40000>;
                };
                opp@816000000 {
                        opp-hz = /bits/ 64 <816000000>;
                        opp-microvolt = <800000>;
+                       clock-latency-ns = <40000>;
                };
                opp@1008000000 {
                        opp-hz = /bits/ 64 <1008000000>;
                        opp-microvolt = <850000>;
+                       clock-latency-ns = <40000>;
                };
                opp@1200000000 {
                        opp-hz = /bits/ 64 <1200000000>;
                        opp-microvolt = <925000>;
+                       clock-latency-ns = <40000>;
                };
        };