ipq806x: move mdio node to ipq8064 dts
[openwrt/staging/rmilecki.git] / target / linux / ipq806x / files-5.4 / 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 serial0 = &gsbi4_serial;
27 mdio-gpio0 = &mdio0;
28
29 led-boot = &power_white;
30 led-failsafe = &power_amber;
31 led-running = &power_white;
32 led-upgrade = &power_amber;
33 };
34
35 chosen {
36 bootargs = "rootfstype=squashfs noinitrd";
37 stdout-path = "serial0:115200n8";
38 };
39
40 keys {
41 compatible = "gpio-keys";
42 pinctrl-0 = <&button_pins>;
43 pinctrl-names = "default";
44
45 wifi {
46 label = "wifi";
47 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RFKILL>;
49 };
50
51 reset {
52 label = "reset";
53 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 };
56
57 wps {
58 label = "wps";
59 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
61 };
62 };
63
64 leds {
65 compatible = "gpio-leds";
66 pinctrl-0 = <&led_pins>;
67 pinctrl-names = "default";
68
69 usb1 {
70 label = "r7500:white:usb1";
71 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
72 };
73
74 usb2 {
75 label = "r7500:white:usb2";
76 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
77 };
78
79 power_amber: power_amber {
80 label = "r7500:amber:power";
81 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
82 };
83
84 wan_white {
85 label = "r7500:white:wan";
86 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
87 };
88
89 wan_amber {
90 label = "r7500:amber:wan";
91 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
92 };
93
94 wps {
95 label = "r7500:white:wps";
96 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
97 };
98
99 esata {
100 label = "r7500:white:esata";
101 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
102 };
103
104 power_white: power_white {
105 label = "r7500:white:power";
106 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
107 default-state = "keep";
108 };
109
110 wifi {
111 label = "r7500:white:wifi";
112 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
113 };
114 };
115 };
116
117 &qcom_pinmux {
118 button_pins: button_pins {
119 mux {
120 pins = "gpio6", "gpio54", "gpio65";
121 function = "gpio";
122 drive-strength = <2>;
123 bias-pull-up;
124 };
125 };
126
127 i2c4_pins: i2c4_pinmux {
128 mux {
129 pins = "gpio12", "gpio13";
130 function = "gsbi4";
131 drive-strength = <12>;
132 bias-disable;
133 };
134 };
135
136 led_pins: led_pins {
137 mux {
138 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
139 "gpio24","gpio26", "gpio53", "gpio64";
140 function = "gpio";
141 drive-strength = <2>;
142 bias-pull-up;
143 };
144 };
145
146 mdio0_pins: mdio0_pins {
147 mux {
148 pins = "gpio0", "gpio1";
149 function = "mdio";
150 drive-strength = <8>;
151 bias-disable;
152 };
153 };
154
155 nand_pins: nand_pins {
156 disable {
157 pins = "gpio34", "gpio35", "gpio36",
158 "gpio37", "gpio38";
159 function = "nand";
160 drive-strength = <10>;
161 bias-disable;
162 };
163
164 pullups {
165 pins = "gpio39";
166 function = "nand";
167 drive-strength = <10>;
168 bias-pull-up;
169 };
170
171 hold {
172 pins = "gpio40", "gpio41", "gpio42",
173 "gpio43", "gpio44", "gpio45",
174 "gpio46", "gpio47";
175 function = "nand";
176 drive-strength = <10>;
177 bias-bus-hold;
178 };
179 };
180
181 rgmii2_pins: rgmii2_pins {
182 mux {
183 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
184 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
185 function = "rgmii2";
186 drive-strength = <8>;
187 bias-disable;
188 };
189 };
190 };
191
192 &gsbi4 {
193 qcom,mode = <GSBI_PROT_I2C_UART>;
194 status = "okay";
195 serial@16340000 {
196 status = "okay";
197 };
198 /*
199 * The i2c device on gsbi4 should not be enabled.
200 * On ipq806x designs gsbi4 i2c is meant for exclusive
201 * RPM usage. Turning this on in kernel manifests as
202 * i2c failure for the RPM.
203 */
204 };
205
206 &sata_phy {
207 status = "okay";
208 };
209
210 &sata {
211 status = "okay";
212 };
213
214 &usb3_0 {
215 clocks = <&gcc USB30_1_MASTER_CLK>;
216 status = "okay";
217 };
218
219 &usb3_1 {
220 clocks = <&gcc USB30_0_MASTER_CLK>;
221 status = "okay";
222 };
223
224 &pcie0 {
225 status = "okay";
226 };
227
228 &pcie1 {
229 status = "okay";
230 force_gen1 = <1>;
231 };
232
233 &nand_controller {
234 status = "okay";
235
236 pinctrl-0 = <&nand_pins>;
237 pinctrl-names = "default";
238
239 nand@0 {
240 reg = <0>;
241 compatible = "qcom,nandcs";
242
243 nand-ecc-strength = <4>;
244 nand-bus-width = <8>;
245 nand-ecc-step-size = <512>;
246
247 partitions {
248 compatible = "fixed-partitions";
249 #address-cells = <1>;
250 #size-cells = <1>;
251
252 qcadata@0 {
253 label = "qcadata";
254 reg = <0x0000000 0x0c80000>;
255 read-only;
256 };
257
258 APPSBL@c80000 {
259 label = "APPSBL";
260 reg = <0x0c80000 0x0500000>;
261 read-only;
262 };
263
264 APPSBLENV@1180000 {
265 label = "APPSBLENV";
266 reg = <0x1180000 0x0080000>;
267 read-only;
268 };
269
270 art: art@1200000 {
271 label = "art";
272 reg = <0x1200000 0x0140000>;
273 read-only;
274 };
275
276 kernel@1340000 {
277 label = "kernel";
278 reg = <0x1340000 0x0400000>;
279 };
280
281 ubi@1740000 {
282 label = "ubi";
283 reg = <0x1740000 0x1600000>;
284 };
285
286 netgear@2d40000 {
287 label = "netgear";
288 reg = <0x2d40000 0x0c00000>;
289 read-only;
290 };
291
292 reserve@3940000 {
293 label = "reserve";
294 reg = <0x3940000 0x46c0000>;
295 read-only;
296 };
297 };
298 };
299 };
300
301 &mdio0 {
302 status = "okay";
303
304 pinctrl-0 = <&mdio0_pins>;
305 pinctrl-names = "default";
306
307 phy0: ethernet-phy@0 {
308 reg = <0>;
309 qca,ar8327-initvals = <
310 0x00004 0x7600000 /* PAD0_MODE */
311 0x00008 0x1000000 /* PAD5_MODE */
312 0x0000c 0x80 /* PAD6_MODE */
313 0x000e4 0x6a545 /* MAC_POWER_SEL */
314 0x000e0 0xc74164de /* SGMII_CTRL */
315 0x0007c 0x4e /* PORT0_STATUS */
316 0x00094 0x4e /* PORT6_STATUS */
317 >;
318 };
319
320 phy4: ethernet-phy@4 {
321 reg = <4>;
322 };
323 };
324
325 &gmac1 {
326 status = "okay";
327 phy-mode = "rgmii";
328 qcom,id = <1>;
329
330 pinctrl-0 = <&rgmii2_pins>;
331 pinctrl-names = "default";
332
333 mtd-mac-address = <&art 6>;
334
335 fixed-link {
336 speed = <1000>;
337 full-duplex;
338 };
339 };
340
341 &gmac2 {
342 status = "okay";
343 phy-mode = "sgmii";
344 qcom,id = <2>;
345
346 mtd-mac-address = <&art 0>;
347
348 fixed-link {
349 speed = <1000>;
350 full-duplex;
351 };
352 };
353
354 &tcsr {
355 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
356 compatible = "qcom,tcsr";
357 };
358
359 &adm_dma {
360 status = "okay";
361 };