ipq806x: update DT in accordance to new drivers And add some more DT nodes
authorPavel Kubelun <be.dissent@gmail.com>
Wed, 2 Nov 2016 19:42:55 +0000 (22:42 +0300)
committerJohn Crispin <john@phrozen.org>
Thu, 3 Nov 2016 07:28:16 +0000 (08:28 +0100)
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065.dtsi
target/linux/ipq806x/patches-4.4/144-ARM-dts-qcom-Add-necessary-DT-data-for-Krait-cpufreq.patch
target/linux/ipq806x/patches-4.4/157-ARM-DT-ipq8064-Add-ADM-device-node.patch
target/linux/ipq806x/patches-4.4/164-arm-qcom-dts-Add-NAND-controller-node-for-ipq806x.patch
target/linux/ipq806x/patches-4.4/168-ARM-qcom-add-smb208-DT.patch
target/linux/ipq806x/patches-4.4/176-add-saw_l2-into-ipq8064-DT.patch [new file with mode: 0644]
target/linux/ipq806x/patches-4.4/708-ARM-dts-qcom-add-gmac-nodes-to-ipq806x-platforms.patch

index 42281c4d54e22635d9645f82c4bc91c37ecb1322..cae5fdc3b34fd9208cc4613310dbba585899c7d6 100644 (file)
@@ -7,18 +7,19 @@
 #include <dt-bindings/soc/qcom,gsbi.h>
 #include <dt-bindings/reset/qcom,gcc-ipq806x.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Qualcomm IPQ8065";
-       compatible = "qcom,ipq8065";
+       compatible = "qcom,ipq8065", "qcom,ipq8064";
        interrupt-parent = <&intc>;
 
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
 
