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>;
30 bootargs = "rootfstype=squashfs noinitrd";
31 linux,stdout-path = "serial0:115200n8";
36 pinctrl-0 = <&mdio0_pins &rgmii2_pins>;
37 pinctrl-names = "default";
39 i2c4_pins: i2c4_pinmux {
41 pins = "gpio12", "gpio13";
43 drive-strength = <12>;
48 nand_pins: nand_pins {
50 pins = "gpio34", "gpio35", "gpio36",
51 "gpio37", "gpio38", "gpio39",
52 "gpio40", "gpio41", "gpio42",
53 "gpio43", "gpio44", "gpio45",
56 drive-strength = <10>;
64 pins = "gpio40", "gpio41", "gpio42",
65 "gpio43", "gpio44", "gpio45",
71 mdio0_pins: mdio0_pins {
73 pins = "gpio0", "gpio1";
85 rgmii2_pins: rgmii2_pins {
87 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
88 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
95 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32" ;
102 pins = "gpio18", "gpio19", "gpio21";
104 drive-strength = <10>;
110 drive-strength = <12>;
116 qcom,mode = <GSBI_PROT_I2C_UART>;
122 * The i2c device on gsbi4 should not be enabled.
123 * On ipq806x designs gsbi4 i2c is meant for exclusive
124 * RPM usage. Turning this on in kernel manifests as
125 * i2c failure for the RPM.
129 gsbi5: gsbi@1a200000 {
130 qcom,mode = <GSBI_PROT_SPI>;
135 spi-max-frequency = <50000000>;
136 pinctrl-0 = <&spi_pins>;
137 pinctrl-names = "default";
139 cs-gpios = <&qcom_pinmux 20 0>;
142 compatible = "s25fl512s";
143 #address-cells = <1>;
145 spi-max-frequency = <51200000>;
148 linux,part-probe = "qcom-smem";
161 phy@100f8800 { /* USB3 port 1 HS phy */
165 phy@100f8830 { /* USB3 port 1 SS phy */
169 phy@110f8800 { /* USB3 port 0 HS phy */
173 phy@110f8830 { /* USB3 port 0 SS phy */
185 pcie0: pci@1b500000 {
187 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
188 pinctrl-0 = <&pcie0_pins>;
189 pinctrl-names = "default";
192 pcie1: pci@1b700000 {
194 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
195 pinctrl-0 = <&pcie1_pins>;
196 pinctrl-names = "default";
202 pinctrl-0 = <&nand_pins>;
203 pinctrl-names = "default";
205 nand-ecc-strength = <4>;
206 nand-bus-width = <8>;
208 #address-cells = <1>;
213 reg = <0x0000000 0x0c80000>;
219 reg = <0x0c80000 0x0500000>;
225 reg = <0x1180000 0x0080000>;
231 reg = <0x1200000 0x0140000>;
235 artbak: art@1340000 {
237 reg = <0x1340000 0x0140000>;
243 reg = <0x1480000 0x0200000>;
248 reg = <0x1680000 0x1E00000>;
253 reg = <0x3480000 0x4480000>;
259 reg = <0x7900000 0x0700000>;
265 reg = <0x1480000 0x2000000>;
271 compatible = "virtual,mdio-gpio";
272 #address-cells = <1>;
274 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
276 phy0: ethernet-phy@0 {
277 device_type = "ethernet-phy";
279 qca,ar8327-initvals = <
280 0x00004 0x7600000 /* PAD0_MODE */
281 0x00008 0x1000000 /* PAD5_MODE */
282 0x0000c 0x80 /* PAD6_MODE */
283 0x000e4 0xaa545 /* MAC_POWER_SEL */
284 0x000e0 0xc74164de /* SGMII_CTRL */
285 0x0007c 0x4e /* PORT0_STATUS */
286 0x00094 0x4e /* PORT6_STATUS */
287 0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
288 0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
289 0x00978 0x19008643 /* QM_PORT1_CTRL0 */
290 0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
291 0x00980 0x19008643 /* QM_PORT2_CTRL0 */
292 0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
293 0x00988 0x19008643 /* QM_PORT3_CTRL0 */
294 0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
295 0x00990 0x19008643 /* QM_PORT4_CTRL0 */
296 0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
297 0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
298 0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
299 0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
300 0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
304 phy4: ethernet-phy@4 {
305 device_type = "ethernet-phy";
307 qca,ar8327-initvals = <
308 0x000e4 0x6a545 /* MAC_POWER_SEL */
309 0x0000c 0x80 /* PAD6_MODE */
314 gmac1: ethernet@37200000 {
318 qcom,phy_mdio_addr = <4>;
319 qcom,poll_required = <0>;
320 qcom,rgmii_delay = <1>;
321 qcom,phy_mii_type = <0>;
322 qcom,emulation = <0>;
326 mtd-mac-address = <&art 6>;
334 gmac2: ethernet@37400000 {
338 qcom,phy_mdio_addr = <0>; /* none */
339 qcom,poll_required = <0>; /* no polling */
340 qcom,rgmii_delay = <0>;
341 qcom,phy_mii_type = <1>;
342 qcom,emulation = <0>;
346 mtd-mac-address = <&art 0>;
355 pinctrl-0 = <&i2c4_pins>;
356 pinctrl-names = "default";
361 compatible = "gpio-keys";
365 gpios = <&qcom_pinmux 6 1>;
366 linux,code = <KEY_WLAN>;
371 gpios = <&qcom_pinmux 54 1>;
372 linux,code = <KEY_RESTART>;
377 gpios = <&qcom_pinmux 65 1>;
378 linux,code = <KEY_WPS_BUTTON>;
383 compatible = "gpio-leds";
386 label = "r7800:amber:usb1";
387 gpios = <&qcom_pinmux 7 0>;
391 label = "r7800:amber:usb3";
392 gpios = <&qcom_pinmux 8 0>;
396 label = "r7800:amber:status";
397 gpios = <&qcom_pinmux 9 0>;
401 label = "r7800:white:internet";
402 gpios = <&qcom_pinmux 22 0>;
406 label = "r7800:white:wan";
407 gpios = <&qcom_pinmux 23 0>;
411 label = "r7800:white:wps";
412 gpios = <&qcom_pinmux 24 0>;
416 label = "r7800:white:esata";
417 gpios = <&qcom_pinmux 26 0>;
421 label = "r7800:white:power";
422 gpios = <&qcom_pinmux 53 0>;
423 default-state = "on";
427 label = "r7800:white:rfkill";
428 gpios = <&qcom_pinmux 64 0>;
432 label = "r7800:white:wifi";
433 gpios = <&qcom_pinmux 67 0>;
438 compatible = "gpio-export";
442 gpio-export,name = "usb0";
443 gpio-export,output = <1>;
444 gpios = <&qcom_pinmux 15 0>;
448 gpio-export,name = "usb1";
449 gpio-export,output = <1>;
450 gpios = <&qcom_pinmux 16 0>;