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>;
29 led-failsafe = &power;
35 bootargs = "console=ttyMSM0,115200n8";
36 linux,stdout-path = "serial0:115200n8";
37 append-rootblock = "ubi.mtd="; /* append to bootargs adding the root deviceblock nbr from bootloader */
42 i2c4_pins: i2c4_pinmux {
43 pins = "gpio12", "gpio13";
50 pins = "gpio18", "gpio19", "gpio21";
52 drive-strength = <10>;
56 nand_pins: nand_pins {
58 pins = "gpio34", "gpio35", "gpio36",
59 "gpio37", "gpio38", "gpio39",
60 "gpio40", "gpio41", "gpio42",
61 "gpio43", "gpio44", "gpio45",
64 drive-strength = <10>;
72 pins = "gpio40", "gpio41", "gpio42",
73 "gpio43", "gpio44", "gpio45",
79 mdio0_pins: mdio0_pins {
81 pins = "gpio0", "gpio1";
88 rgmii2_pins: rgmii2_pins {
90 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
91 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
103 qcom,mode = <GSBI_PROT_I2C_UART>;
109 * The i2c device on gsbi4 should not be enabled.
110 * On ipq806x designs gsbi4 i2c is meant for exclusive
111 * RPM usage. Turning this on in kernel manifests as
112 * i2c failure for the RPM.
124 phy@100f8800 { /* USB3 port 1 HS phy */
128 phy@100f8830 { /* USB3 port 1 SS phy */
132 phy@110f8800 { /* USB3 port 0 HS phy */
136 phy@110f8830 { /* USB3 port 0 SS phy */
148 pcie0: pci@1b500000 {
150 phy-tx0-term-offset = <7>;
153 pcie1: pci@1b700000 {
155 phy-tx0-term-offset = <7>;
158 pcie2: pci@1b900000 {
160 phy-tx0-term-offset = <7>;
166 pinctrl-0 = <&nand_pins>;
167 pinctrl-names = "default";
169 nand-ecc-strength = <4>;
170 nand-bus-width = <8>;
172 #address-cells = <1>;
177 reg = <0x0000000 0x0040000>;
183 reg = <0x0040000 0x0140000>;
189 reg = <0x0180000 0x0140000>;
195 reg = <0x02c0000 0x0280000>;
201 reg = <0x0540000 0x0120000>;
207 reg = <0x0660000 0x0120000>;
213 reg = <0x0780000 0x0280000>;
219 reg = <0x0a00000 0x0280000>;
225 reg = <0x0c80000 0x0140000>;
231 reg = <0x0dc0000 0x0100000>;
237 reg = <0x0ec0000 0x0040000>;
242 reg = <0x0f00000 0x0040000>;
247 reg = <0x0f40000 0x0040000>;
252 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
257 reg = <0x1280000 0x2500000>;
262 reg = <0x3780000 0x2800000>;
267 reg = <0x3a80000 0x2500000>;
272 reg = <0x5f80000 0x2080000>;
278 compatible = "virtual,mdio-gpio";
279 #address-cells = <1>;
281 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
282 pinctrl-0 = <&mdio0_pins>;
283 pinctrl-names = "default";
285 phy0: ethernet-phy@0 {
286 device_type = "ethernet-phy";
288 qca,ar8327-initvals = <
289 0x00004 0x7600000 /* PAD0_MODE */
290 0x00008 0x1000000 /* PAD5_MODE */
291 0x0000c 0x80 /* PAD6_MODE */
292 0x000e4 0x6a545 /* MAC_POWER_SEL */
293 0x000e0 0xc74164de /* SGMII_CTRL */
294 0x0007c 0x4e /* PORT0_STATUS */
295 0x00094 0x4e /* PORT6_STATUS */
299 phy4: ethernet-phy@4 {
300 device_type = "ethernet-phy";
305 gmac1: ethernet@37200000 {
309 qcom,phy_mdio_addr = <4>;
310 qcom,poll_required = <1>;
311 qcom,rgmii_delay = <0>;
312 qcom,emulation = <0>;
313 pinctrl-0 = <&rgmii2_pins>;
314 pinctrl-names = "default";
321 gmac2: ethernet@37400000 {
325 qcom,phy_mdio_addr = <0>; /* none */
326 qcom,poll_required = <0>; /* no polling */
327 qcom,rgmii_delay = <0>;
328 qcom,emulation = <0>;
335 adm_dma: dma@18300000 {
342 compatible = "gpio-keys";
345 label = "rfkill"; /* WIFI on-off*/
346 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
347 linux,code = <KEY_RFKILL>;
352 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
353 linux,code = <KEY_RESTART >;
358 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
359 linux,code = <KEY_WPS_BUTTON>;
365 compatible = "gpio-leds";
368 label = "ea8500:green:wps";
369 gpios = <&qcom_pinmux 53 0>;
370 default-state = "off";
374 label = "ea8500:white:power";
375 gpios = <&qcom_pinmux 6 1>;
376 default-state = "off";
377 linux,default-trigger = "heartbeat";
381 label = "ea8500:green:wifi";
382 gpios = <&qcom_pinmux 54 0>;
383 default-state = "off";