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 */
42 button_pins: button_pins {
44 pins = "gpio65", "gpio67", "gpio68";
51 i2c4_pins: i2c4_pinmux {
53 pins = "gpio12", "gpio13";
55 drive-strength = <12>;
62 pins = "gpio6", "gpio53", "gpio54";
69 mdio0_pins: mdio0_pins {
71 pins = "gpio0", "gpio1";
78 nand_pins: nand_pins {
80 pins = "gpio34", "gpio35", "gpio36",
83 drive-strength = <10>;
90 drive-strength = <10>;
95 pins = "gpio40", "gpio41", "gpio42",
96 "gpio43", "gpio44", "gpio45",
99 drive-strength = <10>;
104 rgmii2_pins: rgmii2_pins {
106 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
107 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
109 drive-strength = <8>;
116 qcom,mode = <GSBI_PROT_I2C_UART>;
122 * The i2c device on gsbi4 should not be enabled.
123 * On ipq806x designs gsbi4 i2c is meant for exclusive
124 * RPM usage. Turning this on in kernel manifests as
125 * i2c failure for the RPM.
137 usb3_0: usb3@110f8800 {
141 usb3_1: usb3@100f8800 {
145 pcie0: pci@1b500000 {
150 pcie1: pci@1b700000 {
154 pcie2: pci@1b900000 {
161 pinctrl-0 = <&nand_pins>;
162 pinctrl-names = "default";
166 compatible = "qcom,nandcs";
168 nand-ecc-strength = <4>;
169 nand-bus-width = <8>;
170 nand-ecc-step-size = <512>;
173 compatible = "fixed-partitions";
174 #address-cells = <1>;
179 reg = <0x0000000 0x0040000>;
185 reg = <0x0040000 0x0140000>;
191 reg = <0x0180000 0x0140000>;
197 reg = <0x02c0000 0x0280000>;
203 reg = <0x0540000 0x0120000>;
209 reg = <0x0660000 0x0120000>;
215 reg = <0x0780000 0x0280000>;
221 reg = <0x0a00000 0x0280000>;
227 reg = <0x0c80000 0x0140000>;
233 reg = <0x0dc0000 0x0100000>;
239 reg = <0x0ec0000 0x0040000>;
244 reg = <0x0f00000 0x0040000>;
249 reg = <0x0f40000 0x0040000>;
254 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
259 reg = <0x1280000 0x2500000>;
264 reg = <0x3780000 0x2800000>;
269 reg = <0x3a80000 0x2500000>;
274 reg = <0x5f80000 0x2080000>;
281 compatible = "virtual,mdio-gpio";
282 #address-cells = <1>;
284 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
285 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
286 pinctrl-0 = <&mdio0_pins>;
287 pinctrl-names = "default";
289 phy0: ethernet-phy@0 {
291 qca,ar8327-initvals = <
292 0x00004 0x7600000 /* PAD0_MODE */
293 0x00008 0x1000000 /* PAD5_MODE */
294 0x0000c 0x80 /* PAD6_MODE */
295 0x00010 0x2613a0 /* PWS_REG */
296 0x000e4 0x6a545 /* MAC_POWER_SEL */
297 0x000e0 0xc74164de /* SGMII_CTRL */
298 0x0007c 0x4e /* PORT0_STATUS */
299 0x00094 0x4e /* PORT6_STATUS */
303 phy4: ethernet-phy@4 {
308 gmac1: ethernet@37200000 {
312 qcom,phy_mdio_addr = <4>;
313 qcom,poll_required = <1>;
314 qcom,rgmii_delay = <0>;
315 qcom,emulation = <0>;
316 pinctrl-0 = <&rgmii2_pins>;
317 pinctrl-names = "default";
324 gmac2: ethernet@37400000 {
328 qcom,phy_mdio_addr = <0>; /* none */
329 qcom,poll_required = <0>; /* no polling */
330 qcom,rgmii_delay = <0>;
331 qcom,emulation = <0>;
338 adm_dma: dma@18300000 {
344 compatible = "gpio-keys";
345 pinctrl-0 = <&button_pins>;
346 pinctrl-names = "default";
350 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
351 linux,code = <KEY_RFKILL>;
356 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
357 linux,code = <KEY_RESTART >;
362 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
363 linux,code = <KEY_WPS_BUTTON>;
368 compatible = "gpio-leds";
369 pinctrl-0 = <&led_pins>;
370 pinctrl-names = "default";
374 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
378 label = "white:power";
379 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
380 default-state = "keep";
384 label = "green:wifi";
385 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;