1 #include "qcom-ipq8064-v1.0.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "Netgear Nighthawk X4 R7500";
7 compatible = "netgear,r7500", "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>;
113 qcom,mode = <GSBI_PROT_I2C_UART>;
119 * The i2c device on gsbi4 should not be enabled.
120 * On ipq806x designs gsbi4 i2c is meant for exclusive
121 * RPM usage. Turning this on in kernel manifests as
122 * i2c failure for the RPM.
134 phy@100f8800 { /* USB3 port 1 HS phy */
138 phy@100f8830 { /* USB3 port 1 SS phy */
142 phy@110f8800 { /* USB3 port 0 HS phy */
146 phy@110f8830 { /* USB3 port 0 SS phy */
158 pcie0: pci@1b500000 {
162 pcie1: pci@1b700000 {
169 pinctrl-0 = <&nand_pins>;
170 pinctrl-names = "default";
172 nand-ecc-strength = <4>;
173 nand-bus-width = <8>;
175 #address-cells = <1>;
180 reg = <0x0000000 0x0c80000>;
186 reg = <0x0c80000 0x0500000>;
192 reg = <0x1180000 0x0080000>;
198 reg = <0x1200000 0x0140000>;
204 reg = <0x1340000 0x0200000>;
209 reg = <0x1540000 0x1800000>;
214 reg = <0x2d40000 0x0c00000>;
220 reg = <0x3940000 0x46c0000>;
226 reg = <0x1340000 0x1a00000>;
232 compatible = "virtual,mdio-gpio";
233 #address-cells = <1>;
235 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
236 pinctrl-0 = <&mdio0_pins>;
237 pinctrl-names = "default";
239 phy0: ethernet-phy@0 {
240 device_type = "ethernet-phy";
242 qca,ar8327-initvals = <
243 0x00004 0x7600000 /* PAD0_MODE */
244 0x00008 0x1000000 /* PAD5_MODE */
245 0x0000c 0x80 /* PAD6_MODE */
246 0x000e4 0x6a545 /* MAC_POWER_SEL */
247 0x000e0 0xc74164de /* SGMII_CTRL */
248 0x0007c 0x4e /* PORT0_STATUS */
249 0x00094 0x4e /* PORT6_STATUS */
253 phy4: ethernet-phy@4 {
254 device_type = "ethernet-phy";
259 gmac1: ethernet@37200000 {
264 pinctrl-0 = <&rgmii2_pins>;
265 pinctrl-names = "default";
267 mtd-mac-address = <&art 6>;
275 gmac2: ethernet@37400000 {
280 mtd-mac-address = <&art 0>;
289 pinctrl-0 = <&i2c4_pins>;
290 pinctrl-names = "default";
295 compatible = "gpio-keys";
296 pinctrl-0 = <&button_pins>;
297 pinctrl-names = "default";
301 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
302 linux,code = <KEY_RFKILL>;
307 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
308 linux,code = <KEY_RESTART>;
313 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
314 linux,code = <KEY_WPS_BUTTON>;
319 compatible = "gpio-leds";
320 pinctrl-0 = <&led_pins>;
321 pinctrl-names = "default";
324 label = "r7500:amber:usb1";
325 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
329 label = "r7500:amber:usb3";
330 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
334 label = "r7500:amber:status";
335 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
339 label = "r7500:white:internet";
340 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
344 label = "r7500:white:wan";
345 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
349 label = "r7500:white:wps";
350 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
354 label = "r7500:white:esata";
355 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
359 label = "r7500:white:power";
360 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
361 default-state = "keep";
365 label = "r7500:white:rfkill";
366 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
370 label = "r7500:white:wifi5g";
371 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_HIGH>;