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