1 #include "qcom-ipq8064-v2.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 stdout-path = "serial0:115200n8";
45 compatible = "gpio-keys";
46 pinctrl-0 = <&button_pins>;
47 pinctrl-names = "default";
51 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RFKILL>;
57 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_RESTART>;
63 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_WPS_BUTTON>;
69 compatible = "gpio-leds";
70 pinctrl-0 = <&led_pins>;
71 pinctrl-names = "default";
74 label = "r7500v2:amber:usb1";
75 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
79 label = "r7500v2:amber:usb3";
80 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
84 label = "r7500v2:amber:status";
85 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
89 label = "r7500v2:white:internet";
90 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
94 label = "r7500v2:white:wan";
95 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
99 label = "r7500v2:white:wps";
100 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
104 label = "r7500v2:white:esata";
105 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
109 label = "r7500v2:white:power";
110 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
111 default-state = "keep";
115 label = "r7500v2:white:wifi";
116 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
126 button_pins: button_pins {
128 pins = "gpio6", "gpio54", "gpio65";
130 drive-strength = <2>;
135 i2c4_pins: i2c4_pinmux {
137 pins = "gpio12", "gpio13";
139 drive-strength = <12>;
146 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
147 "gpio24","gpio26", "gpio53", "gpio64";
149 drive-strength = <2>;
154 mdio0_pins: mdio0_pins {
156 pins = "gpio0", "gpio1";
158 drive-strength = <8>;
163 nand_pins: nand_pins {
165 pins = "gpio34", "gpio35", "gpio36",
168 drive-strength = <10>;
175 drive-strength = <10>;
180 pins = "gpio40", "gpio41", "gpio42",
181 "gpio43", "gpio44", "gpio45",
184 drive-strength = <10>;
189 rgmii2_pins: rgmii2_pins {
191 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
192 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
194 drive-strength = <8>;
199 usb0_pwr_en_pins: usb0_pwr_en_pins {
203 drive-strength = <12>;
209 usb1_pwr_en_pins: usb1_pwr_en_pins {
211 pins = "gpio16", "gpio68";
213 drive-strength = <12>;
221 qcom,mode = <GSBI_PROT_I2C_UART>;
227 * The i2c device on gsbi4 should not be enabled.
228 * On ipq806x designs gsbi4 i2c is meant for exclusive
229 * RPM usage. Turning this on in kernel manifests as
230 * i2c failure for the RPM.
245 pinctrl-0 = <&usb0_pwr_en_pins>;
246 pinctrl-names = "default";
252 pinctrl-0 = <&usb1_pwr_en_pins>;
253 pinctrl-names = "default";
258 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
259 pinctrl-0 = <&pcie0_pins>;
260 pinctrl-names = "default";
265 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
266 pinctrl-0 = <&pcie1_pins>;
267 pinctrl-names = "default";
274 pinctrl-0 = <&nand_pins>;
275 pinctrl-names = "default";
279 compatible = "qcom,nandcs";
281 nand-ecc-strength = <4>;
282 nand-bus-width = <8>;
283 nand-ecc-step-size = <512>;
286 compatible = "fixed-partitions";
287 #address-cells = <1>;
292 reg = <0x0000000 0x0c80000>;
298 reg = <0x0c80000 0x0500000>;
304 reg = <0x1180000 0x0080000>;
310 reg = <0x1200000 0x0140000>;
314 artbak: art@1340000 {
316 reg = <0x1340000 0x0140000>;
322 reg = <0x1480000 0x0400000>;
327 reg = <0x1880000 0x6080000>;
332 reg = <0x7900000 0x0700000>;
342 pinctrl-0 = <&mdio0_pins>;
343 pinctrl-names = "default";
345 phy0: ethernet-phy@0 {
347 qca,ar8327-initvals = <
348 0x00004 0x7600000 /* PAD0_MODE */
349 0x00008 0x1000000 /* PAD5_MODE */
350 0x0000c 0x80 /* PAD6_MODE */
351 0x000e4 0xaa545 /* MAC_POWER_SEL */
352 0x000e0 0xc74164de /* SGMII_CTRL */
353 0x0007c 0x4e /* PORT0_STATUS */
354 0x00094 0x4e /* PORT6_STATUS */
358 phy4: ethernet-phy@4 {
368 pinctrl-0 = <&rgmii2_pins>;
369 pinctrl-names = "default";
371 mtd-mac-address = <&art 6>;
384 mtd-mac-address = <&art 0>;