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 diff --git a/arch/mips/ralink/Kconfig b/arch/mips/ralink/Kconfig
17 index 6a04360..9174dbc 100644
18 --- a/arch/mips/ralink/Kconfig
19 +++ b/arch/mips/ralink/Kconfig
20 @@ -75,6 +75,10 @@ choice
21 bool "MT7620A eval kit"
24 + config DTB_MT7628AN_EVAL
25 + bool "MT7620A eval kit"
26 + depends on SOC_MT7620
28 config DTB_MT7621_EVAL
29 bool "MT7621 eval kit"
31 diff --git a/arch/mips/ralink/dts/Makefile b/arch/mips/ralink/dts/Makefile
32 index 9742c73..9f4e1c7 100644
33 --- a/arch/mips/ralink/dts/Makefile
34 +++ b/arch/mips/ralink/dts/Makefile
35 @@ -3,3 +3,4 @@ obj-$(CONFIG_DTB_RT305X_EVAL) := rt3052_eval.dtb.o
36 obj-$(CONFIG_DTB_RT3883_EVAL) := rt3883_eval.dtb.o
37 obj-$(CONFIG_DTB_MT7620A_EVAL) := mt7620a_eval.dtb.o
38 obj-$(CONFIG_DTB_MT7621_EVAL) := mt7621_eval.dtb.o
39 +obj-$(CONFIG_DTB_MT7628AN_EVAL) := mt7628an_eval.dtb.o
40 diff --git a/arch/mips/ralink/dts/mt7628an.dtsi b/arch/mips/ralink/dts/mt7628an.dtsi
42 index 0000000..fd17d0a
44 +++ b/arch/mips/ralink/dts/mt7628an.dtsi
47 + #address-cells = <1>;
49 + compatible = "ralink,mtk7628an-soc";
53 + compatible = "mips,mips24KEc";
57 + cpuintc: cpuintc@0 {
58 + #address-cells = <0>;
59 + #interrupt-cells = <1>;
60 + interrupt-controller;
61 + compatible = "mti,cpu-interrupt-controller";
65 + compatible = "palmbus";
66 + reg = <0x10000000 0x200000>;
67 + ranges = <0x0 0x10000000 0x1FFFFF>;
69 + #address-cells = <1>;
73 + compatible = "ralink,mt7620a-sysc";
78 + compatible = "ralink,mt7628an-wdt", "mtk,mt7621-wdt";
81 + resets = <&rstctrl 8>;
82 + reset-names = "wdt";
84 + interrupt-parent = <&intc>;
89 + compatible = "ralink,mt7628an-intc", "ralink,rt2880-intc";
90 + reg = <0x200 0x100>;
92 + resets = <&rstctrl 9>;
93 + reset-names = "intc";
95 + interrupt-controller;
96 + #interrupt-cells = <1>;
98 + interrupt-parent = <&cpuintc>;
101 + ralink,intc-registers = <0x9c 0xa0
107 + compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
108 + reg = <0x300 0x100>;
110 + resets = <&rstctrl 20>;
111 + reset-names = "mc";
113 + interrupt-parent = <&intc>;
118 + #address-cells = <1>;
121 + compatible = "mtk,mt7628-gpio", "mtk,mt7621-gpio";
122 + reg = <0x600 0x100>;
126 + compatible = "mtk,mt7621-gpio-bank";
133 + compatible = "mtk,mt7621-gpio-bank";
140 + compatible = "mtk,mt7621-gpio-bank";
147 + compatible = "ralink,mt7621-spi";
148 + reg = <0xb00 0x100>;
150 + resets = <&rstctrl 18>;
151 + reset-names = "spi";
153 + #address-cells = <1>;
156 + pinctrl-names = "default";
157 + pinctrl-0 = <&spi_pins>;
159 + status = "disabled";
163 + compatible = "ns16550a";
164 + reg = <0xc00 0x100>;
167 + reg-io-width = <4>;
170 + resets = <&rstctrl 12>;
171 + reset-names = "uartl";
173 + interrupt-parent = <&intc>;
176 + pinctrl-names = "default";
177 + pinctrl-0 = <&uart0_pins>;
182 + compatible = "ralink,rt2880-pinmux";
183 + pinctrl-names = "default";
184 + pinctrl-0 = <&state_default>;
185 + state_default: pinctrl0 {
189 + ralink,group = "spi";
190 + ralink,function = "spi";
193 + uart0_pins: uartlite {
195 + ralink,group = "uart0";
196 + ralink,function = "uart";
202 + compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset";
203 + #reset-cells = <1>;
207 + compatible = "ralink,mt7628an-usbphy", "ralink,mt7620a-usbphy";
209 + resets = <&rstctrl 22>;
210 + reset-names = "host";
214 + compatible = "ralink,rt3xxx-ehci";
215 + reg = <0x101c0000 0x1000>;
217 + interrupt-parent = <&intc>;
222 + compatible = "ralink,rt3xxx-ohci";
223 + reg = <0x101c1000 0x1000>;
225 + interrupt-parent = <&intc>;
230 diff --git a/arch/mips/ralink/dts/mt7628an_eval.dts b/arch/mips/ralink/dts/mt7628an_eval.dts
232 index 0000000..132c29e
234 +++ b/arch/mips/ralink/dts/mt7628an_eval.dts
238 +/include/ "mt7628an.dtsi"
241 + compatible = "ralink,mt7628an-eval-board", "ralink,mt7628an-soc";
242 + model = "Ralink MT7628AN evaluation board";
245 + reg = <0x0 0x2000000>;
249 + bootargs = "console=ttyS0,57600 init=/init";
257 + #address-cells = <1>;
259 + compatible = "en25q64";
261 + linux,modalias = "m25p80", "en25q64";
262 + spi-max-frequency = <10000000>;
266 + reg = <0x0 0x30000>;
271 + label = "u-boot-env";
272 + reg = <0x30000 0x10000>;
276 + factory: partition@40000 {
278 + reg = <0x40000 0x10000>;
283 + label = "firmware";
284 + reg = <0x50000 0x7b0000>;