1 From 7e77aa188a7a7c4391856a9e5ef5ef58f769e679 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Sun, 9 Aug 2015 13:02:38 +0200
4 Subject: [PATCH] ARM: qcom: add Netgear Nighthawk X4 R7500 device tree
6 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
8 arch/arm/boot/dts/Makefile | 1 +
9 arch/arm/boot/dts/qcom-ipq8064-r7500.dts | 370 +++++++++++++++++++++++++++++++
10 2 files changed, 371 insertions(+)
11 create mode 100644 arch/arm/boot/dts/qcom-ipq8064-r7500.dts
13 --- a/arch/arm/boot/dts/Makefile
14 +++ b/arch/arm/boot/dts/Makefile
15 @@ -361,6 +361,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
16 qcom-apq8084-mtp.dtb \
17 qcom-ipq8064-ap148.dtb \
18 qcom-ipq8064-db149.dtb \
19 + qcom-ipq8064-r7500.dtb \
20 qcom-msm8660-surf.dtb \
21 qcom-msm8960-cdp.dtb \
22 qcom-msm8974-sony-xperia-honami.dtb
24 +++ b/arch/arm/boot/dts/qcom-ipq8064-r7500.dts
26 +#include "qcom-ipq8064-v1.0.dtsi"
28 +#include <dt-bindings/input/input.h>
31 + model = "Netgear Nighthawk X4 R7500";
32 + compatible = "netgear,r7500", "qcom,ipq8064";
35 + reg = <0x42000000 0xe000000>;
36 + device_type = "memory";
40 + #address-cells = <1>;
44 + reg = <0x41200000 0x300000>;
51 + mdio-gpio0 = &mdio0;
55 + bootargs = "rootfstype=squashfs noinitrd";
56 + linux,stdout-path = "serial0:115200n8";
61 + i2c4_pins: i2c4_pinmux {
62 + pins = "gpio12", "gpio13";
67 + pcie0_pins: pcie0_pinmux {
70 + function = "pcie1_rst";
71 + drive-strength = <12>;
76 + pcie1_pins: pcie1_pinmux {
79 + function = "pcie2_rst";
80 + drive-strength = <12>;
85 + nand_pins: nand_pins {
87 + pins = "gpio34", "gpio35", "gpio36",
88 + "gpio37", "gpio38", "gpio39",
89 + "gpio40", "gpio41", "gpio42",
90 + "gpio43", "gpio44", "gpio45",
93 + drive-strength = <10>;
101 + pins = "gpio40", "gpio41", "gpio42",
102 + "gpio43", "gpio44", "gpio45",
103 + "gpio46", "gpio47";
108 + mdio0_pins: mdio0_pins {
110 + pins = "gpio0", "gpio1";
112 + drive-strength = <8>;
117 + rgmii2_pins: rgmii2_pins {
119 + pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
120 + "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
121 + function = "rgmii2";
122 + drive-strength = <8>;
129 + qcom,mode = <GSBI_PROT_I2C_UART>;
135 + * The i2c device on gsbi4 should not be enabled.
136 + * On ipq806x designs gsbi4 i2c is meant for exclusive
137 + * RPM usage. Turning this on in kernel manifests as
138 + * i2c failure for the RPM.
142 + sata-phy@1b400000 {
150 + phy@100f8800 { /* USB3 port 1 HS phy */
154 + phy@100f8830 { /* USB3 port 1 SS phy */
158 + phy@110f8800 { /* USB3 port 0 HS phy */
162 + phy@110f8830 { /* USB3 port 0 SS phy */
174 + pcie0: pci@1b500000 {
176 + reset-gpio = <&qcom_pinmux 3 0>;
177 + pinctrl-0 = <&pcie0_pins>;
178 + pinctrl-names = "default";
181 + pcie1: pci@1b700000 {
183 + reset-gpio = <&qcom_pinmux 48 0>;
184 + pinctrl-0 = <&pcie1_pins>;
185 + pinctrl-names = "default";
191 + pinctrl-0 = <&nand_pins>;
192 + pinctrl-names = "default";
194 + nand-ecc-strength = <4>;
195 + nand-bus-width = <8>;
197 + #address-cells = <1>;
202 + reg = <0x0000000 0x0c80000>;
208 + reg = <0x0c80000 0x0500000>;
212 + APPSBLENV@1180000 {
213 + label = "APPSBLENV";
214 + reg = <0x1180000 0x0080000>;
220 + reg = <0x1200000 0x0140000>;
226 + reg = <0x1340000 0x0200000>;
231 + reg = <0x1540000 0x1800000>;
236 + reg = <0x2d40000 0x0c00000>;
242 + reg = <0x3940000 0x46c0000>;
247 + label = "firmware";
248 + reg = <0x1340000 0x1a00000>;
254 + compatible = "virtual,mdio-gpio";
255 + #address-cells = <1>;
257 + gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
258 + pinctrl-0 = <&mdio0_pins>;
259 + pinctrl-names = "default";
261 + phy0: ethernet-phy@0 {
262 + device_type = "ethernet-phy";
264 + qca,ar8327-initvals = <
265 + 0x00004 0x7600000 /* PAD0_MODE */
266 + 0x00008 0x1000000 /* PAD5_MODE */
267 + 0x0000c 0x80 /* PAD6_MODE */
268 + 0x000e4 0xaa545 /* MAC_POWER_SEL */
269 + 0x000e0 0xc74164de /* SGMII_CTRL */
270 + 0x0007c 0x4e /* PORT0_STATUS */
271 + 0x00094 0x4e /* PORT6_STATUS */
275 + phy4: ethernet-phy@4 {
276 + device_type = "ethernet-phy";
281 + gmac1: ethernet@37200000 {
283 + phy-mode = "rgmii";
284 + phy-handle = <&phy4>;
287 + pinctrl-0 = <&rgmii2_pins>;
288 + pinctrl-names = "default";
290 + mtd-mac-address = <&art 6>;
293 + gmac2: ethernet@37400000 {
295 + phy-mode = "sgmii";
298 + mtd-mac-address = <&art 0>;
308 + compatible = "gpio-keys";
312 + gpios = <&qcom_pinmux 6 1>;
313 + linux,code = <KEY_WLAN>;
318 + gpios = <&qcom_pinmux 54 1>;
319 + linux,code = <KEY_RESTART>;
324 + gpios = <&qcom_pinmux 65 1>;
325 + linux,code = <KEY_WPS_BUTTON>;
330 + compatible = "gpio-leds";
333 + label = "r7500:amber:usb1";
334 + gpios = <&qcom_pinmux 7 0>;
338 + label = "r7500:amber:usb3";
339 + gpios = <&qcom_pinmux 8 0>;
343 + label = "r7500:amber:status";
344 + gpios = <&qcom_pinmux 9 0>;
348 + label = "r7500:white:internet";
349 + gpios = <&qcom_pinmux 22 0>;
353 + label = "r7500:white:wan";
354 + gpios = <&qcom_pinmux 23 0>;
358 + label = "r7500:white:wps";
359 + gpios = <&qcom_pinmux 24 0>;
363 + label = "r7500:white:esata";
364 + gpios = <&qcom_pinmux 26 0>;
368 + label = "r7500:white:power";
369 + gpios = <&qcom_pinmux 53 0>;
370 + default-state = "on";
374 + label = "r7500:white:rfkill";
375 + gpios = <&qcom_pinmux 64 0>;
379 + label = "r7500:white:wifi5g";
380 + gpios = <&qcom_pinmux 67 0>;