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 */
311 phy4: ethernet-phy@4 {
312 device_type = "ethernet-phy";
314 qca,ar8327-initvals = <
315 0x000e4 0x6a545 /* MAC_POWER_SEL */
316 0x0000c 0x80 /* PAD6_MODE */
321 gmac1: ethernet@37200000 {
325 qcom,phy_mdio_addr = <4>;
326 qcom,poll_required = <0>;
327 qcom,rgmii_delay = <1>;
328 qcom,phy_mii_type = <0>;
329 qcom,emulation = <0>;
333 mtd-mac-address = <&art 6>;
341 gmac2: ethernet@37400000 {
345 qcom,phy_mdio_addr = <0>; /* none */
346 qcom,poll_required = <0>; /* no polling */
347 qcom,rgmii_delay = <0>;
348 qcom,phy_mii_type = <1>;
349 qcom,emulation = <0>;
353 mtd-mac-address = <&art 0>;
362 pinctrl-0 = <&i2c4_pins>;
363 pinctrl-names = "default";
368 compatible = "gpio-keys";
372 gpios = <&qcom_pinmux 6 1>;
373 linux,code = <KEY_RFKILL>;
378 gpios = <&qcom_pinmux 54 1>;
379 linux,code = <KEY_RESTART>;
384 gpios = <&qcom_pinmux 65 1>;
385 linux,code = <KEY_WPS_BUTTON>;
390 compatible = "gpio-leds";
392 power_white: power_white {
393 label = "r7800:white:power";
394 gpios = <&qcom_pinmux 53 0>;
395 default-state = "on";
398 power_amber: power_amber {
399 label = "r7800:amber:power";
400 gpios = <&qcom_pinmux 9 0>;
404 label = "r7800:white:wan";
405 gpios = <&qcom_pinmux 22 0>;
409 label = "r7800:amber:wan";
410 gpios = <&qcom_pinmux 23 0>;
414 label = "r7800:white:usb1";
415 gpios = <&qcom_pinmux 7 0>;
419 label = "r7800:white:usb2";
420 gpios = <&qcom_pinmux 8 0>;
424 label = "r7800:white:esata";
425 gpios = <&qcom_pinmux 26 0>;
429 label = "r7800:white:rfkill";
430 gpios = <&qcom_pinmux 64 0>;
434 label = "r7800:white:wps";
435 gpios = <&qcom_pinmux 24 0>;
439 label = "r7800:white:wifi";
440 gpios = <&qcom_pinmux 67 0>;
445 compatible = "gpio-export";
449 gpio-export,name = "usb0";
450 gpio-export,output = <1>;
451 gpios = <&qcom_pinmux 15 0>;
455 gpio-export,name = "usb1";
456 gpio-export,output = <1>;
457 gpios = <&qcom_pinmux 16 0>;