1 #include "qcom-ipq8064-v1.0.dtsi"
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/soc/qcom,tcsr.h>
7 model = "Netgear Nighthawk X4 R7500";
8 compatible = "netgear,r7500", "qcom,ipq8064";
11 reg = <0x42000000 0xe000000>;
12 device_type = "memory";
20 reg = <0x41200000 0x300000>;
26 serial0 = &gsbi4_serial;
29 led-boot = &power_white;
30 led-failsafe = &power_amber;
31 led-running = &power_white;
32 led-upgrade = &power_amber;
36 bootargs = "rootfstype=squashfs noinitrd";
37 linux,stdout-path = "serial0:115200n8";
42 button_pins: button_pins {
44 pins = "gpio6", "gpio54", "gpio65";
51 i2c4_pins: i2c4_pinmux {
53 pins = "gpio12", "gpio13";
55 drive-strength = <12>;
62 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
63 "gpio24","gpio26", "gpio53", "gpio64";
70 mdio0_pins: mdio0_pins {
72 pins = "gpio0", "gpio1";
79 nand_pins: nand_pins {
81 pins = "gpio34", "gpio35", "gpio36",
82 "gpio37", "gpio38", "gpio39",
83 "gpio40", "gpio41", "gpio42",
84 "gpio43", "gpio44", "gpio45",
87 drive-strength = <10>;
95 pins = "gpio40", "gpio41", "gpio42",
96 "gpio43", "gpio44", "gpio45",
102 rgmii2_pins: rgmii2_pins {
104 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
105 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
107 drive-strength = <8>;
114 qcom,mode = <GSBI_PROT_I2C_UART>;
120 * The i2c device on gsbi4 should not be enabled.
121 * On ipq806x designs gsbi4 i2c is meant for exclusive
122 * RPM usage. Turning this on in kernel manifests as
123 * i2c failure for the RPM.
135 phy@100f8800 { /* USB3 port 1 HS phy */
139 phy@100f8830 { /* USB3 port 1 SS phy */
143 phy@110f8800 { /* USB3 port 0 HS phy */
147 phy@110f8830 { /* USB3 port 0 SS phy */
159 pcie0: pci@1b500000 {
163 pcie1: pci@1b700000 {
170 pinctrl-0 = <&nand_pins>;
171 pinctrl-names = "default";
175 compatible = "qcom,nandcs";
177 nand-ecc-strength = <4>;
178 nand-bus-width = <8>;
179 nand-ecc-step-size = <512>;
182 compatible = "fixed-partitions";
183 #address-cells = <1>;
188 reg = <0x0000000 0x0c80000>;
194 reg = <0x0c80000 0x0500000>;
200 reg = <0x1180000 0x0080000>;
206 reg = <0x1200000 0x0140000>;
212 reg = <0x1340000 0x0200000>;
217 reg = <0x1540000 0x1800000>;
222 reg = <0x2d40000 0x0c00000>;
228 reg = <0x3940000 0x46c0000>;
234 reg = <0x1340000 0x1a00000>;
241 compatible = "virtual,mdio-gpio";
242 #address-cells = <1>;
244 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
245 pinctrl-0 = <&mdio0_pins>;
246 pinctrl-names = "default";
248 phy0: ethernet-phy@0 {
249 device_type = "ethernet-phy";
251 qca,ar8327-initvals = <
252 0x00004 0x7600000 /* PAD0_MODE */
253 0x00008 0x1000000 /* PAD5_MODE */
254 0x0000c 0x80 /* PAD6_MODE */
255 0x000e4 0x6a545 /* MAC_POWER_SEL */
256 0x000e0 0xc74164de /* SGMII_CTRL */
257 0x0007c 0x4e /* PORT0_STATUS */
258 0x00094 0x4e /* PORT6_STATUS */
262 phy4: ethernet-phy@4 {
263 device_type = "ethernet-phy";
268 gmac1: ethernet@37200000 {
273 pinctrl-0 = <&rgmii2_pins>;
274 pinctrl-names = "default";
276 mtd-mac-address = <&art 6>;
284 gmac2: ethernet@37400000 {
289 mtd-mac-address = <&art 0>;
298 pinctrl-0 = <&i2c4_pins>;
299 pinctrl-names = "default";
304 compatible = "gpio-keys";
305 pinctrl-0 = <&button_pins>;
306 pinctrl-names = "default";
310 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
311 linux,code = <KEY_RFKILL>;
316 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
317 linux,code = <KEY_RESTART>;
322 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
323 linux,code = <KEY_WPS_BUTTON>;
328 compatible = "gpio-leds";
329 pinctrl-0 = <&led_pins>;
330 pinctrl-names = "default";
333 label = "r7500:white:usb1";
334 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
338 label = "r7500:white:usb2";
339 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
342 power_amber: power_amber {
343 label = "r7500:amber:power";
344 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
348 label = "r7500:white:wan";
349 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
353 label = "r7500:amber:wan";
354 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
358 label = "r7500:white:wps";
359 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
363 label = "r7500:white:esata";
364 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
367 power_white: power_white {
368 label = "r7500:white:power";
369 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
370 default-state = "keep";
374 label = "r7500:white:wifi";
375 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
381 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
382 compatible = "qcom,tcsr";