1 #include "qcom-ipq8064-v1.0.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "Netgear Nighthawk X4 D7800";
7 compatible = "netgear,d7800", "qcom,ipq8064";
10 reg = <0x42000000 0xe000000>;
11 device_type = "memory";
19 reg = <0x41200000 0x300000>;
29 led-failsafe = &power;
35 bootargs = "rootfstype=squashfs noinitrd";
36 linux,stdout-path = "serial0:115200n8";
41 button_pins: button_pins {
43 pins = "gpio6", "gpio54", "gpio65";
50 i2c4_pins: i2c4_pinmux {
52 pins = "gpio12", "gpio13";
54 drive-strength = <12>;
61 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
62 "gpio24","gpio26", "gpio53", "gpio64", "gpio67";
69 mdio0_pins: mdio0_pins {
71 pins = "gpio0", "gpio1";
78 nand_pins: nand_pins {
80 pins = "gpio34", "gpio35", "gpio36",
81 "gpio37", "gpio38", "gpio39",
82 "gpio40", "gpio41", "gpio42",
83 "gpio43", "gpio44", "gpio45",
86 drive-strength = <10>;
94 pins = "gpio40", "gpio41", "gpio42",
95 "gpio43", "gpio44", "gpio45",
101 rgmii2_pins: rgmii2_pins {
103 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
104 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
106 drive-strength = <8>;
111 usb0_pwr_en_pins: usb0_pwr_en_pins {
115 drive-strength = <12>;
121 usb1_pwr_en_pins: usb1_pwr_en_pins {
123 pins = "gpio16", "gpio68";
125 drive-strength = <12>;
133 qcom,mode = <GSBI_PROT_I2C_UART>;
139 * The i2c device on gsbi4 should not be enabled.
140 * On ipq806x designs gsbi4 i2c is meant for exclusive
141 * RPM usage. Turning this on in kernel manifests as
142 * i2c failure for the RPM.
154 phy@100f8800 { /* USB3 port 1 HS phy */
158 phy@100f8830 { /* USB3 port 1 SS phy */
162 phy@110f8800 { /* USB3 port 0 HS phy */
166 phy@110f8830 { /* USB3 port 0 SS phy */
173 pinctrl-0 = <&usb0_pwr_en_pins>;
174 pinctrl-names = "default";
180 pinctrl-0 = <&usb1_pwr_en_pins>;
181 pinctrl-names = "default";
184 pcie0: pci@1b500000 {
186 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
187 pinctrl-0 = <&pcie0_pins>;
188 pinctrl-names = "default";
191 pcie1: pci@1b700000 {
193 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
194 pinctrl-0 = <&pcie1_pins>;
195 pinctrl-names = "default";
201 pinctrl-0 = <&nand_pins>;
202 pinctrl-names = "default";
204 nand-ecc-strength = <4>;
205 nand-bus-width = <8>;
207 #address-cells = <1>;
212 reg = <0x0000000 0x0c80000>;
218 reg = <0x0c80000 0x0500000>;
224 reg = <0x1180000 0x0080000>;
230 reg = <0x1200000 0x0140000>;
234 artbak: art@1340000 {
236 reg = <0x1340000 0x0140000>;
242 reg = <0x1480000 0x0200000>;
247 reg = <0x1680000 0x1E00000>;
252 reg = <0x3480000 0x4480000>;
258 reg = <0x7900000 0x0700000>;
264 reg = <0x1480000 0x2000000>;
269 compatible = "virtual,mdio-gpio";
270 #address-cells = <1>;
272 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
273 pinctrl-0 = <&mdio0_pins>;
274 pinctrl-names = "default";
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 0x6a545 /* MAC_POWER_SEL */
284 0x000e0 0xc74164de /* SGMII_CTRL */
285 0x0007c 0x4e /* PORT0_STATUS */
286 0x00094 0x4e /* PORT6_STATUS */
290 phy4: ethernet-phy@4 {
291 device_type = "ethernet-phy";
296 gmac1: ethernet@37200000 {
299 phy-handle = <&phy4>;
302 pinctrl-0 = <&rgmii2_pins>;
303 pinctrl-names = "default";
305 mtd-mac-address = <&art 6>;
308 gmac2: ethernet@37400000 {
313 mtd-mac-address = <&art 0>;
322 pinctrl-0 = <&i2c4_pins>;
323 pinctrl-names = "default";
328 compatible = "gpio-keys";
329 pinctrl-0 = <&button_pins>;
330 pinctrl-names = "default";
334 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
335 linux,code = <KEY_RFKILL>;
340 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
341 linux,code = <KEY_RESTART>;
346 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
347 linux,code = <KEY_WPS_BUTTON>;
352 compatible = "gpio-leds";
353 pinctrl-0 = <&led_pins>;
354 pinctrl-names = "default";
357 label = "d7800:amber:usb1";
358 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
362 label = "d7800:amber:usb3";
363 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
367 label = "d7800:amber:status";
368 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
372 label = "d7800:white:internet";
373 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
377 label = "d7800:white:wan";
378 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
382 label = "d7800:white:wps";
383 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
387 label = "d7800:white:esata";
388 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
392 label = "d7800:white:power";
393 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
394 default-state = "keep";
398 label = "d7800:white:rfkill";
399 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
403 label = "d7800:white:wifi5g";
404 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_HIGH>;