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