1 #include "qcom-ipq8064-v1.0.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "Linksys EA8500 WiFi Router";
7 compatible = "linksys,ea8500", "qcom,ipq8064";
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
19 reg = <0x41200000 0x300000>;
30 bootargs = "console=ttyMSM0,115200n8";
31 linux,stdout-path = "serial0:115200n8";
32 append-rootblock = "ubi.mtd="; /* append to bootargs adding the root deviceblock nbr from bootloader */
37 i2c4_pins: i2c4_pinmux {
38 pins = "gpio12", "gpio13";
45 pins = "gpio18", "gpio19", "gpio21";
47 drive-strength = <10>;
51 nand_pins: nand_pins {
53 pins = "gpio34", "gpio35", "gpio36",
54 "gpio37", "gpio38", "gpio39",
55 "gpio40", "gpio41", "gpio42",
56 "gpio43", "gpio44", "gpio45",
59 drive-strength = <10>;
67 pins = "gpio40", "gpio41", "gpio42",
68 "gpio43", "gpio44", "gpio45",
74 mdio0_pins: mdio0_pins {
76 pins = "gpio0", "gpio1";
83 rgmii2_pins: rgmii2_pins {
85 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
86 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
98 qcom,mode = <GSBI_PROT_I2C_UART>;
104 * The i2c device on gsbi4 should not be enabled.
105 * On ipq806x designs gsbi4 i2c is meant for exclusive
106 * RPM usage. Turning this on in kernel manifests as
107 * i2c failure for the RPM.
119 phy@100f8800 { /* USB3 port 1 HS phy */
123 phy@100f8830 { /* USB3 port 1 SS phy */
127 phy@110f8800 { /* USB3 port 0 HS phy */
131 phy@110f8830 { /* USB3 port 0 SS phy */
143 pcie0: pci@1b500000 {
145 phy-tx0-term-offset = <7>;
148 pcie1: pci@1b700000 {
150 phy-tx0-term-offset = <7>;
153 pcie2: pci@1b900000 {
155 phy-tx0-term-offset = <7>;
161 pinctrl-0 = <&nand_pins>;
162 pinctrl-names = "default";
164 nand-ecc-strength = <4>;
165 nand-bus-width = <8>;
167 #address-cells = <1>;
172 reg = <0x0000000 0x0040000>;
178 reg = <0x0040000 0x0140000>;
184 reg = <0x0180000 0x0140000>;
190 reg = <0x02c0000 0x0280000>;
196 reg = <0x0540000 0x0120000>;
202 reg = <0x0660000 0x0120000>;
208 reg = <0x0780000 0x0280000>;
214 reg = <0x0a00000 0x0280000>;
220 reg = <0x0c80000 0x0140000>;
226 reg = <0x0dc0000 0x0100000>;
232 reg = <0x0ec0000 0x0040000>;
237 reg = <0x0f00000 0x0040000>;
242 reg = <0x0f40000 0x0040000>;
247 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
252 reg = <0x1280000 0x2500000>;
257 reg = <0x3780000 0x2800000>;
262 reg = <0x3a80000 0x2500000>;
267 reg = <0x5f80000 0x2080000>;
273 compatible = "virtual,mdio-gpio";
274 #address-cells = <1>;
276 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
277 pinctrl-0 = <&mdio0_pins>;
278 pinctrl-names = "default";
280 phy0: ethernet-phy@0 {
281 device_type = "ethernet-phy";
283 qca,ar8327-initvals = <
284 0x00004 0x7600000 /* PAD0_MODE */
285 0x00008 0x1000000 /* PAD5_MODE */
286 0x0000c 0x80 /* PAD6_MODE */
287 0x000e4 0x6a545 /* MAC_POWER_SEL */
288 0x000e0 0xc74164de /* SGMII_CTRL */
289 0x0007c 0x4e /* PORT0_STATUS */
290 0x00094 0x4e /* PORT6_STATUS */
294 phy4: ethernet-phy@4 {
295 device_type = "ethernet-phy";
300 gmac1: ethernet@37200000 {
304 qcom,phy_mdio_addr = <4>;
305 qcom,poll_required = <1>;
306 qcom,rgmii_delay = <0>;
307 qcom,emulation = <0>;
308 pinctrl-0 = <&rgmii2_pins>;
309 pinctrl-names = "default";
316 gmac2: ethernet@37400000 {
320 qcom,phy_mdio_addr = <0>; /* none */
321 qcom,poll_required = <0>; /* no polling */
322 qcom,rgmii_delay = <0>;
323 qcom,emulation = <0>;
330 adm_dma: dma@18300000 {
337 compatible = "gpio-keys";
340 label = "rfkill"; /* WIFI on-off*/
341 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
342 linux,code = <KEY_RFKILL>;
347 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
348 linux,code = <KEY_RESTART >;
353 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
354 linux,code = <KEY_WPS_BUTTON>;
360 compatible = "gpio-leds";
363 label = "ea8500:green:wps";
364 gpios = <&qcom_pinmux 53 0>;
365 default-state = "off";
369 label = "ea8500:white:power";
370 gpios = <&qcom_pinmux 6 1>;
371 default-state = "off";
372 linux,default-trigger = "heartbeat";
376 label = "ea8500:green:wifi";
377 gpios = <&qcom_pinmux 54 0>;
378 default-state = "off";