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 + nand_pins: nand_pins {
69 + pins = "gpio34", "gpio35", "gpio36",
70 + "gpio37", "gpio38", "gpio39",
71 + "gpio40", "gpio41", "gpio42",
72 + "gpio43", "gpio44", "gpio45",
75 + drive-strength = <10>;
83 + pins = "gpio40", "gpio41", "gpio42",
84 + "gpio43", "gpio44", "gpio45",
90 + mdio0_pins: mdio0_pins {
92 + pins = "gpio0", "gpio1";
94 + drive-strength = <8>;
99 + rgmii2_pins: rgmii2_pins {
101 + pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
102 + "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
103 + function = "rgmii2";
104 + drive-strength = <8>;
111 + qcom,mode = <GSBI_PROT_I2C_UART>;
117 + * The i2c device on gsbi4 should not be enabled.
118 + * On ipq806x designs gsbi4 i2c is meant for exclusive
119 + * RPM usage. Turning this on in kernel manifests as
120 + * i2c failure for the RPM.
124 + sata-phy@1b400000 {
132 + phy@100f8800 { /* USB3 port 1 HS phy */
136 + phy@100f8830 { /* USB3 port 1 SS phy */
140 + phy@110f8800 { /* USB3 port 0 HS phy */
144 + phy@110f8830 { /* USB3 port 0 SS phy */
156 + pcie0: pci@1b500000 {
160 + pcie1: pci@1b700000 {
167 + pinctrl-0 = <&nand_pins>;
168 + pinctrl-names = "default";
170 + nand-ecc-strength = <4>;
171 + nand-bus-width = <8>;
173 + #address-cells = <1>;
178 + reg = <0x0000000 0x0c80000>;
184 + reg = <0x0c80000 0x0500000>;
188 + APPSBLENV@1180000 {
189 + label = "APPSBLENV";
190 + reg = <0x1180000 0x0080000>;
196 + reg = <0x1200000 0x0140000>;
202 + reg = <0x1340000 0x0200000>;
207 + reg = <0x1540000 0x1800000>;
212 + reg = <0x2d40000 0x0c00000>;
218 + reg = <0x3940000 0x46c0000>;
223 + label = "firmware";
224 + reg = <0x1340000 0x1a00000>;
230 + compatible = "virtual,mdio-gpio";
231 + #address-cells = <1>;
233 + gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
234 + pinctrl-0 = <&mdio0_pins>;
235 + pinctrl-names = "default";
237 + phy0: ethernet-phy@0 {
238 + device_type = "ethernet-phy";
240 + qca,ar8327-initvals = <
241 + 0x00004 0x7600000 /* PAD0_MODE */
242 + 0x00008 0x1000000 /* PAD5_MODE */
243 + 0x0000c 0x80 /* PAD6_MODE */
244 + 0x000e4 0xaa545 /* MAC_POWER_SEL */
245 + 0x000e0 0xc74164de /* SGMII_CTRL */
246 + 0x0007c 0x4e /* PORT0_STATUS */
247 + 0x00094 0x4e /* PORT6_STATUS */
251 + phy4: ethernet-phy@4 {
252 + device_type = "ethernet-phy";
257 + gmac1: ethernet@37200000 {
259 + phy-mode = "rgmii";
262 + pinctrl-0 = <&rgmii2_pins>;
263 + pinctrl-names = "default";
265 + mtd-mac-address = <&art 6>;
273 + gmac2: ethernet@37400000 {
275 + phy-mode = "sgmii";
278 + mtd-mac-address = <&art 0>;
288 + compatible = "gpio-keys";
292 + gpios = <&qcom_pinmux 6 1>;
293 + linux,code = <KEY_WLAN>;
298 + gpios = <&qcom_pinmux 54 1>;
299 + linux,code = <KEY_RESTART>;
304 + gpios = <&qcom_pinmux 65 1>;
305 + linux,code = <KEY_WPS_BUTTON>;
310 + compatible = "gpio-leds";
313 + label = "r7500:amber:usb1";
314 + gpios = <&qcom_pinmux 7 0>;
318 + label = "r7500:amber:usb3";
319 + gpios = <&qcom_pinmux 8 0>;
323 + label = "r7500:amber:status";
324 + gpios = <&qcom_pinmux 9 0>;
328 + label = "r7500:white:internet";
329 + gpios = <&qcom_pinmux 22 0>;
333 + label = "r7500:white:wan";
334 + gpios = <&qcom_pinmux 23 0>;
338 + label = "r7500:white:wps";
339 + gpios = <&qcom_pinmux 24 0>;
343 + label = "r7500:white:esata";
344 + gpios = <&qcom_pinmux 26 0>;
348 + label = "r7500:white:power";
349 + gpios = <&qcom_pinmux 53 0>;
350 + default-state = "on";
354 + label = "r7500:white:rfkill";
355 + gpios = <&qcom_pinmux 64 0>;
359 + label = "r7500:white:wifi5g";
360 + gpios = <&qcom_pinmux 67 0>;