]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
arm: dts: lpc32xx: add clock controller device node
authorVladimir Zapolskiy <vz@mleia.com>
Fri, 20 Nov 2015 01:05:05 +0000 (03:05 +0200)
committerVladimir Zapolskiy <vz@mleia.com>
Thu, 11 Feb 2016 01:06:05 +0000 (03:06 +0200)
NXP LPC32xx SoC has a clocking and power control unit (CPC) as a part
of system control block (SCB). CPC is supplied by two external
oscillators and it manages core and most of peripheral clocks, the
change adds SCB and CPC descriptions to shared LPC32xx dtsi file.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
arch/arm/boot/dts/lpc32xx.dtsi

index a9f2d9ac203f3a5c4ca1f53edf72e7097a9c9344..65023c1ff796e1e424e38bba1d7899a616b469a8 100644 (file)
                        compatible = "simple-bus";
                        ranges = <0x20000000 0x20000000 0x30000000>;
 
+                       /* System Control Block */
+                       scb {
+                               compatible = "simple-bus";
+                               ranges = <0x0 0x040004000 0x00001000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               clk: clock-controller@0 {
+                                       compatible = "nxp,lpc3220-clk";
+                                       reg = <0x00 0x114>;
+                                       #clock-cells = <1>;
+
+                                       clocks = <&xtal_32k>, <&xtal>;
+                                       clock-names = "xtal_32k", "xtal";
+                               };
+                       };
+
                        /*
                         * MIC Interrupt controller includes:
                         *   MIC @40008000