powerpc/dts: Factorize the clock control node
authorEmil Medve <Emilian.Medve@freescale.com>
Thu, 6 Nov 2014 15:48:11 +0000 (09:48 -0600)
committerScott Wood <scottwood@freescale.com>
Sat, 8 Nov 2014 00:10:49 +0000 (18:10 -0600)
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Change-Id: I25ce24a25862b4ca460164159867abefe00ccdd1
Signed-off-by: Scott Wood <scottwood@freescale.com>
14 files changed:
arch/powerpc/boot/dts/b4860emu.dts
arch/powerpc/boot/dts/fsl/b4420si-post.dtsi
arch/powerpc/boot/dts/fsl/b4860si-post.dtsi
arch/powerpc/boot/dts/fsl/p2041si-post.dtsi
arch/powerpc/boot/dts/fsl/p3041si-post.dtsi
arch/powerpc/boot/dts/fsl/p4080si-post.dtsi
arch/powerpc/boot/dts/fsl/p5020si-post.dtsi
arch/powerpc/boot/dts/fsl/p5040si-post.dtsi
arch/powerpc/boot/dts/fsl/qoriq-clockgen1.dtsi [new file with mode: 0644]
arch/powerpc/boot/dts/fsl/qoriq-clockgen2.dtsi [new file with mode: 0644]
arch/powerpc/boot/dts/fsl/t1040si-post.dtsi
arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
arch/powerpc/boot/dts/t4240emu.dts

index 85646b4f96e154d3356fc519068529d8514f5020..2aa5cd318ce8bd501501f657921c030545890dd0 100644 (file)
                fsl,liodn-bits = <12>;
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "fsl/qoriq-clockgen2.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,b4-clockgen", "fsl,qoriq-clockgen-2.0";
-               reg = <0xe1000 0x1000>;
        };
 
 /include/ "fsl/qoriq-dma-0.dtsi"
