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 i2c4_pins: i2c4_pinmux {
37 pins = "gpio12", "gpio13";
42 pcie0_pins: pcie0_pinmux {
45 function = "pcie1_rst";
46 drive-strength = <12>;
51 pcie1_pins: pcie1_pinmux {
54 function = "pcie2_rst";
55 drive-strength = <12>;
60 nand_pins: nand_pins {
62 pins = "gpio34", "gpio35", "gpio36",
63 "gpio37", "gpio38", "gpio39",
64 "gpio40", "gpio41", "gpio42",
65 "gpio43", "gpio44", "gpio45",
68 drive-strength = <10>;
76 pins = "gpio40", "gpio41", "gpio42",
77 "gpio43", "gpio44", "gpio45",
83 mdio0_pins: mdio0_pins {
85 pins = "gpio0", "gpio1";
92 rgmii2_pins: rgmii2_pins {
94 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
95 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
104 qcom,mode = <GSBI_PROT_I2C_UART>;
110 * The i2c device on gsbi4 should not be enabled.
111 * On ipq806x designs gsbi4 i2c is meant for exclusive
112 * RPM usage. Turning this on in kernel manifests as
113 * i2c failure for the RPM.
125 phy@100f8800 { /* USB3 port 1 HS phy */
129 phy@100f8830 { /* USB3 port 1 SS phy */
133 phy@110f8800 { /* USB3 port 0 HS phy */
137 phy@110f8830 { /* USB3 port 0 SS phy */
149 pcie0: pci@1b500000 {
151 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
152 pinctrl-0 = <&pcie0_pins>;
153 pinctrl-names = "default";
156 pcie1: pci@1b700000 {
158 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
159 pinctrl-0 = <&pcie1_pins>;
160 pinctrl-names = "default";
166 pinctrl-0 = <&nand_pins>;
167 pinctrl-names = "default";
169 nand-ecc-strength = <4>;
170 nand-bus-width = <8>;
172 #address-cells = <1>;
177 reg = <0x0000000 0x0c80000>;
183 reg = <0x0c80000 0x0500000>;
189 reg = <0x1180000 0x0080000>;
195 reg = <0x1200000 0x0140000>;
199 artbak: art@1340000 {
201 reg = <0x1340000 0x0140000>;
207 reg = <0x1480000 0x0200000>;
212 reg = <0x1680000 0x1E00000>;
217 reg = <0x3480000 0x4480000>;
223 reg = <0x7900000 0x0700000>;
229 reg = <0x1480000 0x2000000>;
235 compatible = "virtual,mdio-gpio";
236 #address-cells = <1>;
238 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
239 pinctrl-0 = <&mdio0_pins>;
240 pinctrl-names = "default";
242 phy0: ethernet-phy@0 {
243 device_type = "ethernet-phy";
245 qca,ar8327-initvals = <
246 0x00004 0x7600000 /* PAD0_MODE */
247 0x00008 0x1000000 /* PAD5_MODE */
248 0x0000c 0x80 /* PAD6_MODE */
249 0x000e4 0x6a545 /* MAC_POWER_SEL */
250 0x000e0 0xc74164de /* SGMII_CTRL */
251 0x0007c 0x4e /* PORT0_STATUS */
252 0x00094 0x4e /* PORT6_STATUS */
256 phy4: ethernet-phy@4 {
257 device_type = "ethernet-phy";
262 gmac1: ethernet@37200000 {
267 pinctrl-0 = <&rgmii2_pins>;
268 pinctrl-names = "default";
270 mtd-mac-address = <&art 6>;
278 gmac2: ethernet@37400000 {
283 mtd-mac-address = <&art 0>;
293 compatible = "gpio-keys";
297 gpios = <&qcom_pinmux 6 1>;
298 linux,code = <KEY_WLAN>;
303 gpios = <&qcom_pinmux 54 1>;
304 linux,code = <KEY_RESTART>;
309 gpios = <&qcom_pinmux 65 1>;
310 linux,code = <KEY_WPS_BUTTON>;
315 compatible = "gpio-leds";
318 label = "r7800:amber:usb1";
319 gpios = <&qcom_pinmux 7 0>;
323 label = "r7800:amber:usb3";
324 gpios = <&qcom_pinmux 8 0>;
328 label = "r7800:amber:status";
329 gpios = <&qcom_pinmux 9 0>;
333 label = "r7800:white:internet";
334 gpios = <&qcom_pinmux 22 0>;
338 label = "r7800:white:wan";
339 gpios = <&qcom_pinmux 23 0>;
343 label = "r7800:white:wps";
344 gpios = <&qcom_pinmux 24 0>;
348 label = "r7800:white:esata";
349 gpios = <&qcom_pinmux 26 0>;
353 label = "r7800:white:power";
354 gpios = <&qcom_pinmux 53 0>;
355 default-state = "on";
359 label = "r7800:white:rfkill";
360 gpios = <&qcom_pinmux 64 0>;
364 label = "r7800:white:wifi";
365 gpios = <&qcom_pinmux 67 0>;
370 compatible = "gpio-export";
374 gpio-export,name = "usb0";
375 gpio-export,output = <1>;
376 gpios = <&qcom_pinmux 15 0>;
380 gpio-export,name = "usb1";
381 gpio-export,output = <1>;
382 gpios = <&qcom_pinmux 16 0>;