ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar934x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ath79.dtsi"
4
5 / {
6 compatible = "qca,ar9340";
7
8 #address-cells = <1>;
9 #size-cells = <1>;
10
11 aliases {
12 serial0 = &uart;
13 };
14
15 chosen {
16 bootargs = "console=ttyS0,115200";
17 };
18
19 cpus {
20 #address-cells = <1>;
21 #size-cells = <0>;
22
23 cpu@0 {
24 device_type = "cpu";
25 compatible = "mips,mips74Kc";
26 clocks = <&pll ATH79_CLK_CPU>;
27 reg = <0>;
28 };
29 };
30
31 clocks {
32 #address-cells = <1>;
33 #size-cells = <1>;
34 ranges;
35
36 ref: ref {
37 #clock-cells = <0>;
38 compatible = "fixed-clock";
39 clock-output-names = "ref";
40 };
41 };
42
43 ahb: ahb {
44 compatible = "simple-bus";
45 ranges;
46
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 apb: apb {
51 compatible = "simple-bus";
52 ranges;
53
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 ddr_ctrl: memory-controller@18000000 {
58 compatible = "qca,ar9340-ddr-controller",
59 "qca,ar7240-ddr-controller";
60 reg = <0x18000000 0x12c>;
61
62 #qca,ddr-wb-channel-cells = <1>;
63 };
64
65 uart: uart@18020000 {
66 compatible = "ns16550a";
67 reg = <0x18020000 0x2c>;
68
69 interrupts = <3>;
70
71 clocks = <&pll ATH79_CLK_REF>;
72 clock-names = "uart";
73
74 reg-io-width = <4>;
75 reg-shift = <2>;
76 no-loopback-test;
77 };
78
79 gpio: gpio@18040000 {
80 compatible = "qca,ar9340-gpio";
81 reg = <0x18040000 0x28>;
82
83 interrupts = <2>;
84 ngpios = <23>;
85
86 gpio-controller;
87 #gpio-cells = <2>;
88
89 interrupt-controller;
90 #interrupt-cells = <2>;
91 };
92
93 pinmux: pinmux@1804002c {
94 compatible = "pinctrl-single";
95
96 reg = <0x1804002c 0x44>;
97
98 #size-cells = <0>;
99
100 pinctrl-single,bit-per-mux;
101 pinctrl-single,register-width = <32>;
102 pinctrl-single,function-mask = <0x1>;
103 #pinctrl-cells = <2>;
104
105 jtag_disable_pins: pinmux_jtag_disable_pins {
106 pinctrl-single,bits = <0x40 0x2 0x2>;
107 };
108 };
109
110 pll: pll-controller@18050000 {
111 compatible = "qca,ar9340-pll", "syscon";
112 reg = <0x18050000 0x4c>;
113
114 #clock-cells = <1>;
115 clocks = <&ref>;
116 clock-names = "ref";
117 clock-output-names = "cpu", "ddr", "ahb";
118 };
119
120 wdt: wdt@18060008 {
121 compatible = "qca,ar9340-wdt", "qca,ar7130-wdt";
122 reg = <0x18060008 0x8>;
123
124 interrupts = <4>;
125
126 clocks = <&pll ATH79_CLK_AHB>;
127 clock-names = "wdt";
128 };
129
130 rst: reset-controller@1806001c {
131 compatible = "qca,ar9340-reset", "qca,ar7100-reset";
132 reg = <0x1806001c 0x4>;
133
134 #reset-cells = <1>;
135 };
136
137 hs_uart: uart@18500000 {
138 compatible = "qca,ar9330-uart";
139 reg = <0x18500000 0x14>;
140
141 interrupts = <6>;
142 interrupt-parent = <&miscintc>;
143
144 clocks = <&pll ATH79_CLK_UART1>;
145 clock-names = "uart";
146
147 status = "disabled";
148 };
149 };
150
151 gmac: gmac@18070000 {
152 compatible = "qca,ar9340-gmac";
153 reg = <0x18070000 0x14>;
154 };
155
156 wmac: wmac@18100000 {
157 compatible = "qca,ar9340-wmac";
158 reg = <0x18100000 0x20000>;
159
160 status = "disabled";
161 };
162
163 usb: usb@1b000000 {
164 compatible = "generic-ehci";
165 reg = <0x1b000000 0x1d8>;
166
167 interrupts = <3>;
168 resets = <&rst 5>;
169 reset-names = "usb-host";
170
171 has-transaction-translator;
172 caps-offset = <0x100>;
173
174 phy-names = "usb-phy";
175 phys = <&usb_phy>;
176
177 status = "disabled";
178
179 #address-cells = <1>;
180 #size-cells = <0>;
181
182 hub_port: port@1 {
183 reg = <1>;
184 #trigger-source-cells = <0>;
185 };
186 };
187
188 nand: nand@1b000200 {
189 compatible = "qca,ar934x-nand";
190 reg = <0x1b000200 0xb8>;
191
192 interrupts = <21>;
193 interrupt-parent = <&miscintc>;
194
195 resets = <&rst 14>;
196 reset-names = "nand";
197
198 nand-ecc-mode = "hw";
199
200 status = "disabled";
201 };
202
203 spi: spi@1f000000 {
204 compatible = "qca,ar934x-spi";
205 reg = <0x1f000000 0x1c>;
206
207 clocks = <&pll ATH79_CLK_AHB>;
208
209 #address-cells = <1>;
210 #size-cells = <0>;
211
212 status = "disabled";
213 };
214 };
215
216 usb_phy: usb-phy {
217 compatible = "qca,ar9340-usb-phy", "qca,ar7200-usb-phy";
218
219 reset-names = "usb-phy-analog", "usb-phy", "usb-suspend-override";
220 resets = <&rst 11>, <&rst 4>, <&rst 3>;
221
222 #phy-cells = <0>;
223
224 status = "disabled";
225 };
226 };
227
228 &mdio0 {
229 compatible = "qca,ar9340-mdio";
230 };
231
232 &eth0 {
233 compatible = "qca,ar9340-eth", "syscon";
234
235 pll-data = <0x16000000 0x00000101 0x00001616>;
236 pll-reg = <0x4 0x2c 17>;
237 pll-handle = <&pll>;
238 resets = <&rst 9>, <&rst 22>;
239 reset-names = "mac", "mdio";
240 clocks = <&pll ATH79_CLK_AHB>, <&pll ATH79_CLK_AHB>;
241 clock-names = "eth", "mdio";
242 };
243
244 &mdio1 {
245 status = "okay";
246
247 compatible = "qca,ar9340-mdio";
248 resets = <&rst 23>;
249 reset-names = "mdio";
250 builtin-switch;
251
252 builtin_switch: switch0@1f {
253 compatible = "qca,ar8229";
254
255 reg = <0x1f>;
256 resets = <&rst 8>;
257 reset-names = "switch";
258 phy-mode = "gmii";
259 qca,mib-poll-interval = <500>;
260 qca,phy4-mii-enable;
261
262 mdio-bus {
263 #address-cells = <1>;
264 #size-cells = <0>;
265
266 swphy0: ethernet-phy@0 {
267 reg = <0>;
268 phy-mode = "mii";
269 };
270
271 swphy4: ethernet-phy@4 {
272 reg = <4>;
273 phy-mode = "mii";
274 };
275 };
276 };
277 };
278
279 &eth1 {
280 compatible = "qca,ar9340-eth", "syscon";
281
282 resets = <&rst 13>;
283 reset-names = "mac";
284 clocks = <&pll ATH79_CLK_AHB>, <&pll ATH79_CLK_AHB>;
285 clock-names = "eth", "mdio";
286 phy-mode = "gmii";
287
288 fixed-link {
289 speed = <1000>;
290 full-duplex;
291 };
292 };