1 From fbc9fb0c2d30f2141e1b0b824f473276c3aef528 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Wed, 6 Aug 2014 17:53:24 +0200
4 Subject: [PATCH 24/57] MIPS: ralink: add mt7628an devicetree files
6 Signed-off-by: John Crispin <blogic@openwrt.org>
8 arch/mips/ralink/Kconfig | 4 +
9 arch/mips/ralink/dts/Makefile | 1 +
10 arch/mips/ralink/dts/mt7628an.dtsi | 184 ++++++++++++++++++++++++++++++++
11 arch/mips/ralink/dts/mt7628an_eval.dts | 54 ++++++++++
12 4 files changed, 243 insertions(+)
13 create mode 100644 arch/mips/ralink/dts/mt7628an.dtsi
14 create mode 100644 arch/mips/ralink/dts/mt7628an_eval.dts
16 --- a/arch/mips/ralink/Kconfig
17 +++ b/arch/mips/ralink/Kconfig
18 @@ -75,6 +75,10 @@ choice
19 bool "MT7620A eval kit"
22 + config DTB_MT7628AN_EVAL
23 + bool "MT7620A eval kit"
24 + depends on SOC_MT7620
26 config DTB_MT7621_EVAL
27 bool "MT7621 eval kit"
29 --- a/arch/mips/ralink/dts/Makefile
30 +++ b/arch/mips/ralink/dts/Makefile
31 @@ -3,3 +3,4 @@ obj-$(CONFIG_DTB_RT305X_EVAL) := rt3052_
32 obj-$(CONFIG_DTB_RT3883_EVAL) := rt3883_eval.dtb.o
33 obj-$(CONFIG_DTB_MT7620A_EVAL) := mt7620a_eval.dtb.o
34 obj-$(CONFIG_DTB_MT7621_EVAL) := mt7621_eval.dtb.o
35 +obj-$(CONFIG_DTB_MT7628AN_EVAL) := mt7628an_eval.dtb.o
37 +++ b/arch/mips/ralink/dts/mt7628an.dtsi
40 + #address-cells = <1>;
42 + compatible = "ralink,mtk7628an-soc";
46 + compatible = "mips,mips24KEc";
50 + cpuintc: cpuintc@0 {
51 + #address-cells = <0>;
52 + #interrupt-cells = <1>;
53 + interrupt-controller;
54 + compatible = "mti,cpu-interrupt-controller";
58 + compatible = "palmbus";
59 + reg = <0x10000000 0x200000>;
60 + ranges = <0x0 0x10000000 0x1FFFFF>;
62 + #address-cells = <1>;
66 + compatible = "ralink,mt7620a-sysc";
71 + compatible = "ralink,mt7628an-wdt", "mtk,mt7621-wdt";
74 + resets = <&rstctrl 8>;
75 + reset-names = "wdt";
77 + interrupt-parent = <&intc>;
82 + compatible = "ralink,mt7628an-intc", "ralink,rt2880-intc";
83 + reg = <0x200 0x100>;
85 + resets = <&rstctrl 9>;
86 + reset-names = "intc";
88 + interrupt-controller;
89 + #interrupt-cells = <1>;
91 + interrupt-parent = <&cpuintc>;
94 + ralink,intc-registers = <0x9c 0xa0
100 + compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
101 + reg = <0x300 0x100>;
103 + resets = <&rstctrl 20>;
104 + reset-names = "mc";
106 + interrupt-parent = <&intc>;
111 + #address-cells = <1>;
114 + compatible = "mtk,mt7628-gpio", "mtk,mt7621-gpio";
115 + reg = <0x600 0x100>;
119 + compatible = "mtk,mt7621-gpio-bank";
126 + compatible = "mtk,mt7621-gpio-bank";
133 + compatible = "mtk,mt7621-gpio-bank";
140 + compatible = "ralink,mt7621-spi";
141 + reg = <0xb00 0x100>;
143 + resets = <&rstctrl 18>;
144 + reset-names = "spi";
146 + #address-cells = <1>;
149 + pinctrl-names = "default";
150 + pinctrl-0 = <&spi_pins>;
152 + status = "disabled";
156 + compatible = "ns16550a";
157 + reg = <0xc00 0x100>;
160 + reg-io-width = <4>;
163 + resets = <&rstctrl 12>;
164 + reset-names = "uartl";
166 + interrupt-parent = <&intc>;
169 + pinctrl-names = "default";
170 + pinctrl-0 = <&uart0_pins>;
175 + compatible = "ralink,rt2880-pinmux";
176 + pinctrl-names = "default";
177 + pinctrl-0 = <&state_default>;
178 + state_default: pinctrl0 {
182 + ralink,group = "spi";
183 + ralink,function = "spi";
186 + uart0_pins: uartlite {
188 + ralink,group = "uart0";
189 + ralink,function = "uart";
195 + compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset";
196 + #reset-cells = <1>;
200 + compatible = "ralink,mt7628an-usbphy", "ralink,mt7620a-usbphy";
202 + resets = <&rstctrl 22>;
203 + reset-names = "host";
207 + compatible = "ralink,rt3xxx-ehci";
208 + reg = <0x101c0000 0x1000>;
210 + interrupt-parent = <&intc>;
215 + compatible = "ralink,rt3xxx-ohci";
216 + reg = <0x101c1000 0x1000>;
218 + interrupt-parent = <&intc>;
224 +++ b/arch/mips/ralink/dts/mt7628an_eval.dts
228 +/include/ "mt7628an.dtsi"
231 + compatible = "ralink,mt7628an-eval-board", "ralink,mt7628an-soc";
232 + model = "Ralink MT7628AN evaluation board";
235 + reg = <0x0 0x2000000>;
239 + bootargs = "console=ttyS0,57600 init=/init";
247 + #address-cells = <1>;
249 + compatible = "en25q64";
251 + linux,modalias = "m25p80", "en25q64";
252 + spi-max-frequency = <10000000>;
256 + reg = <0x0 0x30000>;
261 + label = "u-boot-env";
262 + reg = <0x30000 0x10000>;
266 + factory: partition@40000 {
268 + reg = <0x40000 0x10000>;
273 + label = "firmware";
274 + reg = <0x50000 0x7b0000>;