powerpc/fsl: Use new clockgen binding
authorScott Wood <oss@buserror.net>
Wed, 31 Oct 2018 06:57:35 +0000 (14:57 +0800)
committerScott Wood <oss@buserror.net>
Sat, 22 Dec 2018 02:58:34 +0000 (20:58 -0600)
The driver retains compatibility with old device trees, but we don't
want the old nodes lying around to be copied, or used as a reference
(some of the mux options are incorrect), or even just being clutter.

Signed-off-by: Scott Wood <oss@buserror.net>
Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
[scottwood: removed sysclk node added by Andy]
Signed-off-by: Scott Wood <oss@buserror.net>
22 files changed:
arch/powerpc/boot/dts/fsl/b4420si-pre.dtsi
arch/powerpc/boot/dts/fsl/b4860si-pre.dtsi
arch/powerpc/boot/dts/fsl/b4si-post.dtsi
arch/powerpc/boot/dts/fsl/p2041si-post.dtsi
arch/powerpc/boot/dts/fsl/p2041si-pre.dtsi
arch/powerpc/boot/dts/fsl/p3041si-post.dtsi
arch/powerpc/boot/dts/fsl/p3041si-pre.dtsi
arch/powerpc/boot/dts/fsl/p4080si-post.dtsi
arch/powerpc/boot/dts/fsl/p4080si-pre.dtsi
arch/powerpc/boot/dts/fsl/p5020si-pre.dtsi
arch/powerpc/boot/dts/fsl/p5040si-post.dtsi
arch/powerpc/boot/dts/fsl/p5040si-pre.dtsi
arch/powerpc/boot/dts/fsl/qoriq-clockgen1.dtsi
arch/powerpc/boot/dts/fsl/qoriq-clockgen2.dtsi
arch/powerpc/boot/dts/fsl/t1023si-post.dtsi
arch/powerpc/boot/dts/fsl/t102xsi-pre.dtsi
arch/powerpc/boot/dts/fsl/t1040si-post.dtsi
arch/powerpc/boot/dts/fsl/t104xsi-pre.dtsi
arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
arch/powerpc/boot/dts/fsl/t208xsi-pre.dtsi
arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
arch/powerpc/boot/dts/fsl/t4240si-pre.dtsi

