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";
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
19 reg = <0x41200000 0x300000>;
24 reg = <0x5fe00000 0x200000>;
35 bootargs = "rootfstype=squashfs noinitrd";
36 linux,stdout-path = "serial0:115200n8";
41 pinctrl-0 = <&mdio0_pins &rgmii2_pins>;
42 pinctrl-names = "default";
44 i2c4_pins: i2c4_pinmux {
46 pins = "gpio12", "gpio13";
48 drive-strength = <12>;
53 nand_pins: nand_pins {
55 pins = "gpio34", "gpio35", "gpio36",
56 "gpio37", "gpio38", "gpio39",
57 "gpio40", "gpio41", "gpio42",
58 "gpio43", "gpio44", "gpio45",
61 drive-strength = <10>;
69 pins = "gpio40", "gpio41", "gpio42",
70 "gpio43", "gpio44", "gpio45",
76 mdio0_pins: mdio0_pins {
78 pins = "gpio0", "gpio1";
90 rgmii2_pins: rgmii2_pins {
92 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
93 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
100 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
107 pins = "gpio18", "gpio19", "gpio21";
109 drive-strength = <10>;
115 drive-strength = <12>;
121 qcom,mode = <GSBI_PROT_I2C_UART>;
127 * The i2c device on gsbi4 should not be enabled.
128 * On ipq806x designs gsbi4 i2c is meant for exclusive
129 * RPM usage. Turning this on in kernel manifests as
130 * i2c failure for the RPM.
134 gsbi5: gsbi@1a200000 {
135 qcom,mode = <GSBI_PROT_SPI>;
140 spi-max-frequency = <50000000>;
141 pinctrl-0 = <&spi_pins>;
142 pinctrl-names = "default";
144 cs-gpios = <&qcom_pinmux 20 0>;
147 compatible = "s25fl512s";
148 #address-cells = <1>;
150 spi-max-frequency = <51200000>;
153 linux,part-probe = "qcom-smem";
166 phy@100f8800 { /* USB3 port 1 HS phy */
170 phy@100f8830 { /* USB3 port 1 SS phy */
174 phy@110f8800 { /* USB3 port 0 HS phy */
178 phy@110f8830 { /* USB3 port 0 SS phy */
190 pcie0: pci@1b500000 {
192 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
193 pinctrl-0 = <&pcie0_pins>;
194 pinctrl-names = "default";
197 pcie1: pci@1b700000 {
199 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
200 pinctrl-0 = <&pcie1_pins>;
201 pinctrl-names = "default";
207 pinctrl-0 = <&nand_pins>;
208 pinctrl-names = "default";
210 nand-ecc-strength = <4>;
211 nand-bus-width = <8>;
213 #address-cells = <1>;
218 reg = <0x0000000 0x0c80000>;
224 reg = <0x0c80000 0x0500000>;
230 reg = <0x1180000 0x0080000>;
236 reg = <0x1200000 0x0140000>;
240 artbak: art@1340000 {
242 reg = <0x1340000 0x0140000>;
248 reg = <0x1480000 0x0200000>;
253 reg = <0x1680000 0x1E00000>;
258 reg = <0x3480000 0x4480000>;
264 reg = <0x7900000 0x0700000>;
270 reg = <0x1480000 0x2000000>;
276 compatible = "virtual,mdio-gpio";
277 #address-cells = <1>;
279 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
281 phy0: ethernet-phy@0 {
282 device_type = "ethernet-phy";
284 qca,ar8327-initvals = <
285 0x00004 0x7600000 /* PAD0_MODE */
286 0x00008 0x1000000 /* PAD5_MODE */
287 0x0000c 0x80 /* PAD6_MODE */
288 0x000e4 0xaa545 /* MAC_POWER_SEL */
289 0x000e0 0xc74164de /* SGMII_CTRL */
290 0x0007c 0x4e /* PORT0_STATUS */
291 0x00094 0x4e /* PORT6_STATUS */
292 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
293 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
294 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
295 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
296 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
297 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
298 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
299 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
300 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
301 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
302 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
303 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
304 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
305 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
309 phy4: ethernet-phy@4 {
310 device_type = "ethernet-phy";
312 qca,ar8327-initvals = <
313 0x000e4 0x6a545 /* MAC_POWER_SEL */
314 0x0000c 0x80 /* PAD6_MODE */
319 gmac1: ethernet@37200000 {
323 qcom,phy_mdio_addr = <4>;
324 qcom,poll_required = <0>;
325 qcom,rgmii_delay = <1>;
326 qcom,phy_mii_type = <0>;
327 qcom,emulation = <0>;
331 mtd-mac-address = <&art 6>;
339 gmac2: ethernet@37400000 {
343 qcom,phy_mdio_addr = <0>; /* none */
344 qcom,poll_required = <0>; /* no polling */
345 qcom,rgmii_delay = <0>;
346 qcom,phy_mii_type = <1>;
347 qcom,emulation = <0>;
351 mtd-mac-address = <&art 0>;
360 pinctrl-0 = <&i2c4_pins>;
361 pinctrl-names = "default";
366 compatible = "gpio-keys";
370 gpios = <&qcom_pinmux 6 1>;
371 linux,code = <KEY_WLAN>;
376 gpios = <&qcom_pinmux 54 1>;
377 linux,code = <KEY_RESTART>;
382 gpios = <&qcom_pinmux 65 1>;
383 linux,code = <KEY_WPS_BUTTON>;
388 compatible = "gpio-leds";
391 label = "r7800:amber:usb1";
392 gpios = <&qcom_pinmux 7 0>;
396 label = "r7800:amber:usb3";
397 gpios = <&qcom_pinmux 8 0>;
401 label = "r7800:amber:status";
402 gpios = <&qcom_pinmux 9 0>;
406 label = "r7800:white:internet";
407 gpios = <&qcom_pinmux 22 0>;
411 label = "r7800:white:wan";
412 gpios = <&qcom_pinmux 23 0>;
416 label = "r7800:white:wps";
417 gpios = <&qcom_pinmux 24 0>;
421 label = "r7800:white:esata";
422 gpios = <&qcom_pinmux 26 0>;
426 label = "r7800:white:power";
427 gpios = <&qcom_pinmux 53 0>;
428 default-state = "on";
432 label = "r7800:white:rfkill";
433 gpios = <&qcom_pinmux 64 0>;
437 label = "r7800:white:wifi";
438 gpios = <&qcom_pinmux 67 0>;
443 compatible = "gpio-export";
447 gpio-export,name = "usb0";
448 gpio-export,output = <1>;
449 gpios = <&qcom_pinmux 15 0>;
453 gpio-export,name = "usb1";
454 gpio-export,output = <1>;
455 gpios = <&qcom_pinmux 16 0>;