ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca955x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ath79.dtsi"
4
5 / {
6 compatible = "qca,qca9550";
7
8 #address-cells = <1>;
9 #size-cells = <1>;
10
11 chosen {
12 bootargs = "console=ttyS0,115200n8";
13 };
14
15 cpus {
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 cpu@0 {
20 device_type = "cpu";
21 compatible = "mips,mips74Kc";
22 clocks = <&pll ATH79_CLK_CPU>;
23 reg = <0>;
24 };
25 };
26
27 extosc: ref {
28 compatible = "fixed-clock";
29 #clock-cells = <0>;
30 clock-output-names = "ref";
31 clock-frequency = <40000000>;
32 };
33
34 ahb {
35 apb {
36 ddr_ctrl: memory-controller@18000000 {
37 compatible = "qca,qca9550-ddr-controller",
38 "qca,ar7240-ddr-controller";
39 reg = <0x18000000 0x100>;
40
41 #qca,ddr-wb-channel-cells = <1>;
42 };
43
44 uart: uart@18020000 {
45 compatible = "ns16550a";
46 reg = <0x18020000 0x20>;
47
48 interrupts = <3>;
49
50 clocks = <&pll ATH79_CLK_REF>;
51 clock-names = "uart";
52
53 reg-io-width = <4>;
54 reg-shift = <2>;
55 no-loopback-test;
56 };
57
58 usb_phy0: usb-phy0@18030000 {
59 compatible ="qca,qca9550-usb-phy", "qca,ar7200-usb-phy";
60 reg = <0x18030000 4>, <0x18030004 4>;
61
62 reset-names = "usb-phy", "usb-suspend-override";
63 resets = <&rst 4>, <&rst 3>;
64
65 #phy-cells = <0>;
66
67 status = "disabled";
68 };
69
70 usb_phy1: usb-phy1@18030010 {
71 compatible = "qca,qca9550-usb-phy", "qca,ar7200-usb-phy";
72 reg = <0x18030010 4>, <0x18030014 4>;
73
74 reset-names = "usb-phy", "usb-suspend-override";
75 resets = <&rst2 4>, <&rst2 3>;
76
77 #phy-cells = <0>;
78
79 status = "disabled";
80 };
81
82 gpio: gpio@18040000 {
83 compatible = "qca,qca9550-gpio",
84 "qca,ar9340-gpio";
85 reg = <0x18040000 0x28>;
86
87 interrupts = <2>;
88 ngpios = <24>;
89
90 gpio-controller;
91 #gpio-cells = <2>;
92
93 interrupt-controller;
94 #interrupt-cells = <2>;
95 };
96
97 pinmux: pinmux@1804002c {
98 compatible = "pinctrl-single";
99
100 reg = <0x1804002c 0x44>;
101
102 #size-cells = <0>;
103
104 pinctrl-single,bit-per-mux;
105 pinctrl-single,register-width = <32>;
106 pinctrl-single,function-mask = <0x1>;
107 #pinctrl-cells = <2>;
108
109 jtag_disable_pins: pinmux_jtag_disable_pins {
110 pinctrl-single,bits = <0x40 0x2 0x2>;
111 };
112 };
113
114 pll: pll-controller@18050000 {
115 compatible = "qca,qca9550-pll", "syscon";
116 reg = <0x18050000 0x50>;
117
118 #clock-cells = <1>;
119 clock-output-names = "cpu", "ddr", "ahb";
120
121 clocks = <&extosc>;
122 clock-names = "ref";
123 };
124
125 wdt: wdt@18060008 {
126 compatible = "qca,ar7130-wdt";
127 reg = <0x18060008 0x8>;
128
129 interrupts = <4>;
130
131 clocks = <&pll ATH79_CLK_AHB>;
132 clock-names = "wdt";
133 };
134
135 rst: reset-controller@1806001c {
136 compatible = "qca,qca9550-reset",
137 "qca,ar7100-reset";
138 reg = <0x1806001c 0x4>;
139
140 #reset-cells = <1>;
141 interrupt-parent = <&cpuintc>;
142
143 intc2: interrupt-controller2 {
144 compatible = "qca,ar9340-intc";
145
146 interrupt-parent = <&cpuintc>;
147 interrupts = <2>;
148
149 interrupt-controller;
150 #interrupt-cells = <1>;
151
152 qca,int-status-addr = <0xac>;
153 qca,pending-bits = <0xf>, /* wmac */
154 <0x1f0>; /* pcie rc 0 */
155 };
156
157 intc3: interrupt-controller3 {
158 compatible = "qca,ar9340-intc";
159
160 interrupt-parent = <&cpuintc>;
161 interrupts = <3>;
162
163 interrupt-controller;
164 #interrupt-cells = <1>;
165
166 qca,int-status-addr = <0xac>;
167 qca,pending-bits = <0x1f000>, /* pcie rc 1 */
168 <0x1000000>, /* usb1 */
169 <0x10000000>; /* usb2 */
170 };
171 };
172
173 rst2: reset-controller@180600c0 {
174 compatible = "qca,qca9550-reset",
175 "qca,ar7100-reset",
176 "simple-bus";
177 reg = <0x180600c0 0x4>;
178
179 #reset-cells = <1>;
180 };
181 };
182
183 gmac: gmac@18070000 {
184 compatible = "qca,qca9550-gmac";
185 reg = <0x18070000 0x58>;
186 };
187
188 pcie0: pcie@180c0000 {
189 compatible = "qcom,qca9550-pci", "qcom,ar7240-pci";
190 #address-cells = <3>;
191 #size-cells = <2>;
192 bus-range = <0x0 0x0>;
193 reg = <0x180c0000 0x1000>, /* CRP */
194 <0x180f0000 0x100>, /* CTRL */
195 <0x14000000 0x1000>; /* CFG */
196 reg-names = "crp_base", "ctrl_base", "cfg_base";
197 ranges = <0x2000000 0 0x10000000 0x10000000 0 0x02000000 /* pci memory */
198 0x1000000 0 0x00000000 0x0000000 0 0x000001>; /* io space */
199 interrupt-parent = <&intc2>;
200 interrupts = <1>;
201
202 device_type = "pci";
203
204 resets = <&rst 6>, <&rst 7>;
205 reset-names = "hc", "phy";
206
207 interrupt-controller;
208 #interrupt-cells = <1>;
209
210 interrupt-map-mask = <0 0 0 1>;
211 interrupt-map = <0 0 0 0 &pcie0 0>;
212 status = "disabled";
213 };
214
215 wmac: wmac@18100000 {
216 compatible = "qca,qca9550-wmac";
217 reg = <0x18100000 0x10000>;
218
219 interrupt-parent = <&intc2>;
220 interrupts = <0>;
221
222 status = "disabled";
223 };
224
225 pcie1: pcie@18250000 {
226 compatible = "qcom,qca9550-pci", "qcom,ar7240-pci";
227 #address-cells = <3>;
228 #size-cells = <2>;
229 bus-range = <0x0 0x0>;
230 reg = <0x18250000 0x1000>, /* CRP */
231 <0x18280000 0x100>, /* CTRL */
232 <0x16000000 0x1000>; /* CFG */
233 reg-names = "crp_base", "ctrl_base", "cfg_base";
234 ranges = <0x2000000 0 0x12000000 0x12000000 0 0x02000000 /* pci memory */
235 0x1000000 0 0x00000000 0x0000001 0 0x000001>; /* io space */
236 interrupt-parent = <&intc3>;
237 interrupts = <0>;
238
239 device_type = "pci";
240
241 resets = <&rst2 6>, <&rst2 7>;
242 reset-names = "hc", "phy";
243
244 interrupt-controller;
245 #interrupt-cells = <1>;
246
247 interrupt-map-mask = <0 0 0 1>;
248 interrupt-map = <0 0 0 0 &pcie1 0>;
249 status = "disabled";
250 };
251
252 usb0: usb@1b000000 {
253 compatible = "generic-ehci";
254 reg = <0x1b000000 0x1fc>;
255
256 interrupt-parent = <&intc3>;
257 interrupts = <1>;
258 resets = <&rst 5>;
259 reset-names = "usb-host";
260
261 has-transaction-translator;
262 caps-offset = <0x100>;
263
264 phy-names = "usb-phy0";
265 phys = <&usb_phy0>;
266
267 status = "disabled";
268
269 #address-cells = <1>;
270 #size-cells = <0>;
271
272 hub_port0: port@1 {
273 reg = <1>;
274 #trigger-source-cells = <0>;
275 };
276 };
277
278 usb1: usb@1b400000 {
279 compatible = "generic-ehci";
280 reg = <0x1b400000 0x1fc>;
281
282 interrupt-parent = <&intc3>;
283 interrupts = <2>;
284 resets = <&rst2 5>;
285 reset-names = "usb-host";
286
287 has-transaction-translator;
288 caps-offset = <0x100>;
289
290 phy-names = "usb-phy1";
291 phys = <&usb_phy1>;
292
293 status = "disabled";
294
295 #address-cells = <1>;
296 #size-cells = <0>;
297
298 hub_port1: port@1 {
299 reg = <1>;
300 #trigger-source-cells = <0>;
301 };
302 };
303
304 nand: nand@1b800200 {
305 compatible = "qca,ar934x-nand";
306 reg = <0x1b800200 0xb8>;
307
308 interrupts = <21>;
309 interrupt-parent = <&miscintc>;
310
311 resets = <&rst 14>;
312 reset-names = "nand";
313
314 nand-ecc-mode = "hw";
315
316 status = "disabled";
317 };
318
319 spi: spi@1f000000 {
320 compatible = "qca,ar934x-spi";
321 reg = <0x1f000000 0x1c>;
322
323 clocks = <&pll ATH79_CLK_AHB>;
324
325 status = "disabled";
326
327 #address-cells = <1>;
328 #size-cells = <0>;
329 };
330 };
331 };
332
333 &mdio0 {
334 compatible = "qca,ar9340-mdio";
335 };
336
337 &eth0 {
338 compatible = "qca,qca9550-eth", "syscon";
339
340 pll-reg = <0 0x28 0>;
341 pll-handle = <&pll>;
342
343 pll-data = <0x16000000 0x00000101 0x00001616>;
344 phy-mode = "rgmii";
345
346 resets = <&rst 9>, <&rst 22>;
347 reset-names = "mac", "mdio";
348 };
349
350 &mdio1 {
351 compatible = "qca,ar9340-mdio";
352 };
353
354 &eth1 {
355 compatible = "qca,qca9550-eth", "syscon";
356
357 pll-reg = <0 0x48 0>;
358 pll-handle = <&pll>;
359
360 pll-data = <0x16000000 0x00000101 0x00001616>;
361 phy-mode = "sgmii";
362
363 resets = <&rst 13>, <&rst 23>;
364 reset-names = "mac", "mdio";
365 };