-               cpu@0 {
+               cpu0: cpu@0 {
                        compatible = "qcom,krait";
                        enable-method = "qcom,kpss-acc-v1";
                        device_type = "cpu";
                        next-level-cache = <&L2>;
                        qcom,acc = <&acc0>;
                        qcom,saw = <&saw0>;
-                       clocks = <&kraitcc 0>;
-                       clock-names = "cpu";
+                       clocks = <&kraitcc 0>, <&kraitcc 4>;
+                       clock-names = "cpu", "l2";
                        qcom,imem = <&imem>;
                        clock-latency = <100000>;
-                       core-supply = <&smb208_s2a>;
+                       cpu-supply = <&smb208_s2a>;
                        voltage-tolerance = <5>;
                        cooling-min-state = <0>;
                        cooling-max-state = <10>;
                        #cooling-cells = <2>;
-
-                       operating-points-0-0 = <
-                               /* kHz      uV */
-                               1725000 1262500
-                               1400000 1175000
-                               1000000 1100000
-                                800000 1050000
-                                600000 1000000
-                                384000 975000
-                       >;
-                       operating-points-0-1 = <
-                               /* kHz      uV */
-                               1725000 1262500
-                               1400000 1175000
-                               1000000 1100000
-                                800000 1050000
-                                600000 1000000
-                                384000 950000
-                       >;
-                       operating-points-0-2 = <
-                               /* kHz      uV */
-                               1725000 1200000
-                               1400000 1125000
-                               1000000 1050000
-                                800000 1000000
-                                600000 950000
-                                384000 925000
-                       >;
-                       operating-points-0-3 = <
-                               /* kHz      uV */
-                               1725000 1175000
-                               1400000 1100000
-                               1000000 1025000
-                                800000 975000
-                                600000 925000
-                                384000 900000
-                       >;
-                       operating-points-0-4 = <
-                               /* kHz      uV */
-                               1725000 1150000
-                               1400000 1075000
-                               1000000 1000000
-                                800000 950000
-                                600000 900000
-                                384000 875000
-                       >;
-                       operating-points-0-5 = <
-                               /* kHz      uV */
-                               1725000 1100000
-                               1400000 1025000
-                               1000000 950000
-                                800000 900000
-                                600000 850000
-                                384000 825000
-                       >;
-                       operating-points-0-6 = <
-                               /* kHz      uV */
-                               1725000 1050000
-                               1400000 975000
-                               1000000 900000
-                                800000 850000
-                                600000 800000
-                                384000 775000
-                       >;
                };
 
-               cpu@1 {
+               cpu1: cpu@1 {
                        compatible = "qcom,krait";
                        enable-method = "qcom,kpss-acc-v1";
                        device_type = "cpu";
                        next-level-cache = <&L2>;
                        qcom,acc = <&acc1>;
                        qcom,saw = <&saw1>;
-                       clocks = <&kraitcc 1>;
-                       clock-names = "cpu";
+                       clocks = <&kraitcc 1>, <&kraitcc 4>;
+                       clock-names = "cpu", "l2";
                        qcom,imem = <&imem>;
                        clock-latency = <100000>;
-                       core-supply = <&smb208_s2b>;
+                       cpu-supply = <&smb208_s2b>;
                        cooling-min-state = <0>;
                        cooling-max-state = <10>;
                        #cooling-cells = <2>;
-
-                       operating-points-0-0 = <
-                               /* kHz      uV */
-                               1725000 1262500
-                               1400000 1175000
-                               1000000 1100000
-                                800000 1050000
-                                600000 1000000
-                                384000 975000
-                       >;
-                       operating-points-0-1 = <
-                               /* kHz      uV */
-                               1725000 1262500
-                               1400000 1175000
-                               1000000 1100000
-                                800000 1050000
-                                600000 1000000
-                                384000 950000
-                       >;
-                       operating-points-0-2 = <
-                               /* kHz      uV */
-                               1725000 1200000
-                               1400000 1125000
-                               1000000 1050000
-                                800000 1000000
-                                600000 950000
-                                384000 925000
-                       >;
-                       operating-points-0-3 = <
-                               /* kHz      uV */
-                               1725000 1175000
-                               1400000 1100000
-                               1000000 1025000
-                                800000 975000
-                                600000 925000
-                                384000 900000
-                       >;
-                       operating-points-0-4 = <
-                               /* kHz      uV */
-                               1725000 1150000
-                               1400000 1075000
-                               1000000 1000000
-                                800000 950000
-                                600000 900000
-                                384000 875000
-                       >;
-                       operating-points-0-5 = <
-                               /* kHz      uV */
-                               1725000 1100000
-                               1400000 1025000
-                               1000000 950000
-                                800000 900000
-                                600000 850000
-                                384000 825000
-                       >;
-                       operating-points-0-6 = <
-                               /* kHz      uV */
-                               1725000 1050000
-                               1400000 975000
-                               1000000 900000
-                                800000 850000
-                                600000 800000
-                                384000 775000
-                       >;
                };
 
                L2: l2-cache {
                        compatible = "cache";
                        cache-level = <2>;
-                       clocks = <&kraitcc 4>;
-                       clock-names = "cache";
-                       cache-points-kHz = <
-                               /* kHz    uV    CPU kHz */
-                               1200000 1150000 1200000
-                               1000000 1100000  600000
-                                384000 1100000  384000
-                       >;
-                       vdd_dig-supply = <&smb208_s1a>;
+                       qcom,saw = <&saw_l2>;
+               };
+
+               qcom,l2 {
+                       qcom,l2-rates = <384000000 1000000000 1200000000>;
                };
        };
 
                                        qcom,switch-mode-frequency = <1200000>;
                                };
                        };
