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 stdout-path = "serial0:115200n8";
41 compatible = "gpio-keys";
42 pinctrl-0 = <&button_pins>;
43 pinctrl-names = "default";
47 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RFKILL>;
53 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
59 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
65 compatible = "gpio-leds";
66 pinctrl-0 = <&led_pins>;
67 pinctrl-names = "default";
70 label = "r7500:white:usb1";
71 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
75 label = "r7500:white:usb2";
76 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
79 power_amber: power_amber {
80 label = "r7500:amber:power";
81 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
85 label = "r7500:white:wan";
86 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
90 label = "r7500:amber:wan";
91 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
95 label = "r7500:white:wps";
96 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
100 label = "r7500:white:esata";
101 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
104 power_white: power_white {
105 label = "r7500:white:power";
106 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
107 default-state = "keep";
111 label = "r7500:white:wifi";
112 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
118 button_pins: button_pins {
120 pins = "gpio6", "gpio54", "gpio65";
122 drive-strength = <2>;
127 i2c4_pins: i2c4_pinmux {
129 pins = "gpio12", "gpio13";
131 drive-strength = <12>;
138 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
139 "gpio24","gpio26", "gpio53", "gpio64";
141 drive-strength = <2>;
146 mdio0_pins: mdio0_pins {
148 pins = "gpio0", "gpio1";
150 drive-strength = <8>;
155 nand_pins: nand_pins {
157 pins = "gpio34", "gpio35", "gpio36",
160 drive-strength = <10>;
167 drive-strength = <10>;
172 pins = "gpio40", "gpio41", "gpio42",
173 "gpio43", "gpio44", "gpio45",
176 drive-strength = <10>;
181 rgmii2_pins: rgmii2_pins {
183 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
184 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
186 drive-strength = <8>;
193 qcom,mode = <GSBI_PROT_I2C_UART>;
199 * The i2c device on gsbi4 should not be enabled.
200 * On ipq806x designs gsbi4 i2c is meant for exclusive
201 * RPM usage. Turning this on in kernel manifests as
202 * i2c failure for the RPM.
215 clocks = <&gcc USB30_1_MASTER_CLK>;
220 clocks = <&gcc USB30_0_MASTER_CLK>;
236 pinctrl-0 = <&nand_pins>;
237 pinctrl-names = "default";
241 compatible = "qcom,nandcs";
243 nand-ecc-strength = <4>;
244 nand-bus-width = <8>;
245 nand-ecc-step-size = <512>;
248 compatible = "fixed-partitions";
249 #address-cells = <1>;
254 reg = <0x0000000 0x0c80000>;
260 reg = <0x0c80000 0x0500000>;
266 reg = <0x1180000 0x0080000>;
272 reg = <0x1200000 0x0140000>;
278 reg = <0x1340000 0x0400000>;
283 reg = <0x1740000 0x1600000>;
288 reg = <0x2d40000 0x0c00000>;
294 reg = <0x3940000 0x46c0000>;
304 pinctrl-0 = <&mdio0_pins>;
305 pinctrl-names = "default";
307 phy0: ethernet-phy@0 {
309 qca,ar8327-initvals = <
310 0x00004 0x7600000 /* PAD0_MODE */
311 0x00008 0x1000000 /* PAD5_MODE */
312 0x0000c 0x80 /* PAD6_MODE */
313 0x000e4 0x6a545 /* MAC_POWER_SEL */
314 0x000e0 0xc74164de /* SGMII_CTRL */
315 0x0007c 0x4e /* PORT0_STATUS */
316 0x00094 0x4e /* PORT6_STATUS */
320 phy4: ethernet-phy@4 {
330 pinctrl-0 = <&rgmii2_pins>;
331 pinctrl-names = "default";
333 mtd-mac-address = <&art 6>;
346 mtd-mac-address = <&art 0>;
355 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
356 compatible = "qcom,tcsr";