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>;
139 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
140 "gpio24","gpio26", "gpio53", "gpio64";
142 drive-strength = <2>;
147 mdio0_pins: mdio0_pins {
154 rgmii2_pins: rgmii2_pins {
156 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
163 pins = "gpio18", "gpio19", "gpio21";
169 pins = "gpio18", "gpio19";
170 drive-strength = <10>;
175 drive-strength = <10>;
181 drive-strength = <12>;
185 spi6_pins: spi6_pins {
187 pins = "gpio55", "gpio56", "gpio58";
194 drive-strength = <12>;
199 drive-strength = <14>;
204 drive-strength = <12>;
210 drive-strength = <12>;
215 drive-strength = <10>;
221 usb0_pwr_en_pins: usb0_pwr_en_pins {
225 drive-strength = <12>;
231 usb1_pwr_en_pins: usb1_pwr_en_pins {
233 pins = "gpio16", "gpio68";
235 drive-strength = <12>;
243 qcom,mode = <GSBI_PROT_I2C_UART>;
251 * The i2c device on gsbi4 should not be enabled.
252 * On ipq806x designs gsbi4 i2c is meant for exclusive
253 * RPM usage. Turning this on in kernel manifests as
254 * i2c failure for the RPM.
261 pinctrl-0 = <&nand_pins>;
262 pinctrl-names = "default";
266 compatible = "qcom,nandcs";
268 nand-ecc-strength = <4>;
269 nand-bus-width = <8>;
270 nand-ecc-step-size = <512>;
273 compatible = "fixed-partitions";
274 #address-cells = <1>;
279 reg = <0x0000000 0x0c80000>;
285 reg = <0x0c80000 0x0500000>;
291 reg = <0x1180000 0x0080000>;
297 reg = <0x1200000 0x0140000>;
301 artbak: art@1340000 {
303 reg = <0x1340000 0x0140000>;
309 reg = <0x1480000 0x0400000>;
314 reg = <0x1880000 0x6080000>;
319 reg = <0x7900000 0x0700000>;
329 pinctrl-0 = <&mdio0_pins>;
330 pinctrl-names = "default";
332 phy0: ethernet-phy@0 {
334 qca,ar8327-initvals = <
335 0x00004 0x7600000 /* PAD0_MODE */
336 0x00008 0x1000000 /* PAD5_MODE */
337 0x0000c 0x80 /* PAD6_MODE */
338 0x000e4 0xaa545 /* MAC_POWER_SEL */
339 0x000e0 0xc74164de /* SGMII_CTRL */
340 0x0007c 0x4e /* PORT0_STATUS */
341 0x00094 0x4e /* PORT6_STATUS */
342 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
343 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
344 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
345 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
346 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
347 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
348 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
349 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
350 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
351 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
352 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
353 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
354 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
355 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
358 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
359 0x2 0x21 /* VLAN2 Ports 0/5 */
363 phy4: ethernet-phy@4 {
365 qca,ar8327-initvals = <
366 0x000e4 0x6a545 /* MAC_POWER_SEL */
367 0x0000c 0x80 /* PAD6_MODE */
376 qcom,phy_mdio_addr = <4>;
377 qcom,poll_required = <0>;
378 qcom,rgmii_delay = <1>;
379 qcom,phy_mii_type = <0>;
380 qcom,emulation = <0>;
384 pinctrl-0 = <&rgmii2_pins>;
385 pinctrl-names = "default";
387 mtd-mac-address = <&art 6>;
399 qcom,phy_mdio_addr = <0>; /* none */
400 qcom,poll_required = <0>; /* no polling */
401 qcom,rgmii_delay = <0>;
402 qcom,phy_mii_type = <1>;
403 qcom,emulation = <0>;
407 mtd-mac-address = <&art 0>;
424 ports-implemented = <0x1>;
431 pinctrl-0 = <&usb0_pwr_en_pins>;
432 pinctrl-names = "default";
438 pinctrl-0 = <&usb1_pwr_en_pins>;
439 pinctrl-names = "default";
446 reg = <0x00000000 0 0 0 0>;
447 #address-cells = <3>;
452 compatible = "pci168c,0046";
453 reg = <0x00010000 0 0 0 0>;
455 mtd-mac-address = <&art 6>;
456 mtd-mac-address-increment = <(1)>;
466 reg = <0x00000000 0 0 0 0>;
467 #address-cells = <3>;
472 compatible = "pci168c,0046";
473 reg = <0x00010000 0 0 0 0>;
475 mtd-mac-address = <&art 6>;
476 mtd-mac-address-increment = <(2)>;