-
-                       rpm_clocks {
-                               #clock-cells = <0>;
-                               compatible = "qcom,rpm-clk";
-                               qcom,rpm-clk-active-only;
-
-                               cxo_clk: cxo {
-                                       reg = <QCOM_RPM_CXO_CLK>;
-                                       qcom,rpm-clk-name = "cxo";
-                                       qcom,rpm-clk-freq = <25000000>;
-                               };
-
-                               pxo_clk: pxo {
-                                       reg = <QCOM_RPM_PXO_CLK>;
-                                       qcom,rpm-clk-name = "pxo";
-                                       qcom,rpm-clk-freq = <25000000>;
-                               };
-
-                               ebi1_clk: ebi1 {
-                                       reg = <QCOM_RPM_EBI1_CLK>;
-                                       qcom,rpm-clk-name = "ebi1";
-                                       qcom,rpm-clk-freq = <533000000>;
-                               };
-
-                               apps_fabric_clk: apps-fabric {
-                                       reg = <QCOM_RPM_APPS_FABRIC_CLK>;
-                                       qcom,rpm-clk-name = "apps-fabric";
-                                       qcom,rpm-clk-freq = <533000000>;
-                               };
-
-                               nss_fabric0_clk: nss-fabric0 {
-                                       reg = <QCOM_RPM_NSS_FABRIC_0_CLK>;
-                                       qcom,rpm-clk-name = "nss-fabric0";
-                                       qcom,rpm-clk-freq = <533000000>;
-                               };
-
-                               nss_fabric1_clk: nss-fabric1 {
-                                       reg = <QCOM_RPM_NSS_FABRIC_1_CLK>;
-                                       qcom,rpm-clk-name = "nss-fabric1";
-                                       qcom,rpm-clk-freq = <266000000>;
-                               };
-                       };
                };
 
                rng@1a500000 {
                };
 
                saw0: regulator@2089000 {
-                       compatible = "qcom,saw2";
+                       compatible = "qcom,saw2", "syscon";
                        reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
                        regulator;
                };
 
                saw1: regulator@2099000 {
-                       compatible = "qcom,saw2";
+                       compatible = "qcom,saw2", "syscon";
                        reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
                        regulator;
                };
 
+               saw_l2: regulator@02012000 {
+                       compatible = "qcom,saw2", "syscon";
+                       reg = <0x02012000 0x1000>;
+                       regulator;
+               };
+               sic_non_secure: sic-non-secure@12100000 {
+                       compatible = "syscon";
+                       reg = <0x12100000 0x10000>;
+               };
+
                gsbi1: gsbi@12440000 {
                        compatible = "qcom,gsbi-v1.0.0";
                        cell-index = <1>;
                        reg = <0x00900000 0x4000>;
                        #clock-cells = <1>;
                        #reset-cells = <1>;
+                       #power-domain-cells = <1>;
                };
 
                lcc: clock-controller@28000000 {
                adm_dma: dma@18300000 {
                        compatible = "qcom,adm";
                        reg = <0x18300000 0x100000>;
-                       interrupts = <0 170 0>;
+                       interrupts = <GIC_SPI 170 IRQ_TYPE_NONE>;
                        #dma-cells = <1>;
 
                        clocks = <&gcc ADM0_CLK>, <&gcc ADM0_PBUS_CLK>;
 
                        status = "disabled";
                };
+
                /* Temporary fixed regulator */
                vsdcc_fixed: vsdcc-regulator {
                        compatible = "regulator-fixed";
                                #dma-names = "tx", "rx";
                        };
                };
-
        };
 
        sfpb_mutex: sfpb-mutex {
index aaf140126c00bbae3e6799869b7e398c0fa1afab..6ca3c62e4e724c3e6ec4c3042560aa7bfbd68f29 100644 (file)
@@ -4,40 +4,36 @@
                        next-level-cache = <&L2>;
                        qcom,acc = <&acc0>;
                        qcom,saw = <&saw0>;
-+                      clocks = <&kraitcc 0>;
-+                      clock-names = "cpu";
++                      clocks = <&kraitcc 0>, <&kraitcc 4>;
++                      clock-names = "cpu", "l2";
 +                      clock-latency = <100000>;
-+                      core-supply = <&smb208_s2a>;
++                      cpu-supply = <&smb208_s2a>;
 +                      voltage-tolerance = <5>;
                };
  
                cpu@1 {
-@@ -36,11 +41,24 @@
+@@ -36,12 +41,20 @@
                        next-level-cache = <&L2>;
                        qcom,acc = <&acc1>;
                        qcom,saw = <&saw1>;
-+                      clocks = <&kraitcc 1>;
-+                      clock-names = "cpu";
++                      clocks = <&kraitcc 1>, <&kraitcc 4>;
++                      clock-names = "cpu", "l2";
 +                      clock-latency = <100000>;
-+                      core-supply = <&smb208_s2b>;
++                      cpu-supply = <&smb208_s2b>;
                };
  
                L2: l2-cache {
                        compatible = "cache";
                        cache-level = <2>;
-+                      clocks = <&kraitcc 4>;
-+                      clock-names = "cache";
-+                      cache-points-kHz = <
-+                              /* kHz    uV    CPU kHz */
-+                              1200000 1150000 1200000
-+                              1000000 1100000  600000
-+                               384000 1100000  384000
-+                      >;
-+                      vdd_dig-supply = <&smb208_s1a>;
                };
