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";
16 reg = <0x5fe00000 0x200000>;
24 led-boot = &power_white;
25 led-failsafe = &power_amber;
26 led-running = &power_white;
27 led-upgrade = &power_amber;
28 label-mac-device = &gmac2;
32 compatible = "gpio-keys";
33 pinctrl-0 = <&button_pins>;
34 pinctrl-names = "default";
38 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RFKILL>;
40 debounce-interval = <60>;
46 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 debounce-interval = <60>;
54 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
56 debounce-interval = <60>;
62 compatible = "gpio-leds";
63 pinctrl-0 = <&led_pins>;
64 pinctrl-names = "default";
66 power_white: power_white {
67 label = "white:power";
68 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
69 default-state = "keep";
72 power_amber: power_amber {
73 label = "amber:power";
74 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
79 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
84 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
89 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
94 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
98 label = "white:esata";
99 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
103 label = "white:wifi";
104 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
109 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
115 button_pins: button_pins {
117 pins = "gpio6", "gpio54", "gpio65";
119 drive-strength = <2>;
126 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
127 "gpio24","gpio26", "gpio53", "gpio64";
129 drive-strength = <2>;
134 mdio0_pins: mdio0_pins {
141 rgmii2_pins: rgmii2_pins {
143 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
150 pins = "gpio18", "gpio19", "gpio21";
156 pins = "gpio18", "gpio19";
157 drive-strength = <10>;
162 drive-strength = <10>;
168 drive-strength = <12>;
172 spi6_pins: spi6_pins {
174 pins = "gpio55", "gpio56", "gpio58";
181 drive-strength = <12>;
186 drive-strength = <14>;
191 drive-strength = <12>;
197 drive-strength = <12>;
202 drive-strength = <10>;
208 usb0_pwr_en_pins: usb0_pwr_en_pins {
212 drive-strength = <12>;
218 usb1_pwr_en_pins: usb1_pwr_en_pins {
220 pins = "gpio16", "gpio68";
222 drive-strength = <12>;
232 pinctrl-0 = <&nand_pins>;
233 pinctrl-names = "default";
237 compatible = "qcom,nandcs";
239 nand-ecc-strength = <4>;
240 nand-bus-width = <8>;
241 nand-ecc-step-size = <512>;
244 qcom,boot_pages_size = <0x1180000>;
247 compatible = "fixed-partitions";
248 #address-cells = <1>;
253 reg = <0x0000000 0x0c80000>;
259 reg = <0x0c80000 0x0500000>;
265 reg = <0x1180000 0x0080000>;
271 reg = <0x1200000 0x0140000>;
275 artbak: art@1340000 {
277 reg = <0x1340000 0x0140000>;
283 reg = <0x1480000 0x0400000>;
288 reg = <0x1880000 0x6080000>;
293 reg = <0x7900000 0x0700000>;
303 pinctrl-0 = <&mdio0_pins>;
304 pinctrl-names = "default";
306 phy0: ethernet-phy@0 {
308 qca,ar8327-initvals = <
309 0x00004 0x7600000 /* PAD0_MODE */
310 0x00008 0x1000000 /* PAD5_MODE */
311 0x0000c 0x80 /* PAD6_MODE */
312 0x000e4 0xaa545 /* MAC_POWER_SEL */
313 0x000e0 0xc74164de /* SGMII_CTRL */
314 0x0007c 0x4e /* PORT0_STATUS */
315 0x00094 0x4e /* PORT6_STATUS */
316 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
317 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
318 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
319 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
320 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
321 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
322 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
323 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
324 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
325 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
326 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
327 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
328 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
329 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
332 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
333 0x2 0x21 /* VLAN2 Ports 0/5 */
337 phy4: ethernet-phy@4 {
339 qca,ar8327-initvals = <
340 0x000e4 0x6a545 /* MAC_POWER_SEL */
341 0x0000c 0x80 /* PAD6_MODE */
350 qcom,phy_mdio_addr = <4>;
351 qcom,poll_required = <0>;
352 qcom,rgmii_delay = <1>;
353 qcom,phy_mii_type = <0>;
354 qcom,emulation = <0>;
358 pinctrl-0 = <&rgmii2_pins>;
359 pinctrl-names = "default";
361 mtd-mac-address = <&art 6>;
373 qcom,phy_mdio_addr = <0>; /* none */
374 qcom,poll_required = <0>; /* no polling */
375 qcom,rgmii_delay = <0>;
376 qcom,phy_mii_type = <1>;
377 qcom,emulation = <0>;
381 mtd-mac-address = <&art 0>;
404 pinctrl-0 = <&usb0_pwr_en_pins>;
405 pinctrl-names = "default";
411 pinctrl-0 = <&usb1_pwr_en_pins>;
412 pinctrl-names = "default";
419 reg = <0x00000000 0 0 0 0>;
420 #address-cells = <3>;
425 compatible = "pci168c,0046";
426 reg = <0x00010000 0 0 0 0>;
428 mtd-mac-address = <&art 6>;
429 mac-address-increment = <(1)>;
436 max-link-speed = <1>;
439 reg = <0x00000000 0 0 0 0>;
440 #address-cells = <3>;
445 compatible = "pci168c,0046";
446 reg = <0x00010000 0 0 0 0>;
448 mtd-mac-address = <&art 6>;
449 mac-address-increment = <(2)>;