1 #include "qcom-ipq8065.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "Netgear Nighthawk X4S R7800";
7 compatible = "netgear,r7800", "qcom,ipq8065", "qcom,ipq8064";
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
16 reg = <0x5fe00000 0x200000>;
24 led-boot = &power_white;
25 led-failsafe = &power_amber;
26 led-running = &power_white;
27 led-upgrade = &power_amber;
28 label-mac-device = &gmac2;
32 compatible = "gpio-keys";
33 pinctrl-0 = <&button_pins>;
34 pinctrl-names = "default";
38 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RFKILL>;
40 debounce-interval = <60>;
46 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 debounce-interval = <60>;
54 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
56 debounce-interval = <60>;
62 compatible = "gpio-leds";
63 pinctrl-0 = <&led_pins>;
64 pinctrl-names = "default";
66 power_white: power_white {
67 label = "r7800:white:power";
68 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
69 default-state = "keep";
72 power_amber: power_amber {
73 label = "r7800:amber:power";
74 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
78 label = "r7800:white:wan";
79 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
83 label = "r7800:amber:wan";
84 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
88 label = "r7800:white:usb1";
89 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
93 label = "r7800:white:usb2";
94 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
98 label = "r7800:white:esata";
99 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
103 label = "r7800:white:wifi";
104 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
108 label = "r7800:white:wps";
109 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
115 button_pins: button_pins {
117 pins = "gpio6", "gpio54", "gpio65";
119 drive-strength = <2>;
126 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
127 "gpio24","gpio26", "gpio53", "gpio64";
129 drive-strength = <2>;
134 mdio0_pins: mdio0_pins {
141 rgmii2_pins: rgmii2_pins {
143 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
150 pins = "gpio18", "gpio19", "gpio21";
156 pins = "gpio18", "gpio19";
157 drive-strength = <10>;
162 drive-strength = <10>;
168 drive-strength = <12>;
172 spi6_pins: spi6_pins {
174 pins = "gpio55", "gpio56", "gpio58";
181 drive-strength = <12>;
186 drive-strength = <14>;
191 drive-strength = <12>;
197 drive-strength = <12>;
202 drive-strength = <10>;
208 usb0_pwr_en_pins: usb0_pwr_en_pins {
212 drive-strength = <12>;
218 usb1_pwr_en_pins: usb1_pwr_en_pins {
220 pins = "gpio16", "gpio68";
222 drive-strength = <12>;
232 pinctrl-0 = <&nand_pins>;
233 pinctrl-names = "default";
237 compatible = "qcom,nandcs";
239 nand-ecc-strength = <4>;
240 nand-bus-width = <8>;
241 nand-ecc-step-size = <512>;
244 compatible = "fixed-partitions";
245 #address-cells = <1>;
250 reg = <0x0000000 0x0c80000>;
256 reg = <0x0c80000 0x0500000>;
262 reg = <0x1180000 0x0080000>;
268 reg = <0x1200000 0x0140000>;
272 artbak: art@1340000 {
274 reg = <0x1340000 0x0140000>;
280 reg = <0x1480000 0x0400000>;
285 reg = <0x1880000 0x6080000>;
290 reg = <0x7900000 0x0700000>;
300 pinctrl-0 = <&mdio0_pins>;
301 pinctrl-names = "default";
303 phy0: ethernet-phy@0 {
305 qca,ar8327-initvals = <
306 0x00004 0x7600000 /* PAD0_MODE */
307 0x00008 0x1000000 /* PAD5_MODE */
308 0x0000c 0x80 /* PAD6_MODE */
309 0x000e4 0xaa545 /* MAC_POWER_SEL */
310 0x000e0 0xc74164de /* SGMII_CTRL */
311 0x0007c 0x4e /* PORT0_STATUS */
312 0x00094 0x4e /* PORT6_STATUS */
313 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
314 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
315 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
316 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
317 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
318 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
319 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
320 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
321 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
322 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
323 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
324 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
325 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
326 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
329 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
330 0x2 0x21 /* VLAN2 Ports 0/5 */
334 phy4: ethernet-phy@4 {
336 qca,ar8327-initvals = <
337 0x000e4 0x6a545 /* MAC_POWER_SEL */
338 0x0000c 0x80 /* PAD6_MODE */
347 qcom,phy_mdio_addr = <4>;
348 qcom,poll_required = <0>;
349 qcom,rgmii_delay = <1>;
350 qcom,phy_mii_type = <0>;
351 qcom,emulation = <0>;
355 pinctrl-0 = <&rgmii2_pins>;
356 pinctrl-names = "default";
358 mtd-mac-address = <&art 6>;
370 qcom,phy_mdio_addr = <0>; /* none */
371 qcom,poll_required = <0>; /* no polling */
372 qcom,rgmii_delay = <0>;
373 qcom,phy_mii_type = <1>;
374 qcom,emulation = <0>;
378 mtd-mac-address = <&art 0>;
401 pinctrl-0 = <&usb0_pwr_en_pins>;
402 pinctrl-names = "default";
408 pinctrl-0 = <&usb1_pwr_en_pins>;
409 pinctrl-names = "default";
416 reg = <0x00000000 0 0 0 0>;
417 #address-cells = <3>;
422 compatible = "pci168c,0046";
423 reg = <0x00010000 0 0 0 0>;
425 mtd-mac-address = <&art 6>;
426 mtd-mac-address-increment = <(1)>;
436 reg = <0x00000000 0 0 0 0>;
437 #address-cells = <3>;
442 compatible = "pci168c,0046";
443 reg = <0x00010000 0 0 0 0>;
445 mtd-mac-address = <&art 6>;
446 mtd-mac-address-increment = <(2)>;