ARM: sun8i: sina33: add highest OPP of CPUs
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Wed, 5 Apr 2017 09:06:34 +0000 (11:06 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 5 Apr 2017 12:11:36 +0000 (14:11 +0200)
The A33 supports 1.1GHz and 1.2GHz frequencies at 1.32V and the Sinlinx
SinA33 has its cpu-supply property set in the cpu DT node.

Therefore, CPUfreq knows how to handle the regulator in charge of the
CPU and can adjust its voltage to match the OPP.

Add these two CPU frequencies to the CPU OPP table of the Sinlinx
SinA33.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts

index e34e092f38bc3f77ba37549c8b6c20f25fa4dcae..9b620cc1d5f1323d1abc0fb89cec00ae2f99704d 100644 (file)
        cpu-supply = <&reg_dcdc3>;
 };
 
+&cpu0_opp_table {
+       opp@1104000000 {
+               opp-hz = /bits/ 64 <1104000000>;
+               opp-microvolt = <1320000>;
+               clock-latency-ns = <244144>; /* 8 32k periods */
+       };
+
+       opp@1200000000 {
+               opp-hz = /bits/ 64 <1200000000>;
+               opp-microvolt = <1320000>;
+               clock-latency-ns = <244144>; /* 8 32k periods */
+       };
+};
+
 &de {
        status = "okay";
 };