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 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",
81 "gpio37", "gpio38", "gpio39",
82 "gpio40", "gpio41", "gpio42",
83 "gpio43", "gpio44", "gpio45",
86 drive-strength = <10>;
94 pins = "gpio40", "gpio41", "gpio42",
95 "gpio43", "gpio44", "gpio45",
101 rgmii2_pins: rgmii2_pins {
103 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
104 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
106 drive-strength = <8>;
113 qcom,mode = <GSBI_PROT_I2C_UART>;
119 * The i2c device on gsbi4 should not be enabled.
120 * On ipq806x designs gsbi4 i2c is meant for exclusive
121 * RPM usage. Turning this on in kernel manifests as
122 * i2c failure for the RPM.
134 phy@100f8800 { /* USB3 port 1 HS phy */
138 phy@100f8830 { /* USB3 port 1 SS phy */
142 phy@110f8800 { /* USB3 port 0 HS phy */
146 phy@110f8830 { /* USB3 port 0 SS phy */
158 pcie0: pci@1b500000 {
160 phy-tx0-term-offset = <7>;
163 pcie1: pci@1b700000 {
165 phy-tx0-term-offset = <7>;
168 pcie2: pci@1b900000 {
170 phy-tx0-term-offset = <7>;
176 pinctrl-0 = <&nand_pins>;
177 pinctrl-names = "default";
179 nand-ecc-strength = <4>;
180 nand-bus-width = <8>;
182 #address-cells = <1>;
187 reg = <0x0000000 0x0040000>;
193 reg = <0x0040000 0x0140000>;
199 reg = <0x0180000 0x0140000>;
205 reg = <0x02c0000 0x0280000>;
211 reg = <0x0540000 0x0120000>;
217 reg = <0x0660000 0x0120000>;
223 reg = <0x0780000 0x0280000>;
229 reg = <0x0a00000 0x0280000>;
235 reg = <0x0c80000 0x0140000>;
241 reg = <0x0dc0000 0x0100000>;
247 reg = <0x0ec0000 0x0040000>;
252 reg = <0x0f00000 0x0040000>;
257 reg = <0x0f40000 0x0040000>;
262 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
267 reg = <0x1280000 0x2500000>;
272 reg = <0x3780000 0x2800000>;
277 reg = <0x3a80000 0x2500000>;
282 reg = <0x5f80000 0x2080000>;
287 compatible = "virtual,mdio-gpio";
288 #address-cells = <1>;
290 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
291 pinctrl-0 = <&mdio0_pins>;
292 pinctrl-names = "default";
294 phy0: ethernet-phy@0 {
295 device_type = "ethernet-phy";
297 qca,ar8327-initvals = <
298 0x00004 0x7600000 /* PAD0_MODE */
299 0x00008 0x1000000 /* PAD5_MODE */
300 0x0000c 0x80 /* PAD6_MODE */
301 0x000e4 0x6a545 /* MAC_POWER_SEL */
302 0x000e0 0xc74164de /* SGMII_CTRL */
303 0x0007c 0x4e /* PORT0_STATUS */
304 0x00094 0x4e /* PORT6_STATUS */
308 phy4: ethernet-phy@4 {
309 device_type = "ethernet-phy";
314 gmac1: ethernet@37200000 {
318 qcom,phy_mdio_addr = <4>;
319 qcom,poll_required = <1>;
320 qcom,rgmii_delay = <0>;
321 qcom,emulation = <0>;
322 pinctrl-0 = <&rgmii2_pins>;
323 pinctrl-names = "default";
330 gmac2: ethernet@37400000 {
334 qcom,phy_mdio_addr = <0>; /* none */
335 qcom,poll_required = <0>; /* no polling */
336 qcom,rgmii_delay = <0>;
337 qcom,emulation = <0>;
345 pinctrl-0 = <&i2c4_pins>;
346 pinctrl-names = "default";
349 adm_dma: dma@18300000 {
355 compatible = "gpio-keys";
356 pinctrl-0 = <&button_pins>;
357 pinctrl-names = "default";
361 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
362 linux,code = <KEY_RFKILL>;
367 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
368 linux,code = <KEY_RESTART >;
373 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
374 linux,code = <KEY_WPS_BUTTON>;
379 compatible = "gpio-leds";
380 pinctrl-0 = <&led_pins>;
381 pinctrl-names = "default";
384 label = "ea8500:green:wps";
385 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
389 label = "ea8500:white:power";
390 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
391 default-state = "keep";
395 label = "ea8500:green:wifi";
396 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_HIGH>;