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";
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";
69 mdio0_pins: mdio0_pins {
71 pins = "gpio0", "gpio1";
78 nand_pins: nand_pins {
80 pins = "gpio34", "gpio35", "gpio36",
83 drive-strength = <10>;
90 drive-strength = <10>;
95 pins = "gpio40", "gpio41", "gpio42",
96 "gpio43", "gpio44", "gpio45",
99 drive-strength = <10>;
104 rgmii2_pins: rgmii2_pins {
106 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
107 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
109 drive-strength = <8>;
114 usb0_pwr_en_pins: usb0_pwr_en_pins {
118 drive-strength = <12>;
124 usb1_pwr_en_pins: usb1_pwr_en_pins {
126 pins = "gpio16", "gpio68";
128 drive-strength = <12>;
136 qcom,mode = <GSBI_PROT_I2C_UART>;
142 * The i2c device on gsbi4 should not be enabled.
143 * On ipq806x designs gsbi4 i2c is meant for exclusive
144 * RPM usage. Turning this on in kernel manifests as
145 * i2c failure for the RPM.
154 ports-implemented = <0x1>;
158 usb3_0: usb3@110f8800 {
161 pinctrl-0 = <&usb0_pwr_en_pins>;
162 pinctrl-names = "default";
165 usb3_1: usb3@100f8800 {
168 pinctrl-0 = <&usb1_pwr_en_pins>;
169 pinctrl-names = "default";
172 pcie0: pci@1b500000 {
174 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
175 pinctrl-0 = <&pcie0_pins>;
176 pinctrl-names = "default";
179 pcie1: pci@1b700000 {
181 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
182 pinctrl-0 = <&pcie1_pins>;
183 pinctrl-names = "default";
187 nand-controller@1ac00000 {
190 pinctrl-0 = <&nand_pins>;
191 pinctrl-names = "default";
193 #address-cells = <1>;
198 compatible = "qcom,nandcs";
200 nand-ecc-strength = <4>;
201 nand-bus-width = <8>;
202 nand-ecc-step-size = <512>;
205 compatible = "fixed-partitions";
206 #address-cells = <1>;
211 reg = <0x0000000 0x0c80000>;
217 reg = <0x0c80000 0x0500000>;
223 reg = <0x1180000 0x0080000>;
229 reg = <0x1200000 0x0140000>;
233 artbak: art@1340000 {
235 reg = <0x1340000 0x0140000>;
241 reg = <0x1480000 0x0400000>;
246 reg = <0x1880000 0x1C00000>;
251 reg = <0x3480000 0x4480000>;
257 reg = <0x7900000 0x0700000>;
264 mdio0: mdio@37000000 {
265 #address-cells = <1>;
268 compatible = "qcom,ipq8064-mdio", "syscon";
269 reg = <0x37000000 0x200000>;
270 resets = <&gcc GMAC_CORE1_RESET>;
271 reset-names = "stmmaceth";
272 clocks = <&gcc GMAC_CORE1_CLK>;
273 clock-names = "stmmaceth";
275 pinctrl-0 = <&mdio0_pins>;
276 pinctrl-names = "default";
278 phy0: ethernet-phy@0 {
280 qca,ar8327-initvals = <
281 0x00004 0x7600000 /* PAD0_MODE */
282 0x00008 0x1000000 /* PAD5_MODE */
283 0x0000c 0x80 /* PAD6_MODE */
284 0x000e4 0x6a545 /* MAC_POWER_SEL */
285 0x000e0 0xc74164de /* SGMII_CTRL */
286 0x0007c 0x4e /* PORT0_STATUS */
287 0x00094 0x4e /* PORT6_STATUS */
291 phy4: ethernet-phy@4 {
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>;
323 compatible = "gpio-keys";
324 pinctrl-0 = <&button_pins>;
325 pinctrl-names = "default";
329 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
330 linux,code = <KEY_RFKILL>;
335 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
336 linux,code = <KEY_RESTART>;
341 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
342 linux,code = <KEY_WPS_BUTTON>;
347 compatible = "gpio-leds";
348 pinctrl-0 = <&led_pins>;
349 pinctrl-names = "default";
352 label = "d7800:white:usb1";
353 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
357 label = "d7800:white:usb2";
358 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
361 power_amber: power_amber {
362 label = "d7800:amber:power";
363 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
367 label = "d7800:white:wan";
368 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
372 label = "d7800:amber:wan";
373 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
377 label = "d7800:white:wps";
378 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
382 label = "d7800:white:esata";
383 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
386 power_white: power_white {
387 label = "d7800:white:power";
388 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
389 default-state = "keep";
393 label = "d7800:white:wifi";
394 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;