index d67894459ac8dc00ec7d9c5c793af7f44271387c..86161ae6c966e091ef32c053e8662f44b804d927 100644 (file)
                compatible = "fsl,b4420-device-config", "fsl,qoriq-device-config-2.0";
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "qoriq-clockgen2.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,b4420-clockgen", "fsl,qoriq-clockgen-2.0";
-               ranges = <0x0 0xe1000 0x1000>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               sysclk: sysclk {
-                       #clock-cells = <0>;
-                       compatible = "fsl,qoriq-sysclk-2.0";
-                       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";
-               };
 
                mux0: mux0@0 {
                        #clock-cells = <0>;
index 582381dba1d76dede51611a110ed642a9c990330..65100b9636b7ba680fb3db1a4c24a32f1a466a5a 100644 (file)
                compatible = "fsl,b4860-device-config", "fsl,qoriq-device-config-2.0";
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "qoriq-clockgen2.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,b4860-clockgen", "fsl,qoriq-clockgen-2.0";
-               ranges = <0x0 0xe1000 0x1000>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               sysclk: sysclk {
-                       #clock-cells = <0>;
-                       compatible = "fsl,qoriq-sysclk-2.0";
-                       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";
-               };
 
                mux0: mux0@0 {
                        #clock-cells = <0>;
index 69ce1026c94842e9f1122f9be2c7cd6afe43fc3c..efd74db4f9b042a24415cea1e006338729419f38 100644 (file)
                #sleep-cells = <2>;
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "qoriq-clockgen1.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,p2041-clockgen", "fsl,qoriq-clockgen-1.0";
-               ranges = <0x0 0xe1000 0x1000>;
-               reg = <0xe1000 0x1000>;
-               clock-frequency = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               sysclk: sysclk {
-                       #clock-cells = <0>;
-                       compatible = "fsl,qoriq-sysclk-1.0";
-                       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";
-               };
 
                mux2: mux2@40 {
                        #clock-cells = <0>;
index cd63cb1b10421ec63f74fd2a06d12d133cf8baed..d7425ef1ae41e64f6f1ed2b36f2ca584ccae2147 100644 (file)
                #sleep-cells = <2>;
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "qoriq-clockgen1.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,p3041-clockgen", "fsl,qoriq-clockgen-1.0";
-               ranges = <0x0 0xe1000 0x1000>;
-               reg = <0xe1000 0x1000>;
-               clock-frequency = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               sysclk: sysclk {
-                       #clock-cells = <0>;
-                       compatible = "fsl,qoriq-sysclk-1.0";
-                       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";
-               };
 
                mux2: mux2@40 {
                        #clock-cells = <0>;
index 12947ccddf259c35962270a65e086d501b2d66b1..7005a4a4cef03620615313addc598aba4cf8994b 100644 (file)
                #sleep-cells = <2>;
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "qoriq-clockgen1.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,p4080-clockgen", "fsl,qoriq-clockgen-1.0";
-               ranges = <0x0 0xe1000 0x1000>;
-               reg = <0xe1000 0x1000>;
-               clock-frequency = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               sysclk: sysclk {
-                       #clock-cells = <0>;
-                       compatible = "fsl,qoriq-sysclk-1.0";
-                       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";
-               };
 
                pll2: pll2@840 {
                        #clock-cells = <1>;
                        clock-output-names = "pll3", "pll3-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";
-               };
-
                mux2: mux2@40 {
                        #clock-cells = <0>;
                        reg = <0x40 0x4>;
index 4c4a2b0436b2d8cdaa96377fb96f4384fcc5d5fd..55834211bd286086e03c1aaa09ce8312678d192c 100644 (file)
                #sleep-cells = <2>;
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "qoriq-clockgen1.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,p5020-clockgen", "fsl,qoriq-clockgen-1.0";
-               ranges = <0x0 0xe1000 0x1000>;
-               reg = <0xe1000 0x1000>;
-               clock-frequency = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               sysclk: sysclk {
-                       #clock-cells = <0>;
-                       compatible = "fsl,qoriq-sysclk-1.0";
-                       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";
-               };
        };
 
        rcpm: global-utilities@e2000 {
index 67296fdd9698937a232eb0843ec33f8025d14e68..6e4cd6ce363c30d885c6fabc92b25e9f55b86f7e 100644 (file)
                #sleep-cells = <2>;
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "qoriq-clockgen1.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,p5040-clockgen", "fsl,qoriq-clockgen-1.0";
-               ranges = <0x0 0xe1000 0x1000>;
-               reg = <0xe1000 0x1000>;
-               clock-frequency = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               sysclk: sysclk {
-                       #clock-cells = <0>;
-                       compatible = "fsl,qoriq-sysclk-1.0";
-                       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";
-               };
 
                mux2: mux2@40 {
                        #clock-cells = <0>;
diff --git a/arch/powerpc/boot/dts/fsl/qoriq-clockgen1.dtsi b/arch/powerpc/boot/dts/fsl/qoriq-clockgen1.dtsi
new file mode 100644 (file)
index 0000000..4871048
--- /dev/null
@@ -0,0 +1,78 @@
+/*
+ * QorIQ clock control device tree stub [ controller @ offset 0xe1000 ]
+ *
+ * Copyright 2014 Freescale Semiconductor Inc.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *     * Redistributions of source code must retain the above copyright
+ *      notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above copyright
+ *      notice, this list of conditions and the following disclaimer in the
+ *      documentation and/or other materials provided with the distribution.
+ *     * Neither the name of Freescale Semiconductor nor the
+ *      names of its contributors may be used to endorse or promote products
+ *      derived from this software without specific prior written permission.
+ *
+ *
+ * ALTERNATIVELY, this software may be distributed under the terms of the
+ * GNU General Public License ("GPL") as published by the Free Software
+ * Foundation, either version 2 of that License or (at your option) any
+ * later version.
+ *
+ * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+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>;
+
+       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";
+       };
+};
diff --git a/arch/powerpc/boot/dts/fsl/qoriq-clockgen2.dtsi b/arch/powerpc/boot/dts/fsl/qoriq-clockgen2.dtsi
new file mode 100644 (file)
index 0000000..5d18d2a
--- /dev/null
@@ -0,0 +1,61 @@
+/*
+ * QorIQ clock control device tree stub [ controller @ offset 0xe1000 ]
+ *
+ * Copyright 2014 Freescale Semiconductor Inc.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *     * Redistributions of source code must retain the above copyright
+ *      notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above copyright
+ *      notice, this list of conditions and the following disclaimer in the
+ *      documentation and/or other materials provided with the distribution.
+ *     * Neither the name of Freescale Semiconductor nor the
+ *      names of its contributors may be used to endorse or promote products
+ *      derived from this software without specific prior written permission.
+ *
+ *
+ * ALTERNATIVELY, this software may be distributed under the terms of the
+ * GNU General Public License ("GPL") as published by the Free Software
+ * Foundation, either version 2 of that License or (at your option) any
+ * later version.
+ *
+ * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+global-utilities@e1000 {
+       compatible = "fsl,qoriq-clockgen-2.0";
+       ranges = <0x0 0xe1000 0x1000>;
+       reg = <0xe1000 0x1000>;
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       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";
+       };
+};
index 12e597eea3c8a69e89d971647211681ab9e63ec3..15ae462e758f66409a82d596100a9a53cebda46e 100644 (file)
                fsl,liodn-bits = <12>;
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "qoriq-clockgen2.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,t1040-clockgen", "fsl,qoriq-clockgen-2.0";
-               ranges = <0x0 0xe1000 0x1000>;
-               reg = <0xe1000 0x1000>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               sysclk: sysclk {
-                       #clock-cells = <0>;
-                       compatible = "fsl,qoriq-sysclk-2.0";
-                       clock-output-names = "sysclk", "fixed-clock";
-               };
-
-
-               pll0: pll0@800 {
-                       #clock-cells = <1>;
-                       reg = <0x800 4>;
-                       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 4>;
-                       compatible = "fsl,qoriq-core-pll-2.0";
-                       clocks = <&sysclk>;
-                       clock-output-names = "pll1", "pll1-div2", "pll1-div4";
-               };
 
                mux0: mux0@0 {
                        #clock-cells = <0>;
index aecee9690a88a0ec09320f5b43c9740bdfb2c4cf..1ce91e3485a9d2be8afc87d126dcc4bee2c019b2 100644 (file)
                fsl,liodn-bits = <12>;
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "qoriq-clockgen2.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,t2080-clockgen", "fsl,qoriq-clockgen-2.0";
-               ranges = <0x0 0xe1000 0x1000>;
-               reg = <0xe1000 0x1000>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               sysclk: sysclk {
-                       #clock-cells = <0>;
-                       compatible = "fsl,qoriq-sysclk-2.0";
-                       clock-output-names = "sysclk", "fixed-clock";
-               };
-
-               pll0: pll0@800 {
-                       #clock-cells = <1>;
-                       reg = <0x800 4>;
-                       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 4>;
-                       compatible = "fsl,qoriq-core-pll-2.0";
-                       clocks = <&sysclk>;
-                       clock-output-names = "pll1", "pll1-div2", "pll1-div4";
-               };
 
                mux0: mux0@0 {
                        #clock-cells = <0>;
index 7e2fc7cdce4833039a80f8fa650c7292a7b030e1..0e96fcabe812d68b96df419cf093ee8d0a185e98 100644 (file)
                fsl,liodn-bits = <12>;
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "qoriq-clockgen2.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,t4240-clockgen", "fsl,qoriq-clockgen-2.0";
-               ranges = <0x0 0xe1000 0x1000>;
-               reg = <0xe1000 0x1000>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               sysclk: sysclk {
-                       #clock-cells = <0>;
-                       compatible = "fsl,qoriq-sysclk-2.0";
-                       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";
-               };
 
                pll2: pll2@840 {
                        #clock-cells = <1>;
index bc12127a03fbfe339b882496a89cfdbafcedfdbb..decaf357db9c569639d13a6c3402940ab16076a9 100644 (file)
                fsl,liodn-bits = <12>;
        };
 
-       clockgen: global-utilities@e1000 {
+/include/ "fsl/qoriq-clockgen2.dtsi"
+       global-utilities@e1000 {
                compatible = "fsl,t4240-clockgen", "fsl,qoriq-clockgen-2.0";
-               reg = <0xe1000 0x1000>;
        };
 
 /include/ "fsl/qoriq-dma-0.dtsi"