]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: berlin: convert BG2Q to DT clock nodes
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 12 May 2014 20:07:35 +0000 (22:07 +0200)
committerSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tue, 13 May 2014 20:27:01 +0000 (22:27 +0200)
This converts Berlin BG2Q SoC dtsi to make use of the new DT clock
nodes for Berlin SoCs.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
arch/arm/boot/dts/berlin2q.dtsi

index 52c7d644e492913bd38642d971b7c855bec51b73..ba3beb6b03273211b07c14807504c1efea5d542c 100644 (file)
@@ -47,7 +47,7 @@
                };
        };
 
-       smclk: sysmgr-clock {
+       refclk: oscillator {
                compatible = "fixed-clock";
                #clock-cells = <0>;
                clock-frequency = <25000000>;
                clock-frequency = <100000000>;
        };
 
-       cpuclk: cpu-clock {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <1200000000>;
-       };
-
        twdclk: twdclk {
                compatible = "fixed-factor-clock";
                #clock-cells = <0>;
-               clocks = <&cpuclk>;
+               clocks = <&cpupll>;
                clock-mult = <1>;
                clock-div = <3>;
        };
                        #interrupt-cells = <3>;
                };
 
+               cpupll: cpupll@dd0170 {
+                       compatible = "marvell,berlin2q-pll";
+                       clocks = <&refclk>;
+                       #clock-cells = <0>;
+                       reg = <0xdd0170 0x8>;
+               };
+
                apb@e80000 {
                        compatible = "simple-bus";
                        #address-cells = <1>;
                        };
                };
 
+               syspll: syspll@ea0030 {
+                       compatible = "marvell,berlin2q-pll";
+                       clocks = <&refclk>;
+                       #clock-cells = <0>;
+                       reg = <0xea0030 0x8>;
+               };
+
                generic-regs@ea0110 {
                        compatible = "marvell,berlin-generic-regs", "syscon";
                        reg = <0xea0110 0x10>;
                };
 
+               sdio0xin_clk: sdio0xinclk@ea0158 {
+                       compatible = "marvell,berlin2-clk-div";
+                       #clock-cells = <0>;
+                       reg = <0xea0158 0x4>;
+                       clocks = <&syspll>;
+                       clock-names = "mux_bypass";
+               };
+
+               sdio1xin_clk: sdio1xinclk@ea015c {
+                       compatible = "marvell,berlin2-clk-div";
+                       #clock-cells = <0>;
+                       reg = <0xea015c 0x4>;
+                       clocks = <&syspll>;
+                       clock-names = "mux_bypass";
+               };
+
                apb@fc0000 {
                        compatible = "simple-bus";
                        #address-cells = <1>;
                                reg = <0x9000 0x100>;
                                interrupt-parent = <&sic>;
                                interrupts = <8>;
-                               clocks = <&smclk>;
+                               clocks = <&refclk>;
                                reg-shift = <2>;
                                status = "disabled";
                        };
                                reg = <0xa000 0x100>;
                                interrupt-parent = <&sic>;
                                interrupts = <9>;
-                               clocks = <&smclk>;
+                               clocks = <&refclk>;
                                reg-shift = <2>;
                                status = "disabled";
                        };