aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621.dtsi
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-12-11 15:03:39 +0000
committerJohn Crispin <blogic@openwrt.org>2015-12-11 15:03:39 +0000
commite34cb807742d29b34fa9ead3a1e8b1587818de99 (patch)
tree515e57bd53bda7922157faee2919fa15eb141118 /target/linux/ramips/dts/mt7621.dtsi
parent12e3019bb49edd46725ba992bc9b10ebcf731e06 (diff)
downloadmaster-187ad058-e34cb807742d29b34fa9ead3a1e8b1587818de99.tar.gz
master-187ad058-e34cb807742d29b34fa9ead3a1e8b1587818de99.tar.bz2
master-187ad058-e34cb807742d29b34fa9ead3a1e8b1587818de99.zip
ramips: use gic timer as clocksource for mt7621
* Switches clocksource to gic timer. * Moves frequency definitions to dtsi since frequency was hardcoded anyway Will work on proper frequency detection later. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47843 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/dts/mt7621.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7621.dtsi14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index a06aee733b..06828c6bbd 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -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>;
@@ -102,6 +105,9 @@
compatible = "ralink,mt7621-spi";
reg = <0xb00 0x100>;
+ /* FIXME: there should be way to detect this */
+ clock-frequency = <50000000>;
+
resets = <&rstctrl 18>;
reset-names = "spi";
@@ -243,6 +249,14 @@
#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 {