1 #include "qcom-ipq8064-v2.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>;
25 serial0 = &gsbi4_serial;
28 led-boot = &power_white;
29 led-failsafe = &power_amber;
30 led-running = &power_white;
31 led-upgrade = &power_amber;
35 bootargs = "rootfstype=squashfs noinitrd";
36 stdout-path = "serial0:115200n8";
40 compatible = "gpio-keys";
41 pinctrl-0 = <&button_pins>;
42 pinctrl-names = "default";
46 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RFKILL>;
52 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
58 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
64 compatible = "gpio-leds";
65 pinctrl-0 = <&led_pins>;
66 pinctrl-names = "default";
69 label = "d7800:white:usb1";
70 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
74 label = "d7800:white:usb2";
75 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
78 power_amber: power_amber {
79 label = "d7800:amber:power";
80 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
84 label = "d7800:white:wan";
85 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
89 label = "d7800:amber:wan";
90 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
94 label = "d7800:white:wps";
95 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
99 label = "d7800:white:esata";
100 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
103 power_white: power_white {
104 label = "d7800:white:power";
105 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
106 default-state = "keep";
110 label = "d7800:white:wifi";
111 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
117 button_pins: button_pins {
119 pins = "gpio6", "gpio54", "gpio65";
121 drive-strength = <2>;
128 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
129 "gpio24","gpio26", "gpio53", "gpio64";
131 drive-strength = <2>;
136 usb0_pwr_en_pins: usb0_pwr_en_pins {
140 drive-strength = <12>;
146 usb1_pwr_en_pins: usb1_pwr_en_pins {
148 pins = "gpio16", "gpio68";
150 drive-strength = <12>;
158 qcom,mode = <GSBI_PROT_I2C_UART>;
164 * The i2c device on gsbi4 should not be enabled.
165 * On ipq806x designs gsbi4 i2c is meant for exclusive
166 * RPM usage. Turning this on in kernel manifests as
167 * i2c failure for the RPM.
176 ports-implemented = <0x1>;
183 pinctrl-0 = <&usb0_pwr_en_pins>;
184 pinctrl-names = "default";
190 pinctrl-0 = <&usb1_pwr_en_pins>;
191 pinctrl-names = "default";
196 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
197 pinctrl-0 = <&pcie0_pins>;
198 pinctrl-names = "default";
203 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
204 pinctrl-0 = <&pcie1_pins>;
205 pinctrl-names = "default";
212 pinctrl-0 = <&nand_pins>;
213 pinctrl-names = "default";
215 #address-cells = <1>;
220 compatible = "qcom,nandcs";
222 nand-ecc-strength = <4>;
223 nand-bus-width = <8>;
224 nand-ecc-step-size = <512>;
227 compatible = "fixed-partitions";
228 #address-cells = <1>;
233 reg = <0x0000000 0x0c80000>;
239 reg = <0x0c80000 0x0500000>;
245 reg = <0x1180000 0x0080000>;
251 reg = <0x1200000 0x0140000>;
255 artbak: art@1340000 {
257 reg = <0x1340000 0x0140000>;
263 reg = <0x1480000 0x0400000>;
268 reg = <0x1880000 0x1C00000>;
273 reg = <0x3480000 0x4480000>;
279 reg = <0x7900000 0x0700000>;
289 pinctrl-0 = <&mdio0_pins>;
290 pinctrl-names = "default";
292 phy0: ethernet-phy@0 {
294 qca,ar8327-initvals = <
295 0x00004 0x7600000 /* PAD0_MODE */
296 0x00008 0x1000000 /* PAD5_MODE */
297 0x0000c 0x80 /* PAD6_MODE */
298 0x000e4 0x6a545 /* MAC_POWER_SEL */
299 0x000e0 0xc74164de /* SGMII_CTRL */
300 0x0007c 0x4e /* PORT0_STATUS */
301 0x00094 0x4e /* PORT6_STATUS */
305 phy4: ethernet-phy@4 {
313 phy-handle = <&phy4>;
316 pinctrl-0 = <&rgmii2_pins>;
317 pinctrl-names = "default";
319 mtd-mac-address = <&art 6>;
327 mtd-mac-address = <&art 0>;