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 linux,stdout-path = "serial0:115200n8";
37 append-rootblock = "ubi.mtd="; /* append to bootargs adding the root deviceblock nbr from bootloader */
43 pinctrl-0 = <&switch_reset>;
44 pinctrl-names = "default";
46 button_pins: button_pins {
48 pins = "gpio65", "gpio67", "gpio68";
55 i2c4_pins: i2c4_pinmux {
57 pins = "gpio12", "gpio13";
59 drive-strength = <12>;
66 pins = "gpio6", "gpio53", "gpio54";
73 switch_reset: switch_reset_pins {
83 mdio0_pins: mdio0_pins {
85 pins = "gpio0", "gpio1";
92 nand_pins: nand_pins {
94 pins = "gpio34", "gpio35", "gpio36",
95 "gpio37", "gpio38", "gpio39",
96 "gpio40", "gpio41", "gpio42",
97 "gpio43", "gpio44", "gpio45",
100 drive-strength = <10>;
108 pins = "gpio40", "gpio41", "gpio42",
109 "gpio43", "gpio44", "gpio45",
115 rgmii2_pins: rgmii2_pins {
117 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
118 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
120 drive-strength = <8>;
127 qcom,mode = <GSBI_PROT_I2C_UART>;
133 * The i2c device on gsbi4 should not be enabled.
134 * On ipq806x designs gsbi4 i2c is meant for exclusive
135 * RPM usage. Turning this on in kernel manifests as
136 * i2c failure for the RPM.
148 phy@100f8800 { /* USB3 port 1 HS phy */
152 phy@100f8830 { /* USB3 port 1 SS phy */
156 phy@110f8800 { /* USB3 port 0 HS phy */
160 phy@110f8830 { /* USB3 port 0 SS phy */
172 pcie0: pci@1b500000 {
177 pcie1: pci@1b700000 {
184 pinctrl-0 = <&nand_pins>;
185 pinctrl-names = "default";
189 compatible = "qcom,nandcs";
191 nand-ecc-strength = <4>;
192 nand-bus-width = <8>;
193 nand-ecc-step-size = <512>;
196 compatible = "fixed-partitions";
197 #address-cells = <1>;
202 reg = <0x0000000 0x0040000>;
208 reg = <0x0040000 0x0140000>;
214 reg = <0x0180000 0x0140000>;
220 reg = <0x02c0000 0x0280000>;
226 reg = <0x0540000 0x0120000>;
232 reg = <0x0660000 0x0120000>;
238 reg = <0x0780000 0x0280000>;
244 reg = <0x0a00000 0x0280000>;
250 reg = <0x0c80000 0x0140000>;
256 reg = <0x0dc0000 0x0100000>;
262 reg = <0x0ec0000 0x0040000>;
267 reg = <0x0f00000 0x0040000>;
272 reg = <0x0f40000 0x0040000>;
277 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
282 reg = <0x1280000 0x2500000>;
287 reg = <0x3780000 0x2800000>;
292 reg = <0x3a80000 0x2500000>;
297 reg = <0x5f80000 0x2080000>;
304 compatible = "virtual,mdio-gpio";
305 #address-cells = <1>;
307 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
308 pinctrl-0 = <&mdio0_pins>;
309 pinctrl-names = "default";
311 phy0: ethernet-phy@0 {
313 qca,ar8327-initvals = <
314 0x00004 0x7600000 /* PAD0_MODE */
315 0x00008 0x1000000 /* PAD5_MODE */
316 0x0000c 0x80 /* PAD6_MODE */
317 0x000e4 0x6a545 /* MAC_POWER_SEL */
318 0x000e0 0xc74164de /* SGMII_CTRL */
319 0x0007c 0x4e /* PORT0_STATUS */
320 0x00094 0x4e /* PORT6_STATUS */
324 phy4: ethernet-phy@4 {
329 gmac1: ethernet@37200000 {
333 qcom,phy_mdio_addr = <4>;
334 qcom,poll_required = <1>;
335 qcom,rgmii_delay = <0>;
336 qcom,emulation = <0>;
337 pinctrl-0 = <&rgmii2_pins>;
338 pinctrl-names = "default";
345 gmac2: ethernet@37400000 {
349 qcom,phy_mdio_addr = <0>; /* none */
350 qcom,poll_required = <0>; /* no polling */
351 qcom,rgmii_delay = <0>;
352 qcom,emulation = <0>;
359 adm_dma: dma@18300000 {
365 compatible = "gpio-keys";
366 pinctrl-0 = <&button_pins>;
367 pinctrl-names = "default";
371 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
372 linux,code = <KEY_RFKILL>;
377 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
378 linux,code = <KEY_RESTART >;
383 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
384 linux,code = <KEY_WPS_BUTTON>;
389 compatible = "gpio-leds";
390 pinctrl-0 = <&led_pins>;
391 pinctrl-names = "default";
394 label = "ea8500:green:wps";
395 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
399 label = "ea8500:white:power";
400 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
401 default-state = "keep";
405 label = "ea8500:green:wifi";
406 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;
411 /delete-node/ &pcie2_pins;
412 /delete-node/ &pcie2;