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", "qcom,ipq8064";
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
19 reg = <0x41200000 0x300000>;
24 reg = <0x5fe00000 0x200000>;
33 led-boot = &power_white;
34 led-failsafe = &power_white;
35 led-running = &power_white;
36 led-upgrade = &power_amber;
40 linux,stdout-path = "serial0:115200n8";
45 pinctrl-0 = <&mdio0_pins &rgmii2_pins>;
46 pinctrl-names = "default";
48 i2c4_pins: i2c4_pinmux {
50 pins = "gpio12", "gpio13";
52 drive-strength = <12>;
57 nand_pins: nand_pins {
59 pins = "gpio34", "gpio35", "gpio36",
60 "gpio37", "gpio38", "gpio39",
61 "gpio40", "gpio41", "gpio42",
62 "gpio43", "gpio44", "gpio45",
65 drive-strength = <10>;
73 pins = "gpio40", "gpio41", "gpio42",
74 "gpio43", "gpio44", "gpio45",
80 mdio0_pins: mdio0_pins {
82 pins = "gpio0", "gpio1";
94 rgmii2_pins: rgmii2_pins {
96 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
97 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
104 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
111 pins = "gpio18", "gpio19", "gpio21";
113 drive-strength = <10>;
119 drive-strength = <12>;
125 qcom,mode = <GSBI_PROT_I2C_UART>;
131 * The i2c device on gsbi4 should not be enabled.
132 * On ipq806x designs gsbi4 i2c is meant for exclusive
133 * RPM usage. Turning this on in kernel manifests as
134 * i2c failure for the RPM.
138 gsbi5: gsbi@1a200000 {
139 qcom,mode = <GSBI_PROT_SPI>;
144 spi-max-frequency = <50000000>;
145 pinctrl-0 = <&spi_pins>;
146 pinctrl-names = "default";
148 cs-gpios = <&qcom_pinmux 20 0>;
151 compatible = "s25fl512s";
152 #address-cells = <1>;
154 spi-max-frequency = <51200000>;
157 linux,part-probe = "qcom-smem";
167 ports-implemented = <0x1>;
171 phy@100f8800 { /* USB3 port 1 HS phy */
175 phy@100f8830 { /* USB3 port 1 SS phy */
179 phy@110f8800 { /* USB3 port 0 HS phy */
183 phy@110f8830 { /* USB3 port 0 SS phy */
195 pcie0: pci@1b500000 {
197 phy-tx0-term-offset = <7>;
200 pcie1: pci@1b700000 {
202 phy-tx0-term-offset = <7>;
208 pinctrl-0 = <&nand_pins>;
209 pinctrl-names = "default";
211 nand-ecc-strength = <4>;
212 nand-ecc-step-size = <512>;
213 nand-bus-width = <8>;
215 #address-cells = <1>;
220 reg = <0x0000000 0x0c80000>;
226 reg = <0x0c80000 0x0500000>;
232 reg = <0x1180000 0x0080000>;
238 reg = <0x1200000 0x0140000>;
242 artbak: art@1340000 {
244 reg = <0x1340000 0x0140000>;
250 reg = <0x1480000 0x0200000>;
255 reg = <0x1680000 0x1E00000>;
260 reg = <0x3480000 0x4480000>;
266 reg = <0x7900000 0x0700000>;
272 reg = <0x1480000 0x2000000>;
278 compatible = "virtual,mdio-gpio";
279 #address-cells = <1>;
281 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
283 phy0: ethernet-phy@0 {
284 device_type = "ethernet-phy";
286 qca,ar8327-initvals = <
287 0x00004 0x7600000 /* PAD0_MODE */
288 0x00008 0x1000000 /* PAD5_MODE */
289 0x0000c 0x80 /* PAD6_MODE */
290 0x000e4 0xaa545 /* MAC_POWER_SEL */
291 0x000e0 0xc74164de /* SGMII_CTRL */
292 0x0007c 0x4e /* PORT0_STATUS */
293 0x00094 0x4e /* PORT6_STATUS */
294 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
295 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
296 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
297 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
298 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
299 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
300 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
301 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
302 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
303 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
304 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
305 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
306 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
307 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
310 0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
311 0x2 0x21 /* VLAN2 Ports 0/5 */
315 phy4: ethernet-phy@4 {
316 device_type = "ethernet-phy";
318 qca,ar8327-initvals = <
319 0x000e4 0x6a545 /* MAC_POWER_SEL */
320 0x0000c 0x80 /* PAD6_MODE */
325 gmac1: ethernet@37200000 {
329 qcom,phy_mdio_addr = <4>;
330 qcom,poll_required = <0>;
331 qcom,rgmii_delay = <1>;
332 qcom,phy_mii_type = <0>;
333 qcom,emulation = <0>;
337 mtd-mac-address = <&art 6>;
345 gmac2: ethernet@37400000 {
349 qcom,phy_mdio_addr = <0>; /* none */
350 qcom,poll_required = <0>; /* no polling */
351 qcom,rgmii_delay = <0>;
352 qcom,phy_mii_type = <1>;
353 qcom,emulation = <0>;
357 mtd-mac-address = <&art 0>;
366 pinctrl-0 = <&i2c4_pins>;
367 pinctrl-names = "default";
372 compatible = "gpio-keys";
376 gpios = <&qcom_pinmux 6 1>;
377 linux,code = <KEY_RFKILL>;
382 gpios = <&qcom_pinmux 54 1>;
383 linux,code = <KEY_RESTART>;
388 gpios = <&qcom_pinmux 65 1>;
389 linux,code = <KEY_WPS_BUTTON>;
394 compatible = "gpio-leds";
396 power_white: power_white {
397 label = "r7800:white:power";
398 gpios = <&qcom_pinmux 53 0>;
399 default-state = "on";
402 power_amber: power_amber {
403 label = "r7800:amber:power";
404 gpios = <&qcom_pinmux 9 0>;
408 label = "r7800:white:wan";
409 gpios = <&qcom_pinmux 22 0>;
413 label = "r7800:amber:wan";
414 gpios = <&qcom_pinmux 23 0>;
418 label = "r7800:white:usb1";
419 gpios = <&qcom_pinmux 7 0>;
423 label = "r7800:white:usb2";
424 gpios = <&qcom_pinmux 8 0>;
428 label = "r7800:white:esata";
429 gpios = <&qcom_pinmux 26 0>;
433 label = "r7800:white:rfkill";
434 gpios = <&qcom_pinmux 64 0>;
438 label = "r7800:white:wps";
439 gpios = <&qcom_pinmux 24 0>;
443 label = "r7800:white:wifi";
444 gpios = <&qcom_pinmux 67 0>;
449 compatible = "gpio-export";
453 gpio-export,name = "usb0";
454 gpio-export,output = <1>;
455 gpios = <&qcom_pinmux 15 0>;
459 gpio-export,name = "usb1";
460 gpio-export,output = <1>;
461 gpios = <&qcom_pinmux 16 0>;