OSDN Git Service

MIPS,clk: migrate JZ4740 to common clock framework
[uclinux-h8/linux.git] / arch / mips / boot / dts / ingenic / jz4740.dtsi
index ba0e7e9..be0a86f 100644 (file)
@@ -1,3 +1,5 @@
+#include <dt-bindings/clock/jz4740-cgu.h>
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
                interrupt-parent = <&cpuintc>;
                interrupts = <2>;
        };
+
+       ext: ext {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+       };
+
+       rtc: rtc {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <32768>;
+       };
+
+       cgu: jz4740-cgu@10000000 {
+               compatible = "ingenic,jz4740-cgu";
+               reg = <0x10000000 0x100>;
+
+               clocks = <&ext>, <&rtc>;
+               clock-names = "ext", "rtc";
+
+               #clock-cells = <1>;
+       };
 };