2 * Copyright (c) 2016 MediaTek Inc.
3 * Author: John Crispin <blogic@openwrt.org>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #include <dt-bindings/interrupt-controller/irq.h>
16 #include <dt-bindings/interrupt-controller/arm-gic.h>
17 #include "skeleton64.dtsi"
20 compatible = "mediatek,mt7623";
21 interrupt-parent = <&sysirq>;
26 enable-method = "mediatek,mt6589-smp";
30 compatible = "arm,cortex-a7";
35 compatible = "arm,cortex-a7";
40 compatible = "arm,cortex-a7";
45 compatible = "arm,cortex-a7";
50 system_clk: dummy13m {
51 compatible = "fixed-clock";
52 clock-frequency = <13000000>;
57 compatible = "fixed-clock";
58 clock-frequency = <32000>;
63 compatible = "fixed-clock";
64 clock-frequency = <26000000>;
69 compatible = "arm,armv7-timer";
70 interrupt-parent = <&gic>;
71 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
72 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
73 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
74 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
77 watchdog: watchdog@10007000 {
78 compatible = "mediatek,mt7623-wdt",
79 "mediatek,mt6589-wdt";
80 reg = <0 0x10007000 0 0x100>;
83 timer: timer@10008000 {
84 compatible = "mediatek,mt7623-timer",
85 "mediatek,mt6577-timer";
86 reg = <0 0x10008000 0 0x80>;
87 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
88 clocks = <&system_clk>, <&rtc_clk>;
89 clock-names = "system-clk", "rtc-clk";
92 sysirq: interrupt-controller@10200100 {
93 compatible = "mediatek,mt7623-sysirq",
94 "mediatek,mt6577-sysirq";
96 #interrupt-cells = <3>;
97 interrupt-parent = <&gic>;
98 reg = <0 0x10200100 0 0x1c>;
101 gic: interrupt-controller@10211000 {
102 compatible = "arm,cortex-a7-gic";
103 interrupt-controller;
104 #interrupt-cells = <3>;
105 interrupt-parent = <&gic>;
106 reg = <0 0x10211000 0 0x1000>,
107 <0 0x10212000 0 0x1000>,
108 <0 0x10214000 0 0x2000>,
109 <0 0x10216000 0 0x2000>;
112 uart0: serial@11002000 {
113 compatible = "mediatek,mt7623-uart",
114 "mediatek,mt6577-uart";
115 reg = <0 0x11002000 0 0x400>;
116 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
117 clocks = <&uart_clk>;
121 uart1: serial@11003000 {
122 compatible = "mediatek,mt7623-uart",
123 "mediatek,mt6577-uart";
124 reg = <0 0x11003000 0 0x400>;
125 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
126 clocks = <&uart_clk>;
130 uart2: serial@11004000 {
131 compatible = "mediatek,mt7623-uart",
132 "mediatek,mt6577-uart";
133 reg = <0 0x11004000 0 0x400>;
134 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
135 clocks = <&uart_clk>;
139 uart3: serial@11005000 {
140 compatible = "mediatek,mt7623-uart",
141 "mediatek,mt6577-uart";
142 reg = <0 0x11005000 0 0x400>;
143 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
144 clocks = <&uart_clk>;