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";
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",
84 drive-strength = <10>;
91 drive-strength = <10>;
96 pins = "gpio40", "gpio41", "gpio42",
97 "gpio43", "gpio44", "gpio45",
100 drive-strength = <10>;
105 rgmii2_pins: rgmii2_pins {
107 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
108 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
110 drive-strength = <8>;
117 qcom,mode = <GSBI_PROT_I2C_UART>;
123 * The i2c device on gsbi4 should not be enabled.
124 * On ipq806x designs gsbi4 i2c is meant for exclusive
125 * RPM usage. Turning this on in kernel manifests as
126 * i2c failure for the RPM.
138 usb3_0: usb3@110f8800 {
139 clocks = <&gcc USB30_1_MASTER_CLK>;
143 usb3_1: usb3@100f8800 {
144 clocks = <&gcc USB30_0_MASTER_CLK>;
148 pcie0: pci@1b500000 {
152 pcie1: pci@1b700000 {
160 pinctrl-0 = <&nand_pins>;
161 pinctrl-names = "default";
165 compatible = "qcom,nandcs";
167 nand-ecc-strength = <4>;
168 nand-bus-width = <8>;
169 nand-ecc-step-size = <512>;
172 compatible = "fixed-partitions";
173 #address-cells = <1>;
178 reg = <0x0000000 0x0c80000>;
184 reg = <0x0c80000 0x0500000>;
190 reg = <0x1180000 0x0080000>;
196 reg = <0x1200000 0x0140000>;
202 reg = <0x1340000 0x0400000>;
207 reg = <0x1740000 0x1600000>;
212 reg = <0x2d40000 0x0c00000>;
218 reg = <0x3940000 0x46c0000>;
226 compatible = "virtual,mdio-gpio";
227 #address-cells = <1>;
229 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
230 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
231 pinctrl-0 = <&mdio0_pins>;
232 pinctrl-names = "default";
234 phy0: ethernet-phy@0 {
236 qca,ar8327-initvals = <
237 0x00004 0x7600000 /* PAD0_MODE */
238 0x00008 0x1000000 /* PAD5_MODE */
239 0x0000c 0x80 /* PAD6_MODE */
240 0x000e4 0x6a545 /* MAC_POWER_SEL */
241 0x000e0 0xc74164de /* SGMII_CTRL */
242 0x0007c 0x4e /* PORT0_STATUS */
243 0x00094 0x4e /* PORT6_STATUS */
247 phy4: ethernet-phy@4 {
252 gmac1: ethernet@37200000 {
257 pinctrl-0 = <&rgmii2_pins>;
258 pinctrl-names = "default";
260 mtd-mac-address = <&art 6>;
268 gmac2: ethernet@37400000 {
273 mtd-mac-address = <&art 0>;
283 compatible = "gpio-keys";
284 pinctrl-0 = <&button_pins>;
285 pinctrl-names = "default";
289 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
290 linux,code = <KEY_RFKILL>;
295 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
296 linux,code = <KEY_RESTART>;
301 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
302 linux,code = <KEY_WPS_BUTTON>;
307 compatible = "gpio-leds";
308 pinctrl-0 = <&led_pins>;
309 pinctrl-names = "default";
312 label = "r7500:white:usb1";
313 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
317 label = "r7500:white:usb2";
318 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
321 power_amber: power_amber {
322 label = "r7500:amber:power";
323 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
327 label = "r7500:white:wan";
328 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
332 label = "r7500:amber:wan";
333 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
337 label = "r7500:white:wps";
338 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
342 label = "r7500:white:esata";
343 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
346 power_white: power_white {
347 label = "r7500:white:power";
348 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
349 default-state = "keep";
353 label = "r7500:white:wifi";
354 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
360 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
361 compatible = "qcom,tcsr";