]> git.sur5r.net Git - u-boot/commitdiff
arm: dts: s900: Add Clock Management Unit (CMU) nodes
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 14 Jun 2018 18:08:34 +0000 (23:38 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 9 Jul 2018 19:25:28 +0000 (15:25 -0400)
This commit adds Clock Management Unit (CMU) nodes for Actions Semi
S900 SoC.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
arch/arm/dts/s900.dtsi

index 3bd14b82d482b89f37a929bf7e7ee6158ab24d73..e9d47b1ff1d0ce0e041b96c4e9f457351120f6fb 100644 (file)
@@ -6,18 +6,40 @@
 // Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
 
 /dts-v1/;
+#include <dt-bindings/clock/s900_cmu.h>
 
 / {
        compatible = "actions,s900";
        #address-cells = <0x2>;
        #size-cells = <0x2>;
 
+       losc: losc {
+               compatible = "fixed-clock";
+               clock-frequency = <32768>;
+               #clock-cells = <0>;
+       };
+
+       diff24M: diff24M {
+               compatible = "fixed-clock";
+               clock-frequency = <24000000>;
+               #clock-cells = <0>;
+       };
+
        soc {
                u-boot,dm-pre-reloc;
                compatible = "simple-bus";
                #address-cells = <0x2>;
                #size-cells = <0x2>;
                ranges;
+
+               cmu: clock-controller@e0160000 {
+                       u-boot,dm-pre-reloc;
+                       compatible = "actions,s900-cmu";
+                       reg = <0x0 0xe0160000 0x0 0x1000>;
+                       clocks = <&losc>, <&diff24M>;
+                       clock-names = "losc", "diff24M";
+                       #clock-cells = <1>;
+               };
        };
 };