ramips: use gic timer as clocksource for mt7621
[openwrt/staging/yousong.git] / target / linux / ramips / dts / mt7621.dtsi
index a06aee733b7cff79511dab0e2ebd1cd871739386..06828c6bbd2a8d5d7a71dde15f57416e8d554e08 100644 (file)
@@ -88,6 +88,9 @@
                        compatible = "ns16550a";
                        reg = <0xc00 0x100>;
 
+                       /* FIXME: there should be way to detect this */
+                       clock-frequency = <50000000>;
+
                        interrupt-parent = <&gic>;
                        interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
 
                        compatible = "ralink,mt7621-spi";
                        reg = <0xb00 0x100>;
 
+                       /* FIXME: there should be way to detect this */
+                       clock-frequency = <50000000>;
+
                        resets = <&rstctrl 18>;
                        reset-names = "spi";
 
                #interrupt-cells = <3>;
 
                mti,reserved-cpu-vectors = <7>;
+
+               timer {
+                       compatible = "mti,gic-timer";
+                       interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
+
+                       /* FIXME: there should be way to detect this */
+                       clock-frequency = <880000000>;
+               };
        };
 
        nand@1e003000 {