1 #include "qcom-ipq8064-v2.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>;
25 serial0 = &gsbi4_serial;
29 led-failsafe = &power;
35 bootargs = "console=ttyMSM0,115200n8";
36 stdout-path = "serial0:115200n8";
37 append-rootblock = "ubi.mtd="; /* append to bootargs adding the root deviceblock nbr from bootloader */
43 button_pins: button_pins {
45 pins = "gpio65", "gpio67", "gpio68";
52 i2c4_pins: i2c4_pinmux {
54 pins = "gpio12", "gpio13";
56 drive-strength = <12>;
63 pins = "gpio6", "gpio53", "gpio54";
70 switch_reset: switch_reset_pins {
80 mdio0_pins: mdio0_pins {
82 pins = "gpio0", "gpio1";
89 nand_pins: nand_pins {
91 pins = "gpio34", "gpio35", "gpio36",
92 "gpio37", "gpio38", "gpio39",
93 "gpio40", "gpio41", "gpio42",
94 "gpio43", "gpio44", "gpio45",
97 drive-strength = <10>;
105 pins = "gpio40", "gpio41", "gpio42",
106 "gpio43", "gpio44", "gpio45",
112 rgmii2_pins: rgmii2_pins {
114 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
115 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
117 drive-strength = <8>;
124 qcom,mode = <GSBI_PROT_I2C_UART>;
130 * The i2c device on gsbi4 should not be enabled.
131 * On ipq806x designs gsbi4 i2c is meant for exclusive
132 * RPM usage. Turning this on in kernel manifests as
133 * i2c failure for the RPM.
145 phy@100f8800 { /* USB3 port 1 HS phy */
149 phy@100f8830 { /* USB3 port 1 SS phy */
153 phy@110f8800 { /* USB3 port 0 HS phy */
157 phy@110f8830 { /* USB3 port 0 SS phy */
169 pcie0: pci@1b500000 {
174 pcie1: pci@1b700000 {
181 pinctrl-0 = <&nand_pins>;
182 pinctrl-names = "default";
186 compatible = "qcom,nandcs";
188 nand-ecc-strength = <4>;
189 nand-bus-width = <8>;
190 nand-ecc-step-size = <512>;
193 compatible = "fixed-partitions";
194 #address-cells = <1>;
199 reg = <0x0000000 0x0040000>;
205 reg = <0x0040000 0x0140000>;
211 reg = <0x0180000 0x0140000>;
217 reg = <0x02c0000 0x0280000>;
223 reg = <0x0540000 0x0120000>;
229 reg = <0x0660000 0x0120000>;
235 reg = <0x0780000 0x0280000>;
241 reg = <0x0a00000 0x0280000>;
247 reg = <0x0c80000 0x0140000>;
253 reg = <0x0dc0000 0x0100000>;
259 reg = <0x0ec0000 0x0040000>;
264 reg = <0x0f00000 0x0040000>;
269 reg = <0x0f40000 0x0040000>;
274 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
279 reg = <0x1280000 0x2500000>;
284 reg = <0x3780000 0x2800000>;
289 reg = <0x3a80000 0x2500000>;
294 reg = <0x5f80000 0x2080000>;
301 compatible = "virtual,mdio-gpio";
302 #address-cells = <1>;
305 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
307 pinctrl-0 = <&mdio0_pins &switch_reset>;
308 pinctrl-names = "default";
310 reset-gpios = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
311 reset-delay-us = <12000>;
313 phy0: ethernet-phy@0 {
315 qca,ar8327-initvals = <
316 0x00004 0x7600000 /* PAD0_MODE */
317 0x00008 0x1000000 /* PAD5_MODE */
318 0x0000c 0x80 /* PAD6_MODE */
319 0x000e4 0x6a545 /* MAC_POWER_SEL */
320 0x000e0 0xc74164de /* SGMII_CTRL */
321 0x0007c 0x4e /* PORT0_STATUS */
322 0x00094 0x4e /* PORT6_STATUS */
326 phy4: ethernet-phy@4 {
331 gmac1: ethernet@37200000 {
335 qcom,phy_mdio_addr = <4>;
336 qcom,poll_required = <1>;
337 qcom,rgmii_delay = <0>;
338 qcom,emulation = <0>;
339 pinctrl-0 = <&rgmii2_pins>;
340 pinctrl-names = "default";
347 gmac2: ethernet@37400000 {
351 qcom,phy_mdio_addr = <0>; /* none */
352 qcom,poll_required = <0>; /* no polling */
353 qcom,rgmii_delay = <0>;
354 qcom,emulation = <0>;
361 adm_dma: dma@18300000 {
367 compatible = "gpio-keys";
368 pinctrl-0 = <&button_pins>;
369 pinctrl-names = "default";
373 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
374 linux,code = <KEY_RFKILL>;
379 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
380 linux,code = <KEY_RESTART >;
385 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
386 linux,code = <KEY_WPS_BUTTON>;
391 compatible = "gpio-leds";
392 pinctrl-0 = <&led_pins>;
393 pinctrl-names = "default";
396 label = "ea8500:green:wps";
397 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
401 label = "ea8500:white:power";
402 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
403 default-state = "keep";
407 label = "ea8500:green:wifi";
408 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;
413 /delete-node/ &pcie2_pins;
414 /delete-node/ &pcie2;