ipq806x: split files dir to 5.10 and 5.15
[openwrt/staging/wigyori.git] / target / linux / ipq806x / files-5.10 / 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 &usb3_0 {
151 status = "okay";
152 };
153
154 &usb3_1 {
155 status = "okay";
156 };
157
158 &pcie0 {
159 status = "okay";
160 };
161
162 &pcie1 {
163 status = "okay";
164 max-link-speed = <1>;
165 };
166
167 &nand {
168 status = "okay";
169
170 pinctrl-0 = <&nand_pins>;
171 pinctrl-names = "default";
172
173 nand@0 {
174 reg = <0>;
175 compatible = "qcom,nandcs";
176
177 nand-ecc-strength = <4>;
178 nand-bus-width = <8>;
179 nand-ecc-step-size = <512>;
180
181 nand-is-boot-medium;
182 qcom,boot_pages_size = <0x1180000>;
183
184 partitions {
185 compatible = "fixed-partitions";
186 #address-cells = <1>;
187 #size-cells = <1>;
188
189 qcadata@0 {
190 label = "qcadata";
191 reg = <0x0000000 0x0c80000>;
192 read-only;
193 };
194
195 APPSBL@c80000 {
196 label = "APPSBL";
197 reg = <0x0c80000 0x0500000>;
198 read-only;
199 };
200
201 APPSBLENV@1180000 {
202 label = "APPSBLENV";
203 reg = <0x1180000 0x0080000>;
204 read-only;
205 };
206
207 art: art@1200000 {
208 label = "art";
209 reg = <0x1200000 0x0140000>;
210 read-only;
211 };
212
213 kernel@1340000 {
214 label = "kernel";
215 reg = <0x1340000 0x0400000>;
216 };
217
218 ubi@1740000 {
219 label = "ubi";
220 reg = <0x1740000 0x1600000>;
221 };
222
223 netgear@2d40000 {
224 label = "netgear";
225 reg = <0x2d40000 0x0c00000>;
226 read-only;
227 };
228
229 reserve@3940000 {
230 label = "reserve";
231 reg = <0x3940000 0x46c0000>;
232 read-only;
233 };
234 };
235 };
236 };
237
238 &mdio0 {
239 status = "okay";
240
241 pinctrl-0 = <&mdio0_pins>;
242 pinctrl-names = "default";
243
244 phy0: ethernet-phy@0 {
245 reg = <0>;
246 qca,ar8327-initvals = <
247 0x00004 0x7600000 /* PAD0_MODE */
248 0x00008 0x1000000 /* PAD5_MODE */
249 0x0000c 0x80 /* PAD6_MODE */
250 0x000e4 0x6a545 /* MAC_POWER_SEL */
251 0x000e0 0xc74164de /* SGMII_CTRL */
252 0x0007c 0x4e /* PORT0_STATUS */
253 0x00094 0x4e /* PORT6_STATUS */
254 >;
255 };
256
257 phy4: ethernet-phy@4 {
258 reg = <4>;
259 };
260 };
261
262 &gmac1 {
263 status = "okay";
264 phy-mode = "rgmii";
265 qcom,id = <1>;
266
267 pinctrl-0 = <&rgmii2_pins>;
268 pinctrl-names = "default";
269
270 nvmem-cells = <&macaddr_art_6>;
271 nvmem-cell-names = "mac-address";
272
273 fixed-link {
274 speed = <1000>;
275 full-duplex;
276 };
277 };
278
279 &gmac2 {
280 status = "okay";
281 phy-mode = "sgmii";
282 qcom,id = <2>;
283
284 nvmem-cells = <&macaddr_art_0>;
285 nvmem-cell-names = "mac-address";
286
287 fixed-link {
288 speed = <1000>;
289 full-duplex;
290 };
291 };
292
293 &tcsr {
294 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
295 compatible = "qcom,tcsr";
296 };
297
298 &adm_dma {
299 status = "okay";
300 };
301
302 &art {
303 compatible = "nvmem-cells";
304 #address-cells = <1>;
305 #size-cells = <1>;
306
307 macaddr_art_0: macaddr@0 {
308 reg = <0x0 0x6>;
309 };
310
311 macaddr_art_6: macaddr@6 {
312 reg = <0x6 0x6>;
313 };
314 };