1 #include "qcom-ipq8064-v1.0.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "Netgear Nighthawk X4 R7500v2";
7 compatible = "netgear,r7500v2", "qcom,ipq8064";
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
19 reg = <0x41200000 0x300000>;
24 reg = <0x5fe00000 0x200000>;
30 serial0 = &gsbi4_serial;
34 led-failsafe = &power;
40 bootargs = "rootfstype=squashfs noinitrd";
41 linux,stdout-path = "serial0:115200n8";
46 button_pins: button_pins {
48 pins = "gpio6", "gpio54", "gpio65";
55 i2c4_pins: i2c4_pinmux {
57 pins = "gpio12", "gpio13";
59 drive-strength = <12>;
66 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
67 "gpio24","gpio26", "gpio53", "gpio64";
74 mdio0_pins: mdio0_pins {
76 pins = "gpio0", "gpio1";
83 nand_pins: nand_pins {
85 pins = "gpio34", "gpio35", "gpio36",
86 "gpio37", "gpio38", "gpio39",
87 "gpio40", "gpio41", "gpio42",
88 "gpio43", "gpio44", "gpio45",
91 drive-strength = <10>;
99 pins = "gpio40", "gpio41", "gpio42",
100 "gpio43", "gpio44", "gpio45",
106 rgmii2_pins: rgmii2_pins {
108 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
109 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
111 drive-strength = <8>;
116 usb0_pwr_en_pins: usb0_pwr_en_pins {
120 drive-strength = <12>;
126 usb1_pwr_en_pins: usb1_pwr_en_pins {
128 pins = "gpio16", "gpio68";
130 drive-strength = <12>;
138 qcom,mode = <GSBI_PROT_I2C_UART>;
144 * The i2c device on gsbi4 should not be enabled.
145 * On ipq806x designs gsbi4 i2c is meant for exclusive
146 * RPM usage. Turning this on in kernel manifests as
147 * i2c failure for the RPM.
159 phy@100f8800 { /* USB3 port 1 HS phy */
163 phy@100f8830 { /* USB3 port 1 SS phy */
167 phy@110f8800 { /* USB3 port 0 HS phy */
171 phy@110f8830 { /* USB3 port 0 SS phy */
178 pinctrl-0 = <&usb0_pwr_en_pins>;
179 pinctrl-names = "default";
185 pinctrl-0 = <&usb1_pwr_en_pins>;
186 pinctrl-names = "default";
189 pcie0: pci@1b500000 {
191 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
192 pinctrl-0 = <&pcie0_pins>;
193 pinctrl-names = "default";
196 pcie1: pci@1b700000 {
198 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
199 pinctrl-0 = <&pcie1_pins>;
200 pinctrl-names = "default";
206 pinctrl-0 = <&nand_pins>;
207 pinctrl-names = "default";
211 compatible = "qcom,nandcs";
213 nand-ecc-strength = <4>;
214 nand-bus-width = <8>;
215 nand-ecc-step-size = <512>;
218 compatible = "fixed-partitions";
219 #address-cells = <1>;
224 reg = <0x0000000 0x0c80000>;
230 reg = <0x0c80000 0x0500000>;
236 reg = <0x1180000 0x0080000>;
242 reg = <0x1200000 0x0140000>;
246 artbak: art@1340000 {
248 reg = <0x1340000 0x0140000>;
254 reg = <0x1480000 0x0200000>;
259 reg = <0x1680000 0x1E00000>;
264 reg = <0x3480000 0x4480000>;
270 reg = <0x7900000 0x0700000>;
276 reg = <0x1480000 0x2000000>;
283 compatible = "virtual,mdio-gpio";
284 #address-cells = <1>;
286 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
287 pinctrl-0 = <&mdio0_pins>;
288 pinctrl-names = "default";
290 phy0: ethernet-phy@0 {
291 device_type = "ethernet-phy";
293 qca,ar8327-initvals = <
294 0x00004 0x7600000 /* PAD0_MODE */
295 0x00008 0x1000000 /* PAD5_MODE */
296 0x0000c 0x80 /* PAD6_MODE */
297 0x000e4 0xaa545 /* MAC_POWER_SEL */
298 0x000e0 0xc74164de /* SGMII_CTRL */
299 0x0007c 0x4e /* PORT0_STATUS */
300 0x00094 0x4e /* PORT6_STATUS */
304 phy4: ethernet-phy@4 {
305 device_type = "ethernet-phy";
310 gmac1: ethernet@37200000 {
315 pinctrl-0 = <&rgmii2_pins>;
316 pinctrl-names = "default";
318 mtd-mac-address = <&art 6>;
326 gmac2: ethernet@37400000 {
331 mtd-mac-address = <&art 0>;
340 pinctrl-0 = <&i2c4_pins>;
341 pinctrl-names = "default";
346 compatible = "gpio-keys";
347 pinctrl-0 = <&button_pins>;
348 pinctrl-names = "default";
352 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
353 linux,code = <KEY_RFKILL>;
358 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
359 linux,code = <KEY_RESTART>;
364 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
365 linux,code = <KEY_WPS_BUTTON>;
370 compatible = "gpio-leds";
371 pinctrl-0 = <&led_pins>;
372 pinctrl-names = "default";
375 label = "r7500v2:amber:usb1";
376 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
380 label = "r7500v2:amber:usb3";
381 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
385 label = "r7500v2:amber:status";
386 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
390 label = "r7500v2:white:internet";
391 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
395 label = "r7500v2:white:wan";
396 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
400 label = "r7500v2:white:wps";
401 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
405 label = "r7500v2:white:esata";
406 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
410 label = "r7500v2:white:power";
411 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
412 default-state = "keep";
416 label = "r7500v2:white:wifi";
417 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;