ipq806x: fix missing changes in 5.4 for new cpufreq implementation
[openwrt/openwrt.git] / target / linux / ipq806x / patches-5.4 / 083-ipq8064-dtsi-additions.patch
index cbb0231d43ea22897238e67ac052c3330a3b2328..ccfae25494f09c08ebffd9427dc4aebd83b60c5a 100644 (file)
@@ -26,7 +26,7 @@
                };
  
                cpu1: cpu@1 {
-@@ -38,11 +50,458 @@
+@@ -38,11 +50,476 @@
                        next-level-cache = <&L2>;
                        qcom,acc = <&acc1>;
                        qcom,saw = <&saw1>;
 +                      cpu-idle-states = <&CPU_SPC>;
                };
  
-               L2: l2-cache {
-                       compatible = "cache";
-                       cache-level = <2>;
-+                      qcom,saw = <&saw_l2>;
-+              };
-+
-+              qcom,l2 {
-+                      qcom,l2-rates = <384000000 1000000000 1200000000>;
-+                      qcom,l2-cpufreq = <384000000 600000000 1200000000>;
-+                      qcom,l2-volt = <1100000 1100000 1150000>;
-+                      qcom,l2-supply = <&smb208_s1a>;
-+              };
-+
+-              L2: l2-cache {
+-                      compatible = "cache";
+-                      cache-level = <2>;
 +              idle-states {
 +                      CPU_SPC: spc {
 +                              compatible = "qcom,idle-state-spc", "arm,idle-state";
 +              };
 +      };
 +
++      opp_table_l2: opp_table_l2 {
++              compatible = "operating-points-v2";
++
++              opp-384000000 {
++                      opp-hz = /bits/ 64 <384000000>;
++                      opp-microvolt = <1100000>;
++                      clock-latency-ns = <100000>;
++                      opp-level = <0>;
++              };
++
++              opp-1000000000 {
++                      opp-hz = /bits/ 64 <1000000000>;
++                      opp-microvolt = <1100000>;
++                      clock-latency-ns = <100000>;
++                      opp-level = <1>;
++              };
++
++              opp-1200000000 {
++                      opp-hz = /bits/ 64 <1200000000>;
++                      opp-microvolt = <1150000>;
++                      clock-latency-ns = <100000>;
++                      opp-level = <2>;
++              };
++      };
++ 
 +      opp_table0: opp_table0 {
 +              compatible = "operating-points-v2-kryo-cpu";
 +              nvmem-cells = <&speedbin_efuse>;
@@ -78,6 +93,7 @@
 +                      opp-microvolt-speed0-pvs3-v0 = <800000>;
 +                      opp-supported-hw = <0x1>;
 +                      clock-latency-ns = <100000>;
++                      opp-level = <0>;
 +              };
 +
 +              opp-600000000 {
 +                      opp-microvolt-speed0-pvs3-v0 = <850000>;
 +                      opp-supported-hw = <0x1>;
 +                      clock-latency-ns = <100000>;
++                      opp-level = <1>;
 +              };
 +
 +              opp-800000000 {
 +                      opp-microvolt-speed0-pvs3-v0 = <900000>;
 +                      opp-supported-hw = <0x1>;
 +                      clock-latency-ns = <100000>;
++                      opp-level = <1>;
 +              };
 +
 +              opp-1000000000 {
 +                      opp-microvolt-speed0-pvs3-v0 = <950000>;
 +                      opp-supported-hw = <0x1>;
 +                      clock-latency-ns = <100000>;
++                      opp-level = <1>;
 +              };
 +
 +              opp-1200000000 {
 +                      opp-microvolt-speed0-pvs3-v0 = <1000000>;
 +                      opp-supported-hw = <0x1>;
 +                      clock-latency-ns = <100000>;
++                      opp-level = <1>;
 +              };
 +
 +              opp-1400000000 {
 +                      opp-microvolt-speed0-pvs3-v0 = <1050000>;
 +                      opp-supported-hw = <0x1>;
 +                      clock-latency-ns = <100000>;
++                      opp-level = <2>;
 +              };
 +      };
 +
                };
        };
  
-@@ -93,6 +552,15 @@
+@@ -93,6 +570,15 @@
                };
        };
  
        firmware {
                scm {
                        compatible = "qcom,scm-ipq806x", "qcom,scm";
-@@ -120,6 +588,84 @@
+@@ -120,6 +606,95 @@
                        reg-names = "lpass-lpaif";
                };
  
++              L2: l2-cache {
++                      compatible = "qcom,krait-cache", "cache";
++                      cache-level = <2>;
++                      qcom,saw = <&saw_l2>;
++
++                      clocks = <&kraitcc 4>;
++                      clock-names = "l2";
++                      l2-supply = <&smb208_s1a>;
++                      operating-points-v2 = <&opp_table_l2>;
++              };
++
 +              qfprom: qfprom@700000 {
 +                      compatible = "qcom,qfprom", "syscon";
 +                      reg = <0x700000 0x1000>;
                qcom_pinmux: pinmux@800000 {
                        compatible = "qcom,ipq8064-pinctrl";
                        reg = <0x800000 0x4000>;
-@@ -159,6 +705,15 @@
+@@ -159,6 +734,15 @@
                                };
                        };
  
                        spi_pins: spi_pins {
                                mux {
                                        pins = "gpio18", "gpio19", "gpio21";
-@@ -168,6 +723,53 @@
+@@ -168,6 +752,53 @@
                                };
                        };
  
                        leds_pins: leds_pins {
                                mux {
                                        pins = "gpio7", "gpio8", "gpio9",
-@@ -229,6 +831,17 @@
+@@ -229,6 +860,17 @@
                        clock-output-names = "acpu1_aux";
                };
  
                saw0: regulator@2089000 {
                        compatible = "qcom,saw2", "qcom,apq8064-saw2-v1.1-cpu", "syscon";
                        reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
-@@ -241,6 +854,17 @@
+@@ -241,6 +883,17 @@
                        regulator;
                };
  
                gsbi2: gsbi@12480000 {
                        compatible = "qcom,gsbi-v1.0.0";
                        cell-index = <2>;
-@@ -436,6 +1060,15 @@
+@@ -436,6 +1089,15 @@
                        #power-domain-cells = <1>;
                };
  
                tcsr: syscon@1a400000 {
                        compatible = "qcom,tcsr-ipq8064", "syscon";
                        reg = <0x1a400000 0x100>;
-@@ -448,6 +1081,95 @@
+@@ -448,6 +1110,95 @@
                        #reset-cells = <1>;
                };
  
                pcie0: pci@1b500000 {
                        compatible = "qcom,pcie-ipq8064";
                        reg = <0x1b500000 0x1000
-@@ -601,6 +1323,167 @@
+@@ -601,6 +1352,167 @@
                        perst-gpio = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
                };
  
                vsdcc_fixed: vsdcc-regulator {
                        compatible = "regulator-fixed";
                        regulator-name = "SDCC Power";
-@@ -676,4 +1559,17 @@
+@@ -676,4 +1588,17 @@
                        };
                };
        };