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";
45 compatible = "gpio-keys";
46 pinctrl-0 = <&button_pins>;
47 pinctrl-names = "default";
51 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RFKILL>;
53 debounce-interval = <60>;
59 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
61 debounce-interval = <60>;
67 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_WPS_BUTTON>;
69 debounce-interval = <60>;
75 compatible = "gpio-leds";
76 pinctrl-0 = <&led_pins>;
77 pinctrl-names = "default";
79 power_white: power_white {
80 label = "r7800:white:power";
81 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
82 default-state = "keep";
85 power_amber: power_amber {
86 label = "r7800:amber:power";
87 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
91 label = "r7800:white:wan";
92 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
96 label = "r7800:amber:wan";
97 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
101 label = "r7800:white:usb1";
102 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
106 label = "r7800:white:usb2";
107 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
111 label = "r7800:white:esata";
112 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
116 label = "r7800:white:wifi";
117 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
121 label = "r7800:white:wps";
122 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
128 button_pins: button_pins {
130 pins = "gpio6", "gpio54", "gpio65";
132 drive-strength = <2>;
137 i2c4_pins: i2c4_pinmux {
139 pins = "gpio12", "gpio13";
141 drive-strength = <12>;
148 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
149 "gpio24","gpio26", "gpio53", "gpio64";
151 drive-strength = <2>;
156 nand_pins: nand_pins {
158 pins = "gpio34", "gpio35", "gpio36",
161 drive-strength = <10>;
167 drive-strength = <10>;
171 pins = "gpio40", "gpio41", "gpio42",
172 "gpio43", "gpio44", "gpio45",
175 drive-strength = <10>;
180 mdio0_pins: mdio0_pins {
182 pins = "gpio0", "gpio1";
184 drive-strength = <8>;
194 rgmii2_pins: rgmii2_pins {
196 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
197 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
199 drive-strength = <8>;
204 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
211 pins = "gpio18", "gpio19", "gpio21";
217 pins = "gpio18", "gpio19";
218 drive-strength = <10>;
223 drive-strength = <10>;
229 drive-strength = <12>;
233 spi6_pins: spi6_pins {
235 pins = "gpio55", "gpio56", "gpio58";
242 drive-strength = <12>;
247 drive-strength = <14>;
252 drive-strength = <12>;
258 drive-strength = <12>;
263 drive-strength = <10>;
269 usb0_pwr_en_pins: usb0_pwr_en_pins {
273 drive-strength = <12>;
279 usb1_pwr_en_pins: usb1_pwr_en_pins {
281 pins = "gpio16", "gpio68";
283 drive-strength = <12>;
291 qcom,mode = <GSBI_PROT_I2C_UART>;
299 * The i2c device on gsbi4 should not be enabled.
300 * On ipq806x designs gsbi4 i2c is meant for exclusive
301 * RPM usage. Turning this on in kernel manifests as
302 * i2c failure for the RPM.
309 pinctrl-0 = <&nand_pins>;
310 pinctrl-names = "default";
314 compatible = "qcom,nandcs";
316 nand-ecc-strength = <4>;
317 nand-bus-width = <8>;
318 nand-ecc-step-size = <512>;
321 compatible = "fixed-partitions";
322 #address-cells = <1>;
327 reg = <0x0000000 0x0c80000>;
333 reg = <0x0c80000 0x0500000>;
339 reg = <0x1180000 0x0080000>;
345 reg = <0x1200000 0x0140000>;
349 artbak: art@1340000 {
351 reg = <0x1340000 0x0140000>;
357 reg = <0x1480000 0x0400000>;
362 reg = <0x1880000 0x6080000>;
367 reg = <0x7900000 0x0700000>;
377 pinctrl-0 = <&mdio0_pins>;
378 pinctrl-names = "default";
380 phy0: ethernet-phy@0 {
382 qca,ar8327-initvals = <
383 0x00004 0x7600000 /* PAD0_MODE */
384 0x00008 0x1000000 /* PAD5_MODE */
385 0x0000c 0x80 /* PAD6_MODE */
386 0x000e4 0xaa545 /* MAC_POWER_SEL */
387 0x000e0 0xc74164de /* SGMII_CTRL */
388 0x0007c 0x4e /* PORT0_STATUS */
389 0x00094 0x4e /* PORT6_STATUS */
390 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
391 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
392 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
393 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
394 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
395 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
396 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
397 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
398 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
399 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
400 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
401 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
402 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
403 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
406 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
407 0x2 0x21 /* VLAN2 Ports 0/5 */
411 phy4: ethernet-phy@4 {
413 qca,ar8327-initvals = <
414 0x000e4 0x6a545 /* MAC_POWER_SEL */
415 0x0000c 0x80 /* PAD6_MODE */
424 qcom,phy_mdio_addr = <4>;
425 qcom,poll_required = <0>;
426 qcom,rgmii_delay = <1>;
427 qcom,phy_mii_type = <0>;
428 qcom,emulation = <0>;
432 pinctrl-0 = <&rgmii2_pins>;
433 pinctrl-names = "default";
435 mtd-mac-address = <&art 6>;
447 qcom,phy_mdio_addr = <0>; /* none */
448 qcom,poll_required = <0>; /* no polling */
449 qcom,rgmii_delay = <0>;
450 qcom,phy_mii_type = <1>;
451 qcom,emulation = <0>;
455 mtd-mac-address = <&art 0>;
472 ports-implemented = <0x1>;
479 pinctrl-0 = <&usb0_pwr_en_pins>;
480 pinctrl-names = "default";
486 pinctrl-0 = <&usb1_pwr_en_pins>;
487 pinctrl-names = "default";
494 reg = <0x00000000 0 0 0 0>;
495 #address-cells = <3>;
500 compatible = "pci168c,0046";
501 reg = <0x00010000 0 0 0 0>;
503 mtd-mac-address = <&art 6>;
504 mtd-mac-address-increment = <(1)>;
514 reg = <0x00000000 0 0 0 0>;
515 #address-cells = <3>;
520 compatible = "pci168c,0046";
521 reg = <0x00010000 0 0 0 0>;
523 mtd-mac-address = <&art 6>;
524 mtd-mac-address-increment = <(2)>;