ipq806x: 5.15: enable again usb node for each device
[openwrt/staging/ansuel.git] / target / linux / ipq806x / files-5.15 / arch / arm / boot / dts / qcom-ipq8064-r7500.dts
1 #include "qcom-ipq8064-v1.0.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/soc/qcom,tcsr.h>
5
6 / {
7 model = "Netgear Nighthawk X4 R7500";
8 compatible = "netgear,r7500", "qcom,ipq8064";
9
10 memory@0 {
11 reg = <0x42000000 0xe000000>;
12 device_type = "memory";
13 };
14
15 reserved-memory {
16 #address-cells = <1>;
17 #size-cells = <1>;
18 ranges;
19 rsvd@41200000 {
20 reg = <0x41200000 0x300000>;
21 no-map;
22 };
23 };
24
25 aliases {
26 mdio-gpio0 = &mdio0;
27
28 led-boot = &power_white;
29 led-failsafe = &power_amber;
30 led-running = &power_white;
31 led-upgrade = &power_amber;
32 };
33
34 chosen {
35 bootargs = "rootfstype=squashfs noinitrd";
36 };
37
38 keys {
39 compatible = "gpio-keys";
40 pinctrl-0 = <&button_pins>;
41 pinctrl-names = "default";
42
43 wifi {
44 label = "wifi";
45 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RFKILL>;
47 debounce-interval = <60>;
48 wakeup-source;
49 };
50
51 reset {
52 label = "reset";
53 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 debounce-interval = <60>;
56 wakeup-source;
57 };
58
59 wps {
60 label = "wps";
61 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
63 debounce-interval = <60>;
64 wakeup-source;
65 };
66 };
67
68 leds {
69 compatible = "gpio-leds";
70 pinctrl-0 = <&led_pins>;
71 pinctrl-names = "default";
72
73 usb1 {
74 label = "white:usb1";
75 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
76 };
77
78 usb2 {
79 label = "white:usb2";
80 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
81 };
82
83 power_amber: power_amber {
84 label = "amber:power";
85 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
86 };
87
88 wan_white {
89 label = "white:wan";
90 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
91 };
92
93 wan_amber {
94 label = "amber:wan";
95 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
96 };
97
98 wps {
99 label = "white:wps";
100 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
101 };
102
103 esata {
104 label = "white:esata";
105 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
106 };
107
108 power_white: power_white {
109 label = "white:power";
110 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
111 default-state = "keep";
112 };
113
114 wifi {
115 label = "white:wifi";
116 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
117 };
118 };
119 };
120
121 &qcom_pinmux {
122 button_pins: button_pins {
123 mux {
124 pins = "gpio6", "gpio54", "gpio65";
125 function = "gpio";
126 drive-strength = <2>;
127 bias-pull-up;
128 };
129 };
130
131 led_pins: led_pins {
132 mux {
133 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
134 "gpio24","gpio26", "gpio53", "gpio64";
135 function = "gpio";
136 drive-strength = <2>;
137 bias-pull-up;
138 };
139 };
140 };
141
142 &gsbi5 {
143 status = "disabled";
144
145 spi@1a280000 {
146 status = "disabled";
147 };
148 };
149
150 &hs_phy_0 {
151 status = "okay";
152 };
153
154 &ss_phy_0 {
155 status = "okay";
156 };
157
158 &usb3_0 {
159 status = "okay";
160 };
161
162 &hs_phy_1 {
163 status = "okay";
164 };
165
166 &ss_phy_1 {
167 status = "okay";
168 };
169
170 &usb3_1 {
171 status = "okay";
172 };
173
174 &pcie0 {
175 status = "okay";
176 };
177
178 &pcie1 {
179 status = "okay";
180 max-link-speed = <1>;
181 };
182
183 &nand {
184 status = "okay";
185
186 nand@0 {
187 reg = <0>;
188 compatible = "qcom,nandcs";
189
190 nand-ecc-strength = <4>;
191 nand-bus-width = <8>;
192 nand-ecc-step-size = <512>;
193
194 nand-is-boot-medium;
195 qcom,boot-partitions = <0x0 0x1180000>;
196
197 partitions {
198 compatible = "fixed-partitions";
199 #address-cells = <1>;
200 #size-cells = <1>;
201
202 qcadata@0 {
203 label = "qcadata";
204 reg = <0x0000000 0x0c80000>;
205 read-only;
206 };
207
208 APPSBL@c80000 {
209 label = "APPSBL";
210 reg = <0x0c80000 0x0500000>;
211 read-only;
212 };
213
214 APPSBLENV@1180000 {
215 label = "APPSBLENV";
216 reg = <0x1180000 0x0080000>;
217 read-only;
218 };
219
220 art: art@1200000 {
221 label = "art";
222 reg = <0x1200000 0x0140000>;
223 read-only;
224 };
225
226 kernel@1340000 {
227 label = "kernel";
228 reg = <0x1340000 0x0400000>;
229 };
230
231 ubi@1740000 {
232 label = "ubi";
233 reg = <0x1740000 0x1600000>;
234 };
235
236 netgear@2d40000 {
237 label = "netgear";
238 reg = <0x2d40000 0x0c00000>;
239 read-only;
240 };
241
242 reserve@3940000 {
243 label = "reserve";
244 reg = <0x3940000 0x46c0000>;
245 read-only;
246 };
247 };
248 };
249 };
250
251 &mdio0 {
252 status = "okay";
253
254 pinctrl-0 = <&mdio0_pins>;
255 pinctrl-names = "default";
256
257 phy0: ethernet-phy@0 {
258 reg = <0>;
259 qca,ar8327-initvals = <
260 0x00004 0x7600000 /* PAD0_MODE */
261 0x00008 0x1000000 /* PAD5_MODE */
262 0x0000c 0x80 /* PAD6_MODE */
263 0x000e4 0x6a545 /* MAC_POWER_SEL */
264 0x000e0 0xc74164de /* SGMII_CTRL */
265 0x0007c 0x4e /* PORT0_STATUS */
266 0x00094 0x4e /* PORT6_STATUS */
267 >;
268 };
269
270 phy4: ethernet-phy@4 {
271 reg = <4>;
272 };
273 };
274
275 &gmac1 {
276 status = "okay";
277 phy-mode = "rgmii";
278 qcom,id = <1>;
279
280 pinctrl-0 = <&rgmii2_pins>;
281 pinctrl-names = "default";
282
283 nvmem-cells = <&macaddr_art_6>;
284 nvmem-cell-names = "mac-address";
285
286 fixed-link {
287 speed = <1000>;
288 full-duplex;
289 };
290 };
291
292 &gmac2 {
293 status = "okay";
294 phy-mode = "sgmii";
295 qcom,id = <2>;
296
297 nvmem-cells = <&macaddr_art_0>;
298 nvmem-cell-names = "mac-address";
299
300 fixed-link {
301 speed = <1000>;
302 full-duplex;
303 };
304 };
305
306 &tcsr {
307 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
308 compatible = "qcom,tcsr";
309 };
310
311 &adm_dma {
312 status = "okay";
313 };
314
315 &art {
316 compatible = "nvmem-cells";
317 #address-cells = <1>;
318 #size-cells = <1>;
319
320 macaddr_art_0: macaddr@0 {
321 reg = <0x0 0x6>;
322 };
323
324 macaddr_art_6: macaddr@6 {
325 reg = <0x6 0x6>;
326 };
327 };