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>;
33 led-boot = &power_white;
34 led-failsafe = &power_white;
35 led-running = &power_white;
36 led-upgrade = &power_amber;
40 linux,stdout-path = "serial0:115200n8";
45 pinctrl-0 = <&mdio0_pins &rgmii2_pins>;
46 pinctrl-names = "default";
48 i2c4_pins: i2c4_pinmux {
50 pins = "gpio12", "gpio13";
52 drive-strength = <12>;
57 nand_pins: nand_pins {
59 pins = "gpio34", "gpio35", "gpio36",
60 "gpio37", "gpio38", "gpio39",
61 "gpio40", "gpio41", "gpio42",
62 "gpio43", "gpio44", "gpio45",
65 drive-strength = <10>;
73 pins = "gpio40", "gpio41", "gpio42",
74 "gpio43", "gpio44", "gpio45",
80 mdio0_pins: mdio0_pins {
82 pins = "gpio0", "gpio1";
94 rgmii2_pins: rgmii2_pins {
96 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
97 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
104 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
111 pins = "gpio18", "gpio19", "gpio21";
117 pins = "gpio18", "gpio19";
118 drive-strength = <10>;
123 drive-strength = <10>;
129 drive-strength = <12>;
133 spi6_pins: spi6_pins {
135 pins = "gpio55", "gpio56", "gpio58";
142 drive-strength = <12>;
147 drive-strength = <14>;
152 drive-strength = <12>;
158 drive-strength = <12>;
163 drive-strength = <10>;
171 qcom,mode = <GSBI_PROT_I2C_UART>;
177 * The i2c device on gsbi4 should not be enabled.
178 * On ipq806x designs gsbi4 i2c is meant for exclusive
179 * RPM usage. Turning this on in kernel manifests as
180 * i2c failure for the RPM.
184 gsbi5: gsbi@1a200000 {
185 qcom,mode = <GSBI_PROT_SPI>;
190 spi-max-frequency = <50000000>;
191 pinctrl-0 = <&spi_pins>;
192 pinctrl-names = "default";
194 cs-gpios = <&qcom_pinmux 20 0>;
197 compatible = "jedec,spi-nor";
198 #address-cells = <1>;
200 spi-max-frequency = <50000000>;
203 linux,part-probe = "qcom-smem";
208 gsbi6: gsbi@16500000 {
209 qcom,mode = <GSBI_PROT_SPI>;
213 spi-max-frequency = <6000000>;
214 pinctrl-0 = <&spi6_pins>;
215 pinctrl-names = "default";
217 cs-gpios = <&qcom_pinmux 57 0>;
220 compatible = "spi-nor";
222 spi-max-frequency = <6000000>;
232 ports-implemented = <0x1>;
236 phy@100f8800 { /* USB3 port 1 HS phy */
240 phy@100f8830 { /* USB3 port 1 SS phy */
244 phy@110f8800 { /* USB3 port 0 HS phy */
248 phy@110f8830 { /* USB3 port 0 SS phy */
260 pcie0: pci@1b500000 {
262 phy-tx0-term-offset = <7>;
265 pcie1: pci@1b700000 {
267 phy-tx0-term-offset = <7>;
273 pinctrl-0 = <&nand_pins>;
274 pinctrl-names = "default";
276 nand-ecc-strength = <4>;
277 nand-ecc-step-size = <512>;
278 nand-bus-width = <8>;
280 #address-cells = <1>;
285 reg = <0x0000000 0x0c80000>;
291 reg = <0x0c80000 0x0500000>;
297 reg = <0x1180000 0x0080000>;
303 reg = <0x1200000 0x0140000>;
307 artbak: art@1340000 {
309 reg = <0x1340000 0x0140000>;
315 reg = <0x1480000 0x0200000>;
320 reg = <0x1680000 0x1E00000>;
325 reg = <0x3480000 0x4480000>;
331 reg = <0x7900000 0x0700000>;
337 reg = <0x1480000 0x2000000>;
343 compatible = "virtual,mdio-gpio";
344 #address-cells = <1>;
346 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
348 phy0: ethernet-phy@0 {
349 device_type = "ethernet-phy";
351 qca,ar8327-initvals = <
352 0x00004 0x7600000 /* PAD0_MODE */
353 0x00008 0x1000000 /* PAD5_MODE */
354 0x0000c 0x80 /* PAD6_MODE */
355 0x000e4 0xaa545 /* MAC_POWER_SEL */
356 0x000e0 0xc74164de /* SGMII_CTRL */
357 0x0007c 0x4e /* PORT0_STATUS */
358 0x00094 0x4e /* PORT6_STATUS */
359 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
360 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
361 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
362 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
363 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
364 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
365 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
366 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
367 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
368 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
369 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
370 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
371 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
372 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
375 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
376 0x2 0x21 /* VLAN2 Ports 0/5 */
380 phy4: ethernet-phy@4 {
381 device_type = "ethernet-phy";
383 qca,ar8327-initvals = <
384 0x000e4 0x6a545 /* MAC_POWER_SEL */
385 0x0000c 0x80 /* PAD6_MODE */
390 gmac1: ethernet@37200000 {
394 qcom,phy_mdio_addr = <4>;
395 qcom,poll_required = <0>;
396 qcom,rgmii_delay = <1>;
397 qcom,phy_mii_type = <0>;
398 qcom,emulation = <0>;
402 mtd-mac-address = <&art 6>;
410 gmac2: ethernet@37400000 {
414 qcom,phy_mdio_addr = <0>; /* none */
415 qcom,poll_required = <0>; /* no polling */
416 qcom,rgmii_delay = <0>;
417 qcom,phy_mii_type = <1>;
418 qcom,emulation = <0>;
422 mtd-mac-address = <&art 0>;
431 pinctrl-0 = <&i2c4_pins>;
432 pinctrl-names = "default";
437 compatible = "gpio-keys";
441 gpios = <&qcom_pinmux 6 1>;
442 linux,code = <KEY_RFKILL>;
443 debounce-interval = <60>;
449 gpios = <&qcom_pinmux 54 1>;
450 linux,code = <KEY_RESTART>;
451 debounce-interval = <60>;
457 gpios = <&qcom_pinmux 65 1>;
458 linux,code = <KEY_WPS_BUTTON>;
459 debounce-interval = <60>;
465 compatible = "gpio-leds";
467 power_white: power_white {
468 label = "r7800:white:power";
469 gpios = <&qcom_pinmux 53 0>;
470 default-state = "on";
473 power_amber: power_amber {
474 label = "r7800:amber:power";
475 gpios = <&qcom_pinmux 9 0>;
479 label = "r7800:white:wan";
480 gpios = <&qcom_pinmux 22 0>;
484 label = "r7800:amber:wan";
485 gpios = <&qcom_pinmux 23 0>;
489 label = "r7800:white:usb1";
490 gpios = <&qcom_pinmux 7 0>;
494 label = "r7800:white:usb2";
495 gpios = <&qcom_pinmux 8 0>;
499 label = "r7800:white:esata";
500 gpios = <&qcom_pinmux 26 0>;
504 label = "r7800:white:rfkill";
505 gpios = <&qcom_pinmux 64 0>;
509 label = "r7800:white:wps";
510 gpios = <&qcom_pinmux 24 0>;
514 label = "r7800:white:wifi";
515 gpios = <&qcom_pinmux 67 0>;
520 compatible = "gpio-export";
524 gpio-export,name = "usb1";
525 gpio-export,output = <1>;
526 gpios = <&qcom_pinmux 15 0>;
530 gpio-export,name = "usb2";
531 gpio-export,output = <1>;
532 gpios = <&qcom_pinmux 16 0>;
536 gpio-export,name = "usb_p";
537 gpio-export,output = <1>;
538 gpios = <&qcom_pinmux 68 0>;