ipq806x: move stdout-path to DTSI files
[openwrt/openwrt.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 };
38
39 keys {
40 compatible = "gpio-keys";
41 pinctrl-0 = <&button_pins>;
42 pinctrl-names = "default";
43
44 wifi {
45 label = "wifi";
46 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RFKILL>;
48 };
49
50 reset {
51 label = "reset";
52 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
54 };
55
56 wps {
57 label = "wps";
58 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
60 };
61 };
62
63 leds {
64 compatible = "gpio-leds";
65 pinctrl-0 = <&led_pins>;
66 pinctrl-names = "default";
67
68 usb1 {
69 label = "r7500:white:usb1";
70 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
71 };
72
73 usb2 {
74 label = "r7500:white:usb2";
75 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
76 };
77
78 power_amber: power_amber {
79 label = "r7500:amber:power";
80 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
81 };
82
83 wan_white {
84 label = "r7500:white:wan";
85 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
86 };
87
88 wan_amber {
89 label = "r7500:amber:wan";
90 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
91 };
92
93 wps {
94 label = "r7500:white:wps";
95 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
96 };
97
98 esata {
99 label = "r7500:white:esata";
100 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
101 };
102
103 power_white: power_white {
104 label = "r7500:white:power";
105 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
106 default-state = "keep";
107 };
108
109 wifi {
110 label = "r7500:white:wifi";
111 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
112 };
113 };
114 };
115
116 &qcom_pinmux {
117 button_pins: button_pins {
118 mux {
119 pins = "gpio6", "gpio54", "gpio65";
120 function = "gpio";
121 drive-strength = <2>;
122 bias-pull-up;
123 };
124 };
125
126 led_pins: led_pins {
127 mux {
128 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
129 "gpio24","gpio26", "gpio53", "gpio64";
130 function = "gpio";
131 drive-strength = <2>;
132 bias-pull-up;
133 };
134 };
135 };
136
137 &gsbi4 {
138 qcom,mode = <GSBI_PROT_I2C_UART>;
139 status = "okay";
140 serial@16340000 {
141 status = "okay";
142 };
143 /*
144 * The i2c device on gsbi4 should not be enabled.
145 * On ipq806x designs gsbi4 i2c is meant for exclusive
146 * RPM usage. Turning this on in kernel manifests as
147 * i2c failure for the RPM.
148 */
149 };
150
151 &sata_phy {
152 status = "okay";
153 };
154
155 &sata {
156 status = "okay";
157 };
158
159 &usb3_0 {
160 clocks = <&gcc USB30_1_MASTER_CLK>;
161 status = "okay";
162 };
163
164 &usb3_1 {
165 clocks = <&gcc USB30_0_MASTER_CLK>;
166 status = "okay";
167 };
168
169 &pcie0 {
170 status = "okay";
171 };
172
173 &pcie1 {
174 status = "okay";
175 force_gen1 = <1>;
176 };
177
178 &nand_controller {
179 status = "okay";
180
181 pinctrl-0 = <&nand_pins>;
182 pinctrl-names = "default";
183
184 nand@0 {
185 reg = <0>;
186 compatible = "qcom,nandcs";
187
188 nand-ecc-strength = <4>;
189 nand-bus-width = <8>;
190 nand-ecc-step-size = <512>;
191
192 partitions {
193 compatible = "fixed-partitions";
194 #address-cells = <1>;
195 #size-cells = <1>;
196
197 qcadata@0 {
198 label = "qcadata";
199 reg = <0x0000000 0x0c80000>;
200 read-only;
201 };
202
203 APPSBL@c80000 {
204 label = "APPSBL";
205 reg = <0x0c80000 0x0500000>;
206 read-only;
207 };
208
209 APPSBLENV@1180000 {
210 label = "APPSBLENV";
211 reg = <0x1180000 0x0080000>;
212 read-only;
213 };
214
215 art: art@1200000 {
216 label = "art";
217 reg = <0x1200000 0x0140000>;
218 read-only;
219 };
220
221 kernel@1340000 {
222 label = "kernel";
223 reg = <0x1340000 0x0400000>;
224 };
225
226 ubi@1740000 {
227 label = "ubi";
228 reg = <0x1740000 0x1600000>;
229 };
230
231 netgear@2d40000 {
232 label = "netgear";
233 reg = <0x2d40000 0x0c00000>;
234 read-only;
235 };
236
237 reserve@3940000 {
238 label = "reserve";
239 reg = <0x3940000 0x46c0000>;
240 read-only;
241 };
242 };
243 };
244 };
245
246 &mdio0 {
247 status = "okay";
248
249 pinctrl-0 = <&mdio0_pins>;
250 pinctrl-names = "default";
251
252 phy0: ethernet-phy@0 {
253 reg = <0>;
254 qca,ar8327-initvals = <
255 0x00004 0x7600000 /* PAD0_MODE */
256 0x00008 0x1000000 /* PAD5_MODE */
257 0x0000c 0x80 /* PAD6_MODE */
258 0x000e4 0x6a545 /* MAC_POWER_SEL */
259 0x000e0 0xc74164de /* SGMII_CTRL */
260 0x0007c 0x4e /* PORT0_STATUS */
261 0x00094 0x4e /* PORT6_STATUS */
262 >;
263 };
264
265 phy4: ethernet-phy@4 {
266 reg = <4>;
267 };
268 };
269
270 &gmac1 {
271 status = "okay";
272 phy-mode = "rgmii";
273 qcom,id = <1>;
274
275 pinctrl-0 = <&rgmii2_pins>;
276 pinctrl-names = "default";
277
278 mtd-mac-address = <&art 6>;
279
280 fixed-link {
281 speed = <1000>;
282 full-duplex;
283 };
284 };
285
286 &gmac2 {
287 status = "okay";
288 phy-mode = "sgmii";
289 qcom,id = <2>;
290
291 mtd-mac-address = <&art 0>;
292
293 fixed-link {
294 speed = <1000>;
295 full-duplex;
296 };
297 };
298
299 &tcsr {
300 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
301 compatible = "qcom,tcsr";
302 };
303
304 &adm_dma {
305 status = "okay";
306 };