++
++              qcom,l2 {
++                      qcom,l2-rates = <384000000 1000000000 1200000000>;
++              };
        };
  
-@@ -73,6 +91,46 @@
+       cpu-pmu {
+@@ -73,6 +86,46 @@
                };
        };
  
@@ -84,7 +80,7 @@
        soc: soc {
                #address-cells = <1>;
                #size-cells = <1>;
-@@ -215,11 +273,13 @@
+@@ -215,11 +268,13 @@
                acc0: clock-controller@2088000 {
                        compatible = "qcom,kpss-acc-v1";
                        reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
index b8abd0a4b23bf9d25c6103266581afec31110e24..5fc2a3da551402d8b7674c3e152c42eee0b2907c 100644 (file)
@@ -13,7 +13,7 @@ Signed-off-by: Andy Gross <agross@codeaurora.org>
 
 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
-@@ -727,6 +727,26 @@
+@@ -722,6 +722,26 @@
  
                        status = "disabled";
                };
index 4fc8a8ce9077223d036f0d1753e299848d99b264..bd8c7e752c00847cbfeab6654a22d27b2ae73260 100644 (file)
@@ -26,7 +26,7 @@ arch/arm/boot/dts/qcom-ipq8064.dtsi | 15 +++++++++++++++
 
 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
-@@ -747,6 +747,22 @@
+@@ -742,6 +742,22 @@
  
                        status = "disabled";
                };
index a3a0583f299afad9ac7f0a16fa320a1b6b1a4ecf..1a15a8c64578507fd2f2b6c322fdcb8f5ec20cb9 100644 (file)
@@ -4,7 +4,7 @@ Signed-off-by: Adrian Panella <ianchi74@outlook.com>
 
 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
-@@ -167,45 +167,37 @@
+@@ -162,45 +162,37 @@
                        #address-cells = <1>;
                        #size-cells = <0>;
  
diff --git a/target/linux/ipq806x/patches-4.4/176-add-saw_l2-into-ipq8064-DT.patch b/target/linux/ipq806x/patches-4.4/176-add-saw_l2-into-ipq8064-DT.patch
new file mode 100644 (file)
index 0000000..d4f6c68
--- /dev/null
@@ -0,0 +1,41 @@
+--- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
++++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
+@@ -50,6 +50,7 @@
+               L2: l2-cache {
+                       compatible = "cache";
+                       cache-level = <2>;
++                      qcom,saw = <&saw_l2>;
+               };
+               qcom,l2 {
+@@ -276,17 +277,28 @@
+               };
+               saw0: regulator@2089000 {
+-                      compatible = "qcom,saw2";
++                      compatible = "qcom,saw2", "syscon";
+                       reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
+                       regulator;
+               };
+               saw1: regulator@2099000 {
+-                      compatible = "qcom,saw2";
++                      compatible = "qcom,saw2", "syscon";
+                       reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
+                       regulator;
+               };
++              saw_l2: regulator@02012000 {
++                      compatible = "qcom,saw2", "syscon";
++                      reg = <0x02012000 0x1000>;
++                      regulator;
++              };
++ 
++              sic_non_secure: sic-non-secure@12100000 {
++                      compatible = "syscon";
++                      reg = <0x12100000 0x10000>;
++              };
++
+               gsbi2: gsbi@12480000 {
+                       compatible = "qcom,gsbi-v1.0.0";
+                       cell-index = <2>;
index d85d8b02aa62b8752a98b209e5d70d64b10da97e..dcdec6660395a2f4eaf3f8e980839222fb639451 100644 (file)
@@ -121,7 +121,7 @@ Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
  };
 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
-@@ -755,6 +755,92 @@
+@@ -762,6 +762,92 @@
  
                        status = "disabled";
                };