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 */
41 mdio0: mdio@37000000 {
45 compatible = "qcom,ipq8064-mdio", "syscon";
46 reg = <0x37000000 0x200000>;
47 resets = <&gcc GMAC_CORE1_RESET>;
48 reset-names = "stmmaceth";
49 clocks = <&gcc GMAC_CORE1_CLK>;
50 clock-names = "stmmaceth";
52 pinctrl-0 = <&mdio0_pins>;
53 pinctrl-names = "default";
55 phy0: ethernet-phy@0 {
57 qca,ar8327-initvals = <
58 0x00004 0x7600000 /* PAD0_MODE */
59 0x00008 0x1000000 /* PAD5_MODE */
60 0x0000c 0x80 /* PAD6_MODE */
61 0x000e4 0x6a545 /* MAC_POWER_SEL */
62 0x000e0 0xc74164de /* SGMII_CTRL */
63 0x0007c 0x4e /* PORT0_STATUS */
64 0x00094 0x4e /* PORT6_STATUS */
68 phy4: ethernet-phy@4 {
75 compatible = "gpio-keys";
76 pinctrl-0 = <&button_pins>;
77 pinctrl-names = "default";
81 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_RFKILL>;
87 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RESTART >;
93 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_WPS_BUTTON>;
99 compatible = "gpio-leds";
100 pinctrl-0 = <&led_pins>;
101 pinctrl-names = "default";
104 label = "ea8500:green:wps";
105 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
109 label = "ea8500:white:power";
110 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
111 default-state = "keep";
115 label = "ea8500:green:wifi";
116 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;
122 button_pins: button_pins {
124 pins = "gpio65", "gpio67", "gpio68";
126 drive-strength = <2>;
131 i2c4_pins: i2c4_pinmux {
133 pins = "gpio12", "gpio13";
135 drive-strength = <12>;
142 pins = "gpio6", "gpio53", "gpio54";
144 drive-strength = <2>;
149 mdio0_pins: mdio0_pins {
151 pins = "gpio0", "gpio1";
153 drive-strength = <8>;
158 nand_pins: nand_pins {
160 pins = "gpio34", "gpio35", "gpio36",
163 drive-strength = <10>;
170 drive-strength = <10>;
175 pins = "gpio40", "gpio41", "gpio42",
176 "gpio43", "gpio44", "gpio45",
179 drive-strength = <10>;
184 rgmii2_pins: rgmii2_pins {
186 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
187 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
189 drive-strength = <8>;
196 qcom,mode = <GSBI_PROT_I2C_UART>;
202 * The i2c device on gsbi4 should not be enabled.
203 * On ipq806x designs gsbi4 i2c is meant for exclusive
204 * RPM usage. Turning this on in kernel manifests as
205 * i2c failure for the RPM.
241 pinctrl-0 = <&nand_pins>;
242 pinctrl-names = "default";
246 compatible = "qcom,nandcs";
248 nand-ecc-strength = <4>;
249 nand-bus-width = <8>;
250 nand-ecc-step-size = <512>;
253 compatible = "fixed-partitions";
254 #address-cells = <1>;
259 reg = <0x0000000 0x0040000>;
265 reg = <0x0040000 0x0140000>;
271 reg = <0x0180000 0x0140000>;
277 reg = <0x02c0000 0x0280000>;
283 reg = <0x0540000 0x0120000>;
289 reg = <0x0660000 0x0120000>;
295 reg = <0x0780000 0x0280000>;
301 reg = <0x0a00000 0x0280000>;
307 reg = <0x0c80000 0x0140000>;
313 reg = <0x0dc0000 0x0100000>;
319 reg = <0x0ec0000 0x0040000>;
324 reg = <0x0f00000 0x0040000>;
329 reg = <0x0f40000 0x0040000>;
334 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
339 reg = <0x1280000 0x2500000>;
344 reg = <0x3780000 0x2800000>;
349 reg = <0x3a80000 0x2500000>;
354 reg = <0x5f80000 0x2080000>;
364 qcom,phy_mdio_addr = <4>;
365 qcom,poll_required = <1>;
366 qcom,rgmii_delay = <0>;
367 qcom,emulation = <0>;
368 pinctrl-0 = <&rgmii2_pins>;
369 pinctrl-names = "default";
380 qcom,phy_mdio_addr = <0>; /* none */
381 qcom,poll_required = <0>; /* no polling */
382 qcom,rgmii_delay = <0>;
383 qcom,emulation = <0>;