1 #include "qcom-ipq8065-v1.0.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>;
237 linux,part-probe = "qcom-smem";
242 gsbi6: gsbi@16500000 {
243 qcom,mode = <GSBI_PROT_SPI>;
248 pinctrl-0 = <&spi6_pins>;
249 pinctrl-names = "default";
251 cs-gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
254 compatible = "jedec,spi-nor";
256 spi-max-frequency = <6000000>;
266 ports-implemented = <0x1>;
270 phy@100f8800 { /* USB3 port 1 HS phy */
274 phy@100f8830 { /* USB3 port 1 SS phy */
278 phy@110f8800 { /* USB3 port 0 HS phy */
282 phy@110f8830 { /* USB3 port 0 SS phy */
289 pinctrl-0 = <&usb0_pwr_en_pins>;
290 pinctrl-names = "default";
296 pinctrl-0 = <&usb1_pwr_en_pins>;
297 pinctrl-names = "default";
300 pcie0: pci@1b500000 {
302 phy-tx0-term-offset = <7>;
305 pcie1: pci@1b700000 {
307 phy-tx0-term-offset = <7>;
313 pinctrl-0 = <&nand_pins>;
314 pinctrl-names = "default";
318 compatible = "qcom,nandcs";
320 nand-ecc-strength = <4>;
321 nand-bus-width = <8>;
322 nand-ecc-step-size = <512>;
325 compatible = "fixed-partitions";
326 #address-cells = <1>;
331 reg = <0x0000000 0x0c80000>;
337 reg = <0x0c80000 0x0500000>;
343 reg = <0x1180000 0x0080000>;
349 reg = <0x1200000 0x0140000>;
353 artbak: art@1340000 {
355 reg = <0x1340000 0x0140000>;
361 reg = <0x1480000 0x0200000>;
366 reg = <0x1680000 0x1E00000>;
371 reg = <0x3480000 0x4480000>;
377 reg = <0x7900000 0x0700000>;
383 reg = <0x1480000 0x2000000>;
390 compatible = "virtual,mdio-gpio";
391 #address-cells = <1>;
393 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
394 pinctrl-0 = <&mdio0_pins>;
395 pinctrl-names = "default";
418 compatible = "qca,qca8337";
419 #address-cells = <1>;
425 #address-cells = <1>;
442 phy-handle = <&phy_port1>;
448 phy-handle = <&phy_port2>;
454 phy-handle = <&phy_port3>;
460 phy-handle = <&phy_port4>;
466 phy-handle = <&phy_port5>;
470 * Disabled until DSA supports multiple CPUs,
471 * otherwise it causes undefined behavior.
476 * ethernet = <&gmac2>;
477 * phy-mode = "sgmii";
489 gmac1: ethernet@37200000 {
493 qcom,phy_mdio_addr = <4>;
494 qcom,poll_required = <0>;
495 qcom,rgmii_delay = <1>;
496 qcom,phy_mii_type = <0>;
497 qcom,emulation = <0>;
501 pinctrl-0 = <&rgmii2_pins>;
502 pinctrl-names = "default";
504 mtd-mac-address = <&art 6>;
512 gmac2: ethernet@37400000 {
516 qcom,phy_mdio_addr = <0>; /* none */
517 qcom,poll_required = <0>; /* no polling */
518 qcom,rgmii_delay = <0>;
519 qcom,phy_mii_type = <1>;
520 qcom,emulation = <0>;
524 mtd-mac-address = <&art 0>;
533 pinctrl-0 = <&i2c4_pins>;
534 pinctrl-names = "default";
539 compatible = "gpio-keys";
540 pinctrl-0 = <&button_pins>;
541 pinctrl-names = "default";
545 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
546 linux,code = <KEY_RFKILL>;
547 debounce-interval = <60>;
553 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
554 linux,code = <KEY_RESTART>;
555 debounce-interval = <60>;
561 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
562 linux,code = <KEY_WPS_BUTTON>;
563 debounce-interval = <60>;
569 compatible = "gpio-leds";
570 pinctrl-0 = <&led_pins>;
571 pinctrl-names = "default";
573 power_white: power_white {
574 label = "r7800:white:power";
575 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
576 default-state = "keep";
579 power_amber: power_amber {
580 label = "r7800:amber:power";
581 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
585 label = "r7800:white:wan";
586 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
590 label = "r7800:amber:wan";
591 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
595 label = "r7800:white:usb1";
596 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
600 label = "r7800:white:usb2";
601 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
605 label = "r7800:white:esata";
606 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
610 label = "r7800:white:wifi";
611 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
615 label = "r7800:white:wps";
616 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;