ipq8065: update dtsi with new opp table
authorAnsuel Smith <ansuelsmth@gmail.com>
Wed, 25 Dec 2019 14:02:46 +0000 (15:02 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 26 Dec 2019 07:31:42 +0000 (08:31 +0100)
The new driver use opp table to register frequency.
Drop psv bindings as they are not used anymore.

Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> [nbg6817/ipq8065]
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
target/linux/ipq806x/files-4.19/arch/arm/boot/dts/qcom-ipq8065.dtsi

index d18aea4c54f4eb525aca426954908c3d8d30e9f4..ae9e4a2e8ea1d5ea6b1b3788d72aa98bdb80e0bf 100644 (file)
@@ -4,59 +4,6 @@
        model = "Qualcomm IPQ8065";
        compatible = "qcom,ipq8065", "qcom,ipq8064";
 
-       qcom,pvs {
-               qcom,pvs-format-a;
-               qcom,speed0-pvs0-bin-v0 =
-                       < 1725000000 1262500 >,
-                       < 1400000000 1175000 >,
-                       < 1000000000 1100000 >,
-                        < 800000000 1050000 >,
-                        < 600000000 1000000 >,
-                        < 384000000 975000 >;
-               qcom,speed0-pvs1-bin-v0 =
-                       < 1725000000 1225000 >,
-                       < 1400000000 1150000 >,
-                       < 1000000000 1075000 >,
-                        < 800000000 1025000 >,
-                        < 600000000 975000 >,
-                        < 384000000 950000 >;
-               qcom,speed0-pvs2-bin-v0 =
-                       < 1725000000 1200000 >,
-                       < 1400000000 1125000 >,
-                       < 1000000000 1050000 >,
-                        < 800000000 1000000 >,
-                        < 600000000 950000 >,
-                        < 384000000 925000 >;
-               qcom,speed0-pvs3-bin-v0 =
-                       < 1725000000 1175000 >,
-                       < 1400000000 1100000 >,
-                       < 1000000000 1025000 >,
-                        < 800000000 975000 >,
-                        < 600000000 925000 >,
-                        < 384000000 900000 >;
-               qcom,speed0-pvs4-bin-v0 =
-                       < 1725000000 1150000 >,
-                       < 1400000000 1075000 >,
-                       < 1000000000 1000000 >,
-                        < 800000000 950000 >,
-                        < 600000000 900000 >,
-                        < 384000000 875000 >;
-               qcom,speed0-pvs5-bin-v0 =
-                       < 1725000000 1100000 >,
-                       < 1400000000 1025000 >,
-                       < 1000000000 950000 >,
-                        < 800000000 900000 >,
-                        < 600000000 850000 >,
-                        < 384000000 825000 >;
-               qcom,speed0-pvs6-bin-v0 =
-                       < 1725000000 1050000 >,
-                       < 1400000000 975000 >,
-                       < 1000000000 900000 >,
-                        < 800000000 850000 >,
-                        < 600000000 800000 >,
-                        < 384000000 775000 >;
-       };
-
        soc: soc {
 
                rpm@108000 {
                };
        };
 };
+
+&opp_table0 {
+       compatible = "operating-points-v2-qcom-cpu";
+       nvmem-cells = <&speedbin_efuse>;
+
+       /* 
+        * On ipq8065 1.2 ghz freq is not present
+        * Remove it to make cpufreq work and not
+        * complain for missing definition
+        */
+
+       /delete-node/opp-1200000000;
+
+       opp-384000000 {
+               opp-hz = /bits/ 64 <384000000>;
+               opp-microvolt-speed0-pvs0-v0 = <975000>;
+               opp-microvolt-speed0-pvs1-v0 = <950000>;
+               opp-microvolt-speed0-pvs2-v0 = <925000>;
+               opp-microvolt-speed0-pvs3-v0 = <900000>;
+               opp-microvolt-speed0-pvs4-v0 = <875000>;
+               opp-microvolt-speed0-pvs5-v0 = <825000>;
+               opp-microvolt-speed0-pvs6-v0 = <775000>;
+               opp-supported-hw = <0x1>;
+               clock-latency-ns = <100000>;
+       };
+
+       opp-600000000 {
+               opp-hz = /bits/ 64 <600000000>;
+               opp-microvolt-speed0-pvs0-v0 = <1000000>;
+               opp-microvolt-speed0-pvs1-v0 = <975000>;
+               opp-microvolt-speed0-pvs2-v0 = <950000>;
+               opp-microvolt-speed0-pvs3-v0 = <925000>;
+               opp-microvolt-speed0-pvs4-v0 = <900000>;
+               opp-microvolt-speed0-pvs5-v0 = <850000>;
+               opp-microvolt-speed0-pvs6-v0 = <800000>;
+               opp-supported-hw = <0x1>;
+               clock-latency-ns = <100000>;
+       };
+
+       opp-800000000 {
+               opp-hz = /bits/ 64 <800000000>;
+               opp-microvolt-speed0-pvs0-v0 = <1050000>;
+               opp-microvolt-speed0-pvs1-v0 = <1025000>;
+               opp-microvolt-speed0-pvs2-v0 = <1000000>;
+               opp-microvolt-speed0-pvs3-v0 = <975000>;
+               opp-microvolt-speed0-pvs4-v0 = <950000>;
+               opp-microvolt-speed0-pvs5-v0 = <900000>;
+               opp-microvolt-speed0-pvs6-v0 = <850000>;
+               opp-supported-hw = <0x1>;
+               clock-latency-ns = <100000>;
+       };
+
+       opp-1000000000 {
+               opp-hz = /bits/ 64 <1000000000>;
+               opp-microvolt-speed0-pvs0-v0 = <1100000>;
+               opp-microvolt-speed0-pvs1-v0 = <1075000>;
+               opp-microvolt-speed0-pvs2-v0 = <1050000>;
+               opp-microvolt-speed0-pvs3-v0 = <1025000>;
+               opp-microvolt-speed0-pvs4-v0 = <1000000>;
+               opp-microvolt-speed0-pvs5-v0 = <950000>;
+               opp-microvolt-speed0-pvs6-v0 = <900000>;
+               opp-supported-hw = <0x1>;
+               clock-latency-ns = <100000>;
+       };
+
+       opp-1400000000 {
+               opp-hz = /bits/ 64 <1400000000>;
+               opp-microvolt-speed0-pvs0-v0 = <1175000>;
+               opp-microvolt-speed0-pvs1-v0 = <1150000>;
+               opp-microvolt-speed0-pvs2-v0 = <1125000>;
+               opp-microvolt-speed0-pvs3-v0 = <1100000>;
+               opp-microvolt-speed0-pvs4-v0 = <1075000>;
+               opp-microvolt-speed0-pvs5-v0 = <1025000>;
+               opp-microvolt-speed0-pvs6-v0 = <975000>;
+               opp-supported-hw = <0x1>;
+               clock-latency-ns = <100000>;
+       };
+
+       opp-1725000000 {
+               opp-hz = /bits/ 64 <1725000000>;
+               opp-microvolt-speed0-pvs0-v0 = <1262500>;
+               opp-microvolt-speed0-pvs1-v0 = <1225000>;
+               opp-microvolt-speed0-pvs2-v0 = <1200000>;
+               opp-microvolt-speed0-pvs3-v0 = <1175000>;
+               opp-microvolt-speed0-pvs4-v0 = <1150000>;
+               opp-microvolt-speed0-pvs5-v0 = <1100000>;
+               opp-microvolt-speed0-pvs6-v0 = <1050000>;
+               opp-supported-hw = <0x1>;
+               clock-latency-ns = <100000>;
+       };
+};