ARM: sun8i: a83t: Add CCU device nodes
authorChen-Yu Tsai <wens@csie.org>
Fri, 19 May 2017 07:06:10 +0000 (15:06 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 19 May 2017 08:30:55 +0000 (10:30 +0200)
Now that we have support for the A83T CCU, add a device node for it,
and replace any existing placeholder clock phandles with the correct
ones.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a83t.dtsi

index c0a1e4f..c9a5d07 100644 (file)
                #size-cells = <1>;
                ranges;
 
+               ccu: clock@1c20000 {
+                       compatible = "allwinner,sun8i-a83t-ccu";
+                       reg = <0x01c20000 0x400>;
+                       clocks = <&osc24M>, <&osc16Md512>;
+                       clock-names = "hosc", "losc";
+                       #clock-cells = <1>;
+                       #reset-cells = <1>;
+               };
+
                pio: pinctrl@1c20800 {
                        compatible = "allwinner,sun8i-a83t-pinctrl";
                        interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
                                     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
                                     <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
                        reg = <0x01c20800 0x400>;
-                       clocks = <&osc24M>;
+                       clocks = <&ccu 45>, <&osc24M>, <&osc16Md512>;
+                       clock-names = "apb", "hosc", "losc";
                        gpio-controller;
                        interrupt-controller;
                        #interrupt-cells = <3>;
                        interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
                        reg-shift = <2>;
                        reg-io-width = <4>;
-                       clocks = <&osc24M>;
+                       clocks = <&ccu 53>;
+                       resets = <&ccu 40>;
                        status = "disabled";
                };