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 mdio0: mdio@37000000 {
49 compatible = "qcom,ipq8064-mdio", "syscon";
50 reg = <0x37000000 0x200000>;
51 resets = <&gcc GMAC_CORE1_RESET>;
52 reset-names = "stmmaceth";
53 clocks = <&gcc GMAC_CORE1_CLK>;
54 clock-names = "stmmaceth";
56 pinctrl-0 = <&mdio0_pins>;
57 pinctrl-names = "default";
59 phy0: ethernet-phy@0 {
61 qca,ar8327-initvals = <
62 0x00004 0x7600000 /* PAD0_MODE */
63 0x00008 0x1000000 /* PAD5_MODE */
64 0x0000c 0x80 /* PAD6_MODE */
65 0x000e4 0xaa545 /* MAC_POWER_SEL */
66 0x000e0 0xc74164de /* SGMII_CTRL */
67 0x0007c 0x4e /* PORT0_STATUS */
68 0x00094 0x4e /* PORT6_STATUS */
69 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
70 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
71 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
72 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
73 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
74 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
75 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
76 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
77 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
78 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
79 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
80 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
81 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
82 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
85 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
86 0x2 0x21 /* VLAN2 Ports 0/5 */
90 phy4: ethernet-phy@4 {
92 qca,ar8327-initvals = <
93 0x000e4 0x6a545 /* MAC_POWER_SEL */
94 0x0000c 0x80 /* PAD6_MODE */
101 compatible = "gpio-keys";
102 pinctrl-0 = <&button_pins>;
103 pinctrl-names = "default";
107 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
108 linux,code = <KEY_RFKILL>;
109 debounce-interval = <60>;
115 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
116 linux,code = <KEY_RESTART>;
117 debounce-interval = <60>;
123 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_WPS_BUTTON>;
125 debounce-interval = <60>;
131 compatible = "gpio-leds";
132 pinctrl-0 = <&led_pins>;
133 pinctrl-names = "default";
135 power_white: power_white {
136 label = "r7800:white:power";
137 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
138 default-state = "keep";
141 power_amber: power_amber {
142 label = "r7800:amber:power";
143 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
147 label = "r7800:white:wan";
148 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
152 label = "r7800:amber:wan";
153 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
157 label = "r7800:white:usb1";
158 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
162 label = "r7800:white:usb2";
163 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
167 label = "r7800:white:esata";
168 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
172 label = "r7800:white:wifi";
173 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
177 label = "r7800:white:wps";
178 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
184 button_pins: button_pins {
186 pins = "gpio6", "gpio54", "gpio65";
188 drive-strength = <2>;
193 i2c4_pins: i2c4_pinmux {
195 pins = "gpio12", "gpio13";
197 drive-strength = <12>;
204 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
205 "gpio24","gpio26", "gpio53", "gpio64";
207 drive-strength = <2>;
212 nand_pins: nand_pins {
214 pins = "gpio34", "gpio35", "gpio36",
217 drive-strength = <10>;
223 drive-strength = <10>;
227 pins = "gpio40", "gpio41", "gpio42",
228 "gpio43", "gpio44", "gpio45",
231 drive-strength = <10>;
236 mdio0_pins: mdio0_pins {
238 pins = "gpio0", "gpio1";
240 drive-strength = <8>;
250 rgmii2_pins: rgmii2_pins {
252 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
253 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
255 drive-strength = <8>;
260 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
267 pins = "gpio18", "gpio19", "gpio21";
273 pins = "gpio18", "gpio19";
274 drive-strength = <10>;
279 drive-strength = <10>;
285 drive-strength = <12>;
289 spi6_pins: spi6_pins {
291 pins = "gpio55", "gpio56", "gpio58";
298 drive-strength = <12>;
303 drive-strength = <14>;
308 drive-strength = <12>;
314 drive-strength = <12>;
319 drive-strength = <10>;
325 usb0_pwr_en_pins: usb0_pwr_en_pins {
329 drive-strength = <12>;
335 usb1_pwr_en_pins: usb1_pwr_en_pins {
337 pins = "gpio16", "gpio68";
339 drive-strength = <12>;
347 qcom,mode = <GSBI_PROT_I2C_UART>;
355 * The i2c device on gsbi4 should not be enabled.
356 * On ipq806x designs gsbi4 i2c is meant for exclusive
357 * RPM usage. Turning this on in kernel manifests as
358 * i2c failure for the RPM.
365 pinctrl-0 = <&nand_pins>;
366 pinctrl-names = "default";
370 compatible = "qcom,nandcs";
372 nand-ecc-strength = <4>;
373 nand-bus-width = <8>;
374 nand-ecc-step-size = <512>;
377 compatible = "fixed-partitions";
378 #address-cells = <1>;
383 reg = <0x0000000 0x0c80000>;
389 reg = <0x0c80000 0x0500000>;
395 reg = <0x1180000 0x0080000>;
401 reg = <0x1200000 0x0140000>;
405 artbak: art@1340000 {
407 reg = <0x1340000 0x0140000>;
413 reg = <0x1480000 0x0400000>;
418 reg = <0x1880000 0x6080000>;
423 reg = <0x7900000 0x0700000>;
434 qcom,phy_mdio_addr = <4>;
435 qcom,poll_required = <0>;
436 qcom,rgmii_delay = <1>;
437 qcom,phy_mii_type = <0>;
438 qcom,emulation = <0>;
442 pinctrl-0 = <&rgmii2_pins>;
443 pinctrl-names = "default";
445 mtd-mac-address = <&art 6>;
457 qcom,phy_mdio_addr = <0>; /* none */
458 qcom,poll_required = <0>; /* no polling */
459 qcom,rgmii_delay = <0>;
460 qcom,phy_mii_type = <1>;
461 qcom,emulation = <0>;
465 mtd-mac-address = <&art 0>;
482 ports-implemented = <0x1>;
489 pinctrl-0 = <&usb0_pwr_en_pins>;
490 pinctrl-names = "default";
496 pinctrl-0 = <&usb1_pwr_en_pins>;
497 pinctrl-names = "default";
504 reg = <0x00000000 0 0 0 0>;
505 #address-cells = <3>;
510 compatible = "pci168c,0046";
511 reg = <0x00010000 0 0 0 0>;
513 mtd-mac-address = <&art 6>;
514 mtd-mac-address-increment = <(1)>;
524 reg = <0x00000000 0 0 0 0>;
525 #address-cells = <3>;
530 compatible = "pci168c,0046";
531 reg = <0x00010000 0 0 0 0>;
533 mtd-mac-address = <&art 6>;
534 mtd-mac-address-increment = <(2)>;