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;
40 linux,stdout-path = "serial0:115200n8";
45 button_pins: button_pins {
47 pins = "gpio6", "gpio54", "gpio65";
54 i2c4_pins: i2c4_pinmux {
56 pins = "gpio12", "gpio13";
58 drive-strength = <12>;
64 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
65 "gpio24","gpio26", "gpio53", "gpio64";
71 nand_pins: nand_pins {
73 pins = "gpio34", "gpio35", "gpio36",
74 "gpio37", "gpio38", "gpio39",
75 "gpio40", "gpio41", "gpio42",
76 "gpio43", "gpio44", "gpio45",
79 drive-strength = <10>;
87 pins = "gpio40", "gpio41", "gpio42",
88 "gpio43", "gpio44", "gpio45",
94 mdio0_pins: mdio0_pins {
96 pins = "gpio0", "gpio1";
108 rgmii2_pins: rgmii2_pins {
110 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
111 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
113 drive-strength = <8>;
118 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
125 pins = "gpio18", "gpio19", "gpio21";
131 pins = "gpio18", "gpio19";
132 drive-strength = <10>;
137 drive-strength = <10>;
143 drive-strength = <12>;
147 spi6_pins: spi6_pins {
149 pins = "gpio55", "gpio56", "gpio58";
156 drive-strength = <12>;
161 drive-strength = <14>;
166 drive-strength = <12>;
172 drive-strength = <12>;
177 drive-strength = <10>;
183 usb0_pwr_en_pins: usb0_pwr_en_pins {
187 drive-strength = <12>;
193 usb1_pwr_en_pins: usb1_pwr_en_pins {
195 pins = "gpio16", "gpio68";
197 drive-strength = <12>;
205 qcom,mode = <GSBI_PROT_I2C_UART>;
211 * The i2c device on gsbi4 should not be enabled.
212 * On ipq806x designs gsbi4 i2c is meant for exclusive
213 * RPM usage. Turning this on in kernel manifests as
214 * i2c failure for the RPM.
218 gsbi5: gsbi@1a200000 {
219 qcom,mode = <GSBI_PROT_SPI>;
225 pinctrl-0 = <&spi_pins>;
226 pinctrl-names = "default";
228 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
231 compatible = "jedec,spi-nor";
232 #address-cells = <1>;
234 spi-max-frequency = <50000000>;
238 compatible = "qcom,smem";
244 gsbi6: gsbi@16500000 {
245 qcom,mode = <GSBI_PROT_SPI>;
250 pinctrl-0 = <&spi6_pins>;
251 pinctrl-names = "default";
253 cs-gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
256 compatible = "jedec,spi-nor";
258 spi-max-frequency = <6000000>;
268 ports-implemented = <0x1>;
272 phy@100f8800 { /* USB3 port 1 HS phy */
276 phy@100f8830 { /* USB3 port 1 SS phy */
280 phy@110f8800 { /* USB3 port 0 HS phy */
284 phy@110f8830 { /* USB3 port 0 SS phy */
291 pinctrl-0 = <&usb0_pwr_en_pins>;
292 pinctrl-names = "default";
298 pinctrl-0 = <&usb1_pwr_en_pins>;
299 pinctrl-names = "default";
302 pcie0: pci@1b500000 {
306 pcie1: pci@1b700000 {
314 pinctrl-0 = <&nand_pins>;
315 pinctrl-names = "default";
319 compatible = "qcom,nandcs";
321 nand-ecc-strength = <4>;
322 nand-bus-width = <8>;
323 nand-ecc-step-size = <512>;
326 compatible = "fixed-partitions";
327 #address-cells = <1>;
332 reg = <0x0000000 0x0c80000>;
338 reg = <0x0c80000 0x0500000>;
344 reg = <0x1180000 0x0080000>;
350 reg = <0x1200000 0x0140000>;
354 artbak: art@1340000 {
356 reg = <0x1340000 0x0140000>;
362 reg = <0x1480000 0x0400000>;
367 reg = <0x1880000 0x1C00000>;
372 reg = <0x3480000 0x4480000>;
378 reg = <0x7900000 0x0700000>;
384 reg = <0x1480000 0x2000000>;
391 compatible = "virtual,mdio-gpio";
392 #address-cells = <1>;
394 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
395 pinctrl-0 = <&mdio0_pins>;
396 pinctrl-names = "default";
399 phy0: ethernet-phy@0 {
400 device_type = "ethernet-phy";
402 qca,ar8327-initvals = <
403 0x00004 0x7600000 /* PAD0_MODE */
404 0x00008 0x1000000 /* PAD5_MODE */
405 0x0000c 0x80 /* PAD6_MODE */
406 0x000e4 0xaa545 /* MAC_POWER_SEL */
407 0x000e0 0xc74164de /* SGMII_CTRL */
408 0x0007c 0x4e /* PORT0_STATUS */
409 0x00094 0x4e /* PORT6_STATUS */
410 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
411 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
412 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
413 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
414 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
415 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
416 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
417 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
418 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
419 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
420 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
421 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
422 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
423 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
426 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
427 0x2 0x21 /* VLAN2 Ports 0/5 */
431 phy4: ethernet-phy@4 {
432 device_type = "ethernet-phy";
434 qca,ar8327-initvals = <
435 0x000e4 0x6a545 /* MAC_POWER_SEL */
436 0x0000c 0x80 /* PAD6_MODE */
441 gmac1: ethernet@37200000 {
445 qcom,phy_mdio_addr = <4>;
446 qcom,poll_required = <0>;
447 qcom,rgmii_delay = <1>;
448 qcom,phy_mii_type = <0>;
449 qcom,emulation = <0>;
453 pinctrl-0 = <&rgmii2_pins>;
454 pinctrl-names = "default";
456 mtd-mac-address = <&art 6>;
464 gmac2: ethernet@37400000 {
468 qcom,phy_mdio_addr = <0>; /* none */
469 qcom,poll_required = <0>; /* no polling */
470 qcom,rgmii_delay = <0>;
471 qcom,phy_mii_type = <1>;
472 qcom,emulation = <0>;
476 mtd-mac-address = <&art 0>;
486 compatible = "gpio-keys";
487 pinctrl-0 = <&button_pins>;
488 pinctrl-names = "default";
492 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
493 linux,code = <KEY_RFKILL>;
494 debounce-interval = <60>;
500 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
501 linux,code = <KEY_RESTART>;
502 debounce-interval = <60>;
508 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
509 linux,code = <KEY_WPS_BUTTON>;
510 debounce-interval = <60>;
516 compatible = "gpio-leds";
517 pinctrl-0 = <&led_pins>;
518 pinctrl-names = "default";
520 power_white: power_white {
521 label = "r7800:white:power";
522 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
523 default-state = "keep";
526 power_amber: power_amber {
527 label = "r7800:amber:power";
528 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
532 label = "r7800:white:wan";
533 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
537 label = "r7800:amber:wan";
538 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
542 label = "r7800:white:usb1";
543 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
547 label = "r7800:white:usb2";
548 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
552 label = "r7800:white:esata";
553 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
557 label = "r7800:white:wifi";
558 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
562 label = "r7800:white:wps";
563 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;