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 mdio0: mdio@37000000 {
45 compatible = "qcom,ipq8064-mdio", "syscon";
46 reg = <0x37000000 0x200000>;
47 resets = <&gcc GMAC_CORE1_RESET>;
48 reset-names = "stmmaceth";
49 clocks = <&gcc GMAC_CORE1_CLK>;
50 clock-names = "stmmaceth";
52 pinctrl-0 = <&mdio0_pins>;
53 pinctrl-names = "default";
55 phy0: ethernet-phy@0 {
57 qca,ar8327-initvals = <
58 0x00004 0x7600000 /* PAD0_MODE */
59 0x00008 0x1000000 /* PAD5_MODE */
60 0x0000c 0x80 /* PAD6_MODE */
61 0x000e4 0x6a545 /* MAC_POWER_SEL */
62 0x000e0 0xc74164de /* SGMII_CTRL */
63 0x0007c 0x4e /* PORT0_STATUS */
64 0x00094 0x4e /* PORT6_STATUS */
68 phy4: ethernet-phy@4 {
76 compatible = "gpio-keys";
77 pinctrl-0 = <&button_pins>;
78 pinctrl-names = "default";
82 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RFKILL>;
88 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_RESTART>;
94 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_WPS_BUTTON>;
100 compatible = "gpio-leds";
101 pinctrl-0 = <&led_pins>;
102 pinctrl-names = "default";
105 label = "r7500:white:usb1";
106 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
110 label = "r7500:white:usb2";
111 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
114 power_amber: power_amber {
115 label = "r7500:amber:power";
116 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
120 label = "r7500:white:wan";
121 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
125 label = "r7500:amber:wan";
126 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
130 label = "r7500:white:wps";
131 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
135 label = "r7500:white:esata";
136 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
139 power_white: power_white {
140 label = "r7500:white:power";
141 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
142 default-state = "keep";
146 label = "r7500:white:wifi";
147 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
153 button_pins: button_pins {
155 pins = "gpio6", "gpio54", "gpio65";
157 drive-strength = <2>;
162 i2c4_pins: i2c4_pinmux {
164 pins = "gpio12", "gpio13";
166 drive-strength = <12>;
173 pins = "gpio7", "gpio8", "gpio9", "gpio22", "gpio23",
174 "gpio24","gpio26", "gpio53", "gpio64";
176 drive-strength = <2>;
181 mdio0_pins: mdio0_pins {
183 pins = "gpio0", "gpio1";
185 drive-strength = <8>;
190 nand_pins: nand_pins {
192 pins = "gpio34", "gpio35", "gpio36",
195 drive-strength = <10>;
202 drive-strength = <10>;
207 pins = "gpio40", "gpio41", "gpio42",
208 "gpio43", "gpio44", "gpio45",
211 drive-strength = <10>;
216 rgmii2_pins: rgmii2_pins {
218 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
219 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
221 drive-strength = <8>;
228 qcom,mode = <GSBI_PROT_I2C_UART>;
234 * The i2c device on gsbi4 should not be enabled.
235 * On ipq806x designs gsbi4 i2c is meant for exclusive
236 * RPM usage. Turning this on in kernel manifests as
237 * i2c failure for the RPM.
250 clocks = <&gcc USB30_1_MASTER_CLK>;
255 clocks = <&gcc USB30_0_MASTER_CLK>;
271 pinctrl-0 = <&nand_pins>;
272 pinctrl-names = "default";
276 compatible = "qcom,nandcs";
278 nand-ecc-strength = <4>;
279 nand-bus-width = <8>;
280 nand-ecc-step-size = <512>;
283 compatible = "fixed-partitions";
284 #address-cells = <1>;
289 reg = <0x0000000 0x0c80000>;
295 reg = <0x0c80000 0x0500000>;
301 reg = <0x1180000 0x0080000>;
307 reg = <0x1200000 0x0140000>;
313 reg = <0x1340000 0x0400000>;
318 reg = <0x1740000 0x1600000>;
323 reg = <0x2d40000 0x0c00000>;
329 reg = <0x3940000 0x46c0000>;
341 pinctrl-0 = <&rgmii2_pins>;
342 pinctrl-names = "default";
344 mtd-mac-address = <&art 6>;
357 mtd-mac-address = <&art 0>;
366 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;
367 compatible = "qcom,tcsr";