index 88d8423f8ac5585917f87e856cb4dffca4f68f16..bb7b9b9f3f5f1f70a48ac751e0ba7cc0f2e752aa 100644 (file)
                cpu0: PowerPC,e6500@0 {
                        device_type = "cpu";
                        reg = <0 1>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu1: PowerPC,e6500@2 {
                        device_type = "cpu";
                        reg = <2 3>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
index f3f968c51f4bae7430bf5c2c8796147224970ddc..388ba1b15f8c4e4ff83b9bb67eddd61d2989c0dc 100644 (file)
                cpu0: PowerPC,e6500@0 {
                        device_type = "cpu";
                        reg = <0 1>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu1: PowerPC,e6500@2 {
                        device_type = "cpu";
                        reg = <2 3>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu2: PowerPC,e6500@4 {
                        device_type = "cpu";
                        reg = <4 5>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu3: PowerPC,e6500@6 {
                        device_type = "cpu";
                        reg = <6 7>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
index 1b33f5157c8afcc85197b93b82f24cba7722ccf5..4f044b41a776b0a6141127ca14eabd2958d39d12 100644 (file)
        };
 
 /include/ "qoriq-clockgen2.dtsi"
-       clockgen: global-utilities@e1000 {
-               compatible = "fsl,b4-clockgen", "fsl,qoriq-clockgen-2.0";
-               reg = <0xe1000 0x1000>;
-
-               mux0: mux0@0 {
-                       #clock-cells = <0>;
-                       reg = <0x0 0x4>;
-                       compatible = "fsl,qoriq-core-mux-2.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll0 2>,
-                               <&pll1 0>, <&pll1 1>, <&pll1 2>;
-                       clock-names = "pll0", "pll0-div2", "pll0-div4",
-                               "pll1", "pll1-div2", "pll1-div4";
-                       clock-output-names = "cmux0";
-               };
-       };
 
        rcpm: global-utilities@e2000 {
                compatible = "fsl,b4-rcpm", "fsl,qoriq-rcpm-2.0";
index 51e975d7631aa64dbb21cbe7c226775e176bb2ab..872e4485dc3f033876ee7d69f59fa0add91a1783 100644 (file)
 /include/ "qoriq-clockgen1.dtsi"
        global-utilities@e1000 {
                compatible = "fsl,p2041-clockgen", "fsl,qoriq-clockgen-1.0";
-
-               mux2: mux2@40 {
-                       #clock-cells = <0>;
-                       reg = <0x40 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
-                       clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
-                       clock-output-names = "cmux2";
-               };
-
-               mux3: mux3@60 {
-                       #clock-cells = <0>;
-                       reg = <0x60 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
-                       clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
-                       clock-output-names = "cmux3";
-               };
        };
 
        rcpm: global-utilities@e2000 {
index 941274c41f21f7037efe5eb44e36e88d8f5c524f..6318962e8d1486ad266f39d8dfc23ce04d7e8091 100644 (file)
@@ -89,7 +89,7 @@
                cpu0: PowerPC,e500mc@0 {
                        device_type = "cpu";
                        reg = <0>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_0>;
                        fsl,portid-mapping = <0x80000000>;
                        L2_0: l2-cache {
@@ -99,7 +99,7 @@
                cpu1: PowerPC,e500mc@1 {
                        device_type = "cpu";
                        reg = <1>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x40000000>;
                        L2_1: l2-cache {
                cpu2: PowerPC,e500mc@2 {
                        device_type = "cpu";
                        reg = <2>;
-                       clocks = <&mux2>;
+                       clocks = <&clockgen 1 2>;
                        next-level-cache = <&L2_2>;
                        fsl,portid-mapping = <0x20000000>;
                        L2_2: l2-cache {
                cpu3: PowerPC,e500mc@3 {
                        device_type = "cpu";
                        reg = <3>;
-                       clocks = <&mux3>;
+                       clocks = <&clockgen 1 3>;
                        next-level-cache = <&L2_3>;
                        fsl,portid-mapping = <0x10000000>;
                        L2_3: l2-cache {
index 187676fa8d839c76777d0f1c9a0a8e1a6c8c4607..81bc75aca2e06b34920967207f4760cd389e2fc6 100644 (file)
 /include/ "qoriq-clockgen1.dtsi"
        global-utilities@e1000 {
                compatible = "fsl,p3041-clockgen", "fsl,qoriq-clockgen-1.0";
-
-               mux2: mux2@40 {
-                       #clock-cells = <0>;
-                       reg = <0x40 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
-                       clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
-                       clock-output-names = "cmux2";
-               };
-
-               mux3: mux3@60 {
-                       #clock-cells = <0>;
-                       reg = <0x60 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
-                       clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
-                       clock-output-names = "cmux3";
-               };
        };
 
        rcpm: global-utilities@e2000 {
index 50b73e8e638fcb431eb11c2b559e95ca7bd2e8cd..db92f1151a4885690d6c5dce37023761fff9098f 100644 (file)
@@ -90,7 +90,7 @@
                cpu0: PowerPC,e500mc@0 {
                        device_type = "cpu";
                        reg = <0>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_0>;
                        fsl,portid-mapping = <0x80000000>;
                        L2_0: l2-cache {
                cpu1: PowerPC,e500mc@1 {
                        device_type = "cpu";
                        reg = <1>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x40000000>;
                        L2_1: l2-cache {
                cpu2: PowerPC,e500mc@2 {
                        device_type = "cpu";
                        reg = <2>;
-                       clocks = <&mux2>;
+                       clocks = <&clockgen 1 2>;
                        next-level-cache = <&L2_2>;
                        fsl,portid-mapping = <0x20000000>;
                        L2_2: l2-cache {
                cpu3: PowerPC,e500mc@3 {
                        device_type = "cpu";
                        reg = <3>;
-                       clocks = <&mux3>;
+                       clocks = <&clockgen 1 3>;
                        next-level-cache = <&L2_3>;
                        fsl,portid-mapping = <0x10000000>;
                        L2_3: l2-cache {
index a0252085f8580fba9b3aab34770f1179342854ab..4da49b6dd3f594bd016670a60f3b8bebb3c6522d 100644 (file)
 /include/ "qoriq-clockgen1.dtsi"
        global-utilities@e1000 {
                compatible = "fsl,p4080-clockgen", "fsl,qoriq-clockgen-1.0";
-
-               pll2: pll2@840 {
-                       #clock-cells = <1>;
-                       reg = <0x840 0x4>;
-                       compatible = "fsl,qoriq-core-pll-1.0";
-                       clocks = <&sysclk>;
-                       clock-output-names = "pll2", "pll2-div2";
-               };
-
-               pll3: pll3@860 {
-                       #clock-cells = <1>;
-                       reg = <0x860 0x4>;
-                       compatible = "fsl,qoriq-core-pll-1.0";
-                       clocks = <&sysclk>;
-                       clock-output-names = "pll3", "pll3-div2";
-               };
-
-               mux2: mux2@40 {
-                       #clock-cells = <0>;
-                       reg = <0x40 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
-                       clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
-                       clock-output-names = "cmux2";
-               };
-
-               mux3: mux3@60 {
-                       #clock-cells = <0>;
-                       reg = <0x60 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
-                       clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
-                       clock-output-names = "cmux3";
-               };
-
-               mux4: mux4@80 {
-                       #clock-cells = <0>;
-                       reg = <0x80 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
-                       clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
-                       clock-output-names = "cmux4";
-               };
-
-               mux5: mux5@a0 {
-                       #clock-cells = <0>;
-                       reg = <0xa0 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
-                       clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
-                       clock-output-names = "cmux5";
-               };
-
-               mux6: mux6@c0 {
-                       #clock-cells = <0>;
-                       reg = <0xc0 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
-                       clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
-                       clock-output-names = "cmux6";
-               };
-
-               mux7: mux7@e0 {
-                       #clock-cells = <0>;
-                       reg = <0xe0 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll2 0>, <&pll2 1>, <&pll3 0>, <&pll3 1>;
-                       clock-names = "pll2", "pll2-div2", "pll3", "pll3-div2";
-                       clock-output-names = "cmux7";
-               };
        };
 
        rcpm: global-utilities@e2000 {
index d56a546b73e6f592880548af66ebbe18299aa1f1..0a7c65a00e5ed27016717cd48cd32410a94ddd92 100644 (file)
@@ -94,7 +94,7 @@
                cpu0: PowerPC,e500mc@0 {
                        device_type = "cpu";
                        reg = <0>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_0>;
                        fsl,portid-mapping = <0x80000000>;
                        L2_0: l2-cache {
                cpu1: PowerPC,e500mc@1 {
                        device_type = "cpu";
                        reg = <1>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x40000000>;
                        L2_1: l2-cache {
                cpu2: PowerPC,e500mc@2 {
                        device_type = "cpu";
                        reg = <2>;
-                       clocks = <&mux2>;
+                       clocks = <&clockgen 1 2>;
                        next-level-cache = <&L2_2>;
                        fsl,portid-mapping = <0x20000000>;
                        L2_2: l2-cache {
                cpu3: PowerPC,e500mc@3 {
                        device_type = "cpu";
                        reg = <3>;
-                       clocks = <&mux3>;
+                       clocks = <&clockgen 1 3>;
                        next-level-cache = <&L2_3>;
                        fsl,portid-mapping = <0x10000000>;
                        L2_3: l2-cache {
                cpu4: PowerPC,e500mc@4 {
                        device_type = "cpu";
                        reg = <4>;
-                       clocks = <&mux4>;
+                       clocks = <&clockgen 1 4>;
                        next-level-cache = <&L2_4>;
                        fsl,portid-mapping = <0x08000000>;
                        L2_4: l2-cache {
                cpu5: PowerPC,e500mc@5 {
                        device_type = "cpu";
                        reg = <5>;
-                       clocks = <&mux5>;
+                       clocks = <&clockgen 1 5>;
                        next-level-cache = <&L2_5>;
                        fsl,portid-mapping = <0x04000000>;
                        L2_5: l2-cache {
                cpu6: PowerPC,e500mc@6 {
                        device_type = "cpu";
                        reg = <6>;
-                       clocks = <&mux6>;
+                       clocks = <&clockgen 1 6>;
                        next-level-cache = <&L2_6>;
                        fsl,portid-mapping = <0x02000000>;
                        L2_6: l2-cache {
                cpu7: PowerPC,e500mc@7 {
                        device_type = "cpu";
                        reg = <7>;
-                       clocks = <&mux7>;
+                       clocks = <&clockgen 1 7>;
                        next-level-cache = <&L2_7>;
                        fsl,portid-mapping = <0x01000000>;
                        L2_7: l2-cache {
index bfba0b4f1cbbf50ce9eddc0345319eafc37fa96b..2d74ea85e5df4310cab1ec36d93d289a9ac2b26b 100644 (file)
@@ -96,7 +96,7 @@
                cpu0: PowerPC,e5500@0 {
                        device_type = "cpu";
                        reg = <0>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_0>;
                        fsl,portid-mapping = <0x80000000>;
                        L2_0: l2-cache {
                cpu1: PowerPC,e5500@1 {
                        device_type = "cpu";
                        reg = <1>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x40000000>;
                        L2_1: l2-cache {
index e2bd9313e6320bf27776759bc32e2085be599e36..16b454b504e29419b4a0fe58bd000077053db1cd 100644 (file)
 /include/ "qoriq-clockgen1.dtsi"
        global-utilities@e1000 {
                compatible = "fsl,p5040-clockgen", "fsl,qoriq-clockgen-1.0";
-
-               mux2: mux2@40 {
-                       #clock-cells = <0>;
-                       reg = <0x40 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
-                       clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
-                       clock-output-names = "cmux2";
-               };
-
-               mux3: mux3@60 {
-                       #clock-cells = <0>;
-                       reg = <0x60 0x4>;
-                       compatible = "fsl,qoriq-core-mux-1.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
-                       clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
-                       clock-output-names = "cmux3";
-               };
        };
 
        rcpm: global-utilities@e2000 {
index dbd57750fc02d27ff7eefe6bcebe91c1c993b839..ed89dbbdacf0419dcfe634bd127e958f1f2dcaed 100644 (file)
                cpu0: PowerPC,e5500@0 {
                        device_type = "cpu";
                        reg = <0>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_0>;
                        fsl,portid-mapping = <0x80000000>;
                        L2_0: l2-cache {
                cpu1: PowerPC,e5500@1 {
                        device_type = "cpu";
                        reg = <1>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x40000000>;
                        L2_1: l2-cache {
                cpu2: PowerPC,e5500@2 {
                        device_type = "cpu";
                        reg = <2>;
-                       clocks = <&mux2>;
+                       clocks = <&clockgen 1 2>;
                        next-level-cache = <&L2_2>;
                        fsl,portid-mapping = <0x20000000>;
                        L2_2: l2-cache {
                cpu3: PowerPC,e5500@3 {
                        device_type = "cpu";
                        reg = <3>;
-                       clocks = <&mux3>;
+                       clocks = <&clockgen 1 3>;
                        next-level-cache = <&L2_3>;
                        fsl,portid-mapping = <0x10000000>;
                        L2_3: l2-cache {
index 88cd70de4f86ad4a16f2aa4843fcddc629dae9e3..463c1ed9ffdd9767b55096434a682d12b93c7ed5 100644 (file)
 
 clockgen: global-utilities@e1000 {
        compatible = "fsl,qoriq-clockgen-1.0";
-       ranges = <0x0 0xe1000 0x1000>;
        reg = <0xe1000 0x1000>;
-       clock-frequency = <0>;
-       #address-cells = <1>;
-       #size-cells = <1>;
        #clock-cells = <2>;
-
-       sysclk: sysclk {
-               #clock-cells = <0>;
-               compatible = "fsl,qoriq-sysclk-1.0", "fixed-clock";
-               clock-output-names = "sysclk";
-       };
-       pll0: pll0@800 {
-               #clock-cells = <1>;
-               reg = <0x800 0x4>;
-               compatible = "fsl,qoriq-core-pll-1.0";
-               clocks = <&sysclk>;
-               clock-output-names = "pll0", "pll0-div2";
-       };
-       pll1: pll1@820 {
-               #clock-cells = <1>;
-               reg = <0x820 0x4>;
-               compatible = "fsl,qoriq-core-pll-1.0";
-               clocks = <&sysclk>;
-               clock-output-names = "pll1", "pll1-div2";
-       };
-       mux0: mux0@0 {
-               #clock-cells = <0>;
-               reg = <0x0 0x4>;
-               compatible = "fsl,qoriq-core-mux-1.0";
-               clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
-               clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
-               clock-output-names = "cmux0";
-       };
-       mux1: mux1@20 {
-               #clock-cells = <0>;
-               reg = <0x20 0x4>;
-               compatible = "fsl,qoriq-core-mux-1.0";
-               clocks = <&pll0 0>, <&pll0 1>, <&pll1 0>, <&pll1 1>;
-               clock-names = "pll0", "pll0-div2", "pll1", "pll1-div2";
-               clock-output-names = "cmux1";
-       };
-       platform_pll: platform-pll@c00 {
-               #clock-cells = <1>;
-               reg = <0xc00 0x4>;
-               compatible = "fsl,qoriq-platform-pll-1.0";
-               clocks = <&sysclk>;
-               clock-output-names = "platform-pll", "platform-pll-div2";
-       };
 };
index 6dfd7c5357abbdb79a28cf8f3e8bc043353f01e2..0361050bb56ac597e746f761b7204241b55faee5 100644 (file)
 
 clockgen: global-utilities@e1000 {
        compatible = "fsl,qoriq-clockgen-2.0";
-       ranges = <0x0 0xe1000 0x1000>;
        reg = <0xe1000 0x1000>;
-       #address-cells = <1>;
-       #size-cells = <1>;
        #clock-cells = <2>;
-
-       sysclk: sysclk {
-               #clock-cells = <0>;
-               compatible = "fsl,qoriq-sysclk-2.0", "fixed-clock";
-               clock-output-names = "sysclk";
-       };
-       pll0: pll0@800 {
-               #clock-cells = <1>;
-               reg = <0x800 0x4>;
-               compatible = "fsl,qoriq-core-pll-2.0";
-               clocks = <&sysclk>;
-               clock-output-names = "pll0", "pll0-div2", "pll0-div4";
-       };
-       pll1: pll1@820 {
-               #clock-cells = <1>;
-               reg = <0x820 0x4>;
-               compatible = "fsl,qoriq-core-pll-2.0";
-               clocks = <&sysclk>;
-               clock-output-names = "pll1", "pll1-div2", "pll1-div4";
-       };
-       platform_pll: platform-pll@c00 {
-               #clock-cells = <1>;
-               reg = <0xc00 0x4>;
-               compatible = "fsl,qoriq-platform-pll-2.0";
-               clocks = <&sysclk>;
-               clock-output-names = "platform-pll", "platform-pll-div2";
-       };
 };
index 4908af5010983c2af7df21020d18a9e9c2e2ffb7..d552044c5afc085c2b2d14762f500a311d163697 100644 (file)
 /include/ "qoriq-clockgen2.dtsi"
        global-utilities@e1000 {
                compatible = "fsl,t1023-clockgen", "fsl,qoriq-clockgen-2.0";
-               mux0: mux0@0 {
-                       #clock-cells = <0>;
-                       reg = <0x0 4>;
-                       compatible = "fsl,core-mux-clock";
-                       clocks = <&pll0 0>, <&pll0 1>;
-                       clock-names = "pll0_0", "pll0_1";
-                       clock-output-names = "cmux0";
-               };
-               mux1: mux1@20 {
-                       #clock-cells = <0>;
-                       reg = <0x20 4>;
-                       compatible = "fsl,core-mux-clock";
-                       clocks = <&pll0 0>, <&pll0 1>;
-                       clock-names = "pll0_0", "pll0_1";
-                       clock-output-names = "cmux1";
-               };
        };
 
        rcpm: global-utilities@e2000 {
index 9d08a363bab322490740c6533c284df77c386c2f..d87ea13164f27b05261ef0c6c39b359b725f343b 100644 (file)
@@ -74,7 +74,7 @@
                cpu0: PowerPC,e5500@0 {
                        device_type = "cpu";
                        reg = <0>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        #cooling-cells = <2>;
                        L2_1: l2-cache {
@@ -84,7 +84,7 @@
                cpu1: PowerPC,e5500@1 {
                        device_type = "cpu";
                        reg = <1>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_2>;
                        #cooling-cells = <2>;
                        L2_2: l2-cache {
index 145c7f43b5b6011874092180d300767bdfc2b82c..315d0557eefcc062fa99cd9f575bad009daf4537 100644 (file)
 /include/ "qoriq-clockgen2.dtsi"
        global-utilities@e1000 {
                compatible = "fsl,t1040-clockgen", "fsl,qoriq-clockgen-2.0";
-
-               mux0: mux0@0 {
-                       #clock-cells = <0>;
-                       reg = <0x0 4>;
-                       compatible = "fsl,qoriq-core-mux-2.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll0 2>,
-                                <&pll1 0>, <&pll1 1>, <&pll1 2>;
-                       clock-names = "pll0", "pll0-div2", "pll1-div4",
-                               "pll1", "pll1-div2", "pll1-div4";
-                       clock-output-names = "cmux0";
-               };
-
-               mux1: mux1@20 {
-                       #clock-cells = <0>;
-                       reg = <0x20 4>;
-                       compatible = "fsl,qoriq-core-mux-2.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll0 2>,
-                                <&pll1 0>, <&pll1 1>, <&pll1 2>;
-                       clock-names = "pll0", "pll0-div2", "pll1-div4",
-                               "pll1", "pll1-div2", "pll1-div4";
-                       clock-output-names = "cmux1";
-               };
-
-               mux2: mux2@40 {
-                       #clock-cells = <0>;
-                       reg = <0x40 4>;
-                       compatible = "fsl,qoriq-core-mux-2.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll0 2>,
-                                <&pll1 0>, <&pll1 1>, <&pll1 2>;
-                       clock-names = "pll0", "pll0-div2", "pll1-div4",
-                               "pll1", "pll1-div2", "pll1-div4";
-                       clock-output-names = "cmux2";
-               };
-
-               mux3: mux3@60 {
-                       #clock-cells = <0>;
-                       reg = <0x60 4>;
-                       compatible = "fsl,qoriq-core-mux-2.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll0 2>,
-                                <&pll1 0>, <&pll1 1>, <&pll1 2>;
-                       clock-names = "pll0_0", "pll0_1", "pll0_2",
-                               "pll1_0", "pll1_1", "pll1_2";
-                       clock-output-names = "cmux3";
-               };
        };
 
        rcpm: global-utilities@e2000 {
index 6db0ee8b1384f0744ba26e8b6f7a6df771f70eec..dd59e4b69480ea4faa4b055b7704646e16480b36 100644 (file)
@@ -74,7 +74,7 @@
                cpu0: PowerPC,e5500@0 {
                        device_type = "cpu";
                        reg = <0>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        #cooling-cells = <2>;
                        L2_1: l2-cache {
@@ -84,7 +84,7 @@
                cpu1: PowerPC,e5500@1 {
                        device_type = "cpu";
                        reg = <1>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_2>;
                        #cooling-cells = <2>;
                        L2_2: l2-cache {
@@ -94,7 +94,7 @@
                cpu2: PowerPC,e5500@2 {
                        device_type = "cpu";
                        reg = <2>;
-                       clocks = <&mux2>;
+                       clocks = <&clockgen 1 2>;
                        next-level-cache = <&L2_3>;
                        #cooling-cells = <2>;
                        L2_3: l2-cache {
                cpu3: PowerPC,e5500@3 {
                        device_type = "cpu";
                        reg = <3>;
-                       clocks = <&mux3>;
+                       clocks = <&clockgen 1 3>;
                        next-level-cache = <&L2_4>;
                        #cooling-cells = <2>;
                        L2_4: l2-cache {
index a97296c64eb2227027b4d4ee6d3c4f2e033d075e..ecbb447920bc65ffe83b3d4dfb2a600977e56487 100644 (file)
 /include/ "qoriq-clockgen2.dtsi"
        global-utilities@e1000 {
                compatible = "fsl,t2080-clockgen", "fsl,qoriq-clockgen-2.0";
-
-               mux0: mux0@0 {
-                       #clock-cells = <0>;
-                       reg = <0x0 4>;
-                       compatible = "fsl,qoriq-core-mux-2.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll0 2>,
-                                <&pll1 0>, <&pll1 1>, <&pll1 2>;
-                       clock-names = "pll0", "pll0-div2", "pll0-div4",
-                               "pll1", "pll1-div2", "pll1-div4";
-                       clock-output-names = "cmux0";
-               };
-
-               mux1: mux1@20 {
-                       #clock-cells = <0>;
-                       reg = <0x20 4>;
-                       compatible = "fsl,qoriq-core-mux-2.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll0 2>,
-                                <&pll1 0>, <&pll1 1>, <&pll1 2>;
-                       clock-names = "pll0", "pll0-div2", "pll0-div4",
-                               "pll1", "pll1-div2", "pll1-div4";
-                       clock-output-names = "cmux1";
-               };
        };
 
        rcpm: global-utilities@e2000 {
index c2e57203910dab1110c73e00bfa1521022f5107a..3f745de442840ad3763a011aa0282e93c6810aed 100644 (file)
                cpu0: PowerPC,e6500@0 {
                        device_type = "cpu";
                        reg = <0 1>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu1: PowerPC,e6500@2 {
                        device_type = "cpu";
                        reg = <2 3>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu2: PowerPC,e6500@4 {
                        device_type = "cpu";
                        reg = <4 5>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu3: PowerPC,e6500@6 {
                        device_type = "cpu";
                        reg = <6 7>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
index 68c4eadc19e310199dbfa25c0fa3da819e6e845e..fcac73486d487ea0d85cf82ef1dc1fd2dfc09991 100644 (file)
 /include/ "qoriq-clockgen2.dtsi"
        global-utilities@e1000 {
                compatible = "fsl,t4240-clockgen", "fsl,qoriq-clockgen-2.0";
-
-               pll2: pll2@840 {
-                       #clock-cells = <1>;
-                       reg = <0x840 0x4>;
-                       compatible = "fsl,qoriq-core-pll-2.0";
-                       clocks = <&sysclk>;
-                       clock-output-names = "pll2", "pll2-div2", "pll2-div4";
-               };
-
-               pll3: pll3@860 {
-                       #clock-cells = <1>;
-                       reg = <0x860 0x4>;
-                       compatible = "fsl,qoriq-core-pll-2.0";
-                       clocks = <&sysclk>;
-                       clock-output-names = "pll3", "pll3-div2", "pll3-div4";
-               };
-
-               pll4: pll4@880 {
-                       #clock-cells = <1>;
-                       reg = <0x880 0x4>;
-                       compatible = "fsl,qoriq-core-pll-2.0";
-                       clocks = <&sysclk>;
-                       clock-output-names = "pll4", "pll4-div2", "pll4-div4";
-               };
-
-               mux0: mux0@0 {
-                       #clock-cells = <0>;
-                       reg = <0x0 0x4>;
-                       compatible = "fsl,qoriq-core-mux-2.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll0 2>,
-                               <&pll1 0>, <&pll1 1>, <&pll1 2>,
-                               <&pll2 0>, <&pll2 1>, <&pll2 2>;
-                       clock-names = "pll0", "pll0-div2", "pll0-div4",
-                               "pll1", "pll1-div2", "pll1-div4",
-                               "pll2", "pll2-div2", "pll2-div4";
-                       clock-output-names = "cmux0";
-               };
-
-               mux1: mux1@20 {
-                       #clock-cells = <0>;
-                       reg = <0x20 0x4>;
-                       compatible = "fsl,qoriq-core-mux-2.0";
-                       clocks = <&pll0 0>, <&pll0 1>, <&pll0 2>,
-                               <&pll1 0>, <&pll1 1>, <&pll1 2>,
-                               <&pll2 0>, <&pll2 1>, <&pll2 2>;
-                       clock-names = "pll0", "pll0-div2", "pll0-div4",
-                               "pll1", "pll1-div2", "pll1-div4",
-                               "pll2", "pll2-div2", "pll2-div4";
-                       clock-output-names = "cmux1";
-               };
-
-               mux2: mux2@40 {
-                       #clock-cells = <0>;
-                       reg = <0x40 0x4>;
-                       compatible = "fsl,qoriq-core-mux-2.0";
-                       clocks = <&pll3 0>, <&pll3 1>, <&pll3 2>,
-                               <&pll4 0>, <&pll4 1>, <&pll4 2>;
-                       clock-names = "pll3", "pll3-div2", "pll3-div4",
-                               "pll4", "pll4-div2", "pll4-div4";
-                       clock-output-names = "cmux2";
-               };
        };
 
        rcpm: global-utilities@e2000 {
index 038cf8fadee4b6eeb7c1ce3989c233fec6847327..632314c6faa9612c77c3f85e46fa53059cac858a 100644 (file)
                cpu0: PowerPC,e6500@0 {
                        device_type = "cpu";
                        reg = <0 1>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu1: PowerPC,e6500@2 {
                        device_type = "cpu";
                        reg = <2 3>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu2: PowerPC,e6500@4 {
                        device_type = "cpu";
                        reg = <4 5>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu3: PowerPC,e6500@6 {
                        device_type = "cpu";
                        reg = <6 7>;
-                       clocks = <&mux0>;
+                       clocks = <&clockgen 1 0>;
                        next-level-cache = <&L2_1>;
                        fsl,portid-mapping = <0x80000000>;
                };
                cpu4: PowerPC,e6500@8 {
                        device_type = "cpu";
                        reg = <8 9>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_2>;
                        fsl,portid-mapping = <0x40000000>;
                };
                cpu5: PowerPC,e6500@10 {
                        device_type = "cpu";
                        reg = <10 11>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_2>;
                        fsl,portid-mapping = <0x40000000>;
                };
                cpu6: PowerPC,e6500@12 {
                        device_type = "cpu";
                        reg = <12 13>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_2>;
                        fsl,portid-mapping = <0x40000000>;
                };
                cpu7: PowerPC,e6500@14 {
                        device_type = "cpu";
                        reg = <14 15>;
-                       clocks = <&mux1>;
+                       clocks = <&clockgen 1 1>;
                        next-level-cache = <&L2_2>;
                        fsl,portid-mapping = <0x40000000>;
                };
                cpu8: PowerPC,e6500@16 {
                        device_type = "cpu";
                        reg = <16 17>;
-                       clocks = <&mux2>;
+                       clocks = <&clockgen 1 2>;
                        next-level-cache = <&L2_3>;
                        fsl,portid-mapping = <0x20000000>;
                };
                cpu9: PowerPC,e6500@18 {
                        device_type = "cpu";
                        reg = <18 19>;
-                       clocks = <&mux2>;
+                       clocks = <&clockgen 1 2>;
                        next-level-cache = <&L2_3>;
                        fsl,portid-mapping = <0x20000000>;
                };
                cpu10: PowerPC,e6500@20 {
                        device_type = "cpu";
                        reg = <20 21>;
-                       clocks = <&mux2>;
+                       clocks = <&clockgen 1 2>;
                        next-level-cache = <&L2_3>;
                        fsl,portid-mapping = <0x20000000>;
                };
                cpu11: PowerPC,e6500@22 {
                        device_type = "cpu";
                        reg = <22 23>;
-                       clocks = <&mux2>;
+                       clocks = <&clockgen 1 2>;
                        next-level-cache = <&L2_3>;
                        fsl,portid-mapping = <0x20000000>;
                };