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";
19 reg = <0x41200000 0x300000>;
24 reg = <0x5fe00000 0x200000>;
30 serial0 = &gsbi4_serial;
33 led-boot = &power_white;
34 led-failsafe = &power_amber;
35 led-running = &power_white;
36 led-upgrade = &power_amber;
37 label-mac-device = &gmac2;
41 stdout-path = "serial0:115200n8";
46 button_pins: button_pins {
48 pins = "gpio6", "gpio54", "gpio65";
55 i2c4_pins: i2c4_pinmux {
57 pins = "gpio12", "gpio13";
59 drive-strength = <12>;
65 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
66 "gpio24","gpio26", "gpio53", "gpio64";
72 nand_pins: nand_pins {
74 pins = "gpio34", "gpio35", "gpio36",
75 "gpio37", "gpio38", "gpio39",
76 "gpio40", "gpio41", "gpio42",
77 "gpio43", "gpio44", "gpio45",
80 drive-strength = <10>;
88 pins = "gpio40", "gpio41", "gpio42",
89 "gpio43", "gpio44", "gpio45",
95 mdio0_pins: mdio0_pins {
97 pins = "gpio0", "gpio1";
109 rgmii2_pins: rgmii2_pins {
111 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
112 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
114 drive-strength = <8>;
119 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
126 pins = "gpio18", "gpio19", "gpio21";
132 pins = "gpio18", "gpio19";
133 drive-strength = <10>;
138 drive-strength = <10>;
144 drive-strength = <12>;
148 spi6_pins: spi6_pins {
150 pins = "gpio55", "gpio56", "gpio58";
157 drive-strength = <12>;
162 drive-strength = <14>;
167 drive-strength = <12>;
173 drive-strength = <12>;
178 drive-strength = <10>;
184 usb0_pwr_en_pins: usb0_pwr_en_pins {
188 drive-strength = <12>;
194 usb1_pwr_en_pins: usb1_pwr_en_pins {
196 pins = "gpio16", "gpio68";
198 drive-strength = <12>;
206 qcom,mode = <GSBI_PROT_I2C_UART>;
212 * The i2c device on gsbi4 should not be enabled.
213 * On ipq806x designs gsbi4 i2c is meant for exclusive
214 * RPM usage. Turning this on in kernel manifests as
215 * i2c failure for the RPM.
224 ports-implemented = <0x1>;
228 usb3_0: usb3@110f8800 {
231 pinctrl-0 = <&usb0_pwr_en_pins>;
232 pinctrl-names = "default";
235 usb3_1: usb3@100f8800 {
238 pinctrl-0 = <&usb1_pwr_en_pins>;
239 pinctrl-names = "default";
242 pcie0: pci@1b500000 {
246 reg = <0x00000000 0 0 0 0>;
247 #address-cells = <3>;
252 compatible = "pci168c,0046";
253 reg = <0x00010000 0 0 0 0>;
255 mtd-mac-address = <&art 6>;
256 mtd-mac-address-increment = <(1)>;
261 pcie1: pci@1b700000 {
266 reg = <0x00000000 0 0 0 0>;
267 #address-cells = <3>;
272 compatible = "pci168c,0046";
273 reg = <0x00010000 0 0 0 0>;
275 mtd-mac-address = <&art 6>;
276 mtd-mac-address-increment = <(2)>;
284 pinctrl-0 = <&nand_pins>;
285 pinctrl-names = "default";
289 compatible = "qcom,nandcs";
291 nand-ecc-strength = <4>;
292 nand-bus-width = <8>;
293 nand-ecc-step-size = <512>;
296 compatible = "fixed-partitions";
297 #address-cells = <1>;
302 reg = <0x0000000 0x0c80000>;
308 reg = <0x0c80000 0x0500000>;
314 reg = <0x1180000 0x0080000>;
320 reg = <0x1200000 0x0140000>;
324 artbak: art@1340000 {
326 reg = <0x1340000 0x0140000>;
332 reg = <0x1480000 0x0400000>;
337 reg = <0x1880000 0x6080000>;
342 reg = <0x7900000 0x0700000>;
350 compatible = "virtual,mdio-gpio";
351 #address-cells = <1>;
353 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
354 pinctrl-0 = <&mdio0_pins>;
355 pinctrl-names = "default";
358 phy0: ethernet-phy@0 {
360 qca,ar8327-initvals = <
361 0x00004 0x7600000 /* PAD0_MODE */
362 0x00008 0x1000000 /* PAD5_MODE */
363 0x0000c 0x80 /* PAD6_MODE */
364 0x000e4 0xaa545 /* MAC_POWER_SEL */
365 0x000e0 0xc74164de /* SGMII_CTRL */
366 0x0007c 0x4e /* PORT0_STATUS */
367 0x00094 0x4e /* PORT6_STATUS */
368 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
369 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
370 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
371 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
372 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
373 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
374 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
375 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
376 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
377 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
378 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
379 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
380 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
381 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
384 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
385 0x2 0x21 /* VLAN2 Ports 0/5 */
389 phy4: ethernet-phy@4 {
391 qca,ar8327-initvals = <
392 0x000e4 0x6a545 /* MAC_POWER_SEL */
393 0x0000c 0x80 /* PAD6_MODE */
398 gmac1: ethernet@37200000 {
402 qcom,phy_mdio_addr = <4>;
403 qcom,poll_required = <0>;
404 qcom,rgmii_delay = <1>;
405 qcom,phy_mii_type = <0>;
406 qcom,emulation = <0>;
410 pinctrl-0 = <&rgmii2_pins>;
411 pinctrl-names = "default";
413 mtd-mac-address = <&art 6>;
421 gmac2: ethernet@37400000 {
425 qcom,phy_mdio_addr = <0>; /* none */
426 qcom,poll_required = <0>; /* no polling */
427 qcom,rgmii_delay = <0>;
428 qcom,phy_mii_type = <1>;
429 qcom,emulation = <0>;
433 mtd-mac-address = <&art 0>;
443 compatible = "gpio-keys";
444 pinctrl-0 = <&button_pins>;
445 pinctrl-names = "default";
449 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
450 linux,code = <KEY_RFKILL>;
451 debounce-interval = <60>;
457 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
458 linux,code = <KEY_RESTART>;
459 debounce-interval = <60>;
465 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
466 linux,code = <KEY_WPS_BUTTON>;
467 debounce-interval = <60>;
473 compatible = "gpio-leds";
474 pinctrl-0 = <&led_pins>;
475 pinctrl-names = "default";
477 power_white: power_white {
478 label = "r7800:white:power";
479 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
480 default-state = "keep";
483 power_amber: power_amber {
484 label = "r7800:amber:power";
485 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
489 label = "r7800:white:wan";
490 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
494 label = "r7800:amber:wan";
495 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
499 label = "r7800:white:usb1";
500 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
504 label = "r7800:white:usb2";
505 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
509 label = "r7800:white:esata";
510 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
514 label = "r7800:white:wifi";
515 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
519 label = "r7800:white:wps";
520 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;