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>;
30 bootargs = "console=ttyMSM0,115200n8";
31 linux,stdout-path = "serial0:115200n8";
36 i2c4_pins: i2c4_pinmux {
37 pins = "gpio12", "gpio13";
44 pins = "gpio18", "gpio19", "gpio21";
46 drive-strength = <10>;
50 nand_pins: nand_pins {
52 pins = "gpio34", "gpio35", "gpio36",
53 "gpio37", "gpio38", "gpio39",
54 "gpio40", "gpio41", "gpio42",
55 "gpio43", "gpio44", "gpio45",
58 drive-strength = <10>;
66 pins = "gpio40", "gpio41", "gpio42",
67 "gpio43", "gpio44", "gpio45",
73 mdio0_pins: mdio0_pins {
75 pins = "gpio0", "gpio1";
82 rgmii2_pins: rgmii2_pins {
84 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
85 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
97 qcom,mode = <GSBI_PROT_I2C_UART>;
103 * The i2c device on gsbi4 should not be enabled.
104 * On ipq806x designs gsbi4 i2c is meant for exclusive
105 * RPM usage. Turning this on in kernel manifests as
106 * i2c failure for the RPM.
118 phy@100f8800 { /* USB3 port 1 HS phy */
122 phy@100f8830 { /* USB3 port 1 SS phy */
126 phy@110f8800 { /* USB3 port 0 HS phy */
130 phy@110f8830 { /* USB3 port 0 SS phy */
142 pcie0: pci@1b500000 {
144 phy-tx0-term-offset = <7>;
147 pcie1: pci@1b700000 {
149 phy-tx0-term-offset = <7>;
152 pcie2: pci@1b900000 {
154 phy-tx0-term-offset = <7>;
160 pinctrl-0 = <&nand_pins>;
161 pinctrl-names = "default";
163 nand-ecc-strength = <4>;
164 nand-bus-width = <8>;
166 #address-cells = <1>;
171 reg = <0x0000000 0x0040000>;
177 reg = <0x0040000 0x0140000>;
183 reg = <0x0180000 0x0140000>;
189 reg = <0x02c0000 0x0280000>;
195 reg = <0x0540000 0x0120000>;
201 reg = <0x0660000 0x0120000>;
207 reg = <0x0780000 0x0280000>;
213 reg = <0x0a00000 0x0280000>;
219 reg = <0x0c80000 0x0140000>;
225 reg = <0x0dc0000 0x0100000>;
231 reg = <0x0ec0000 0x0040000>;
236 reg = <0x0f00000 0x0040000>;
241 reg = <0x0f40000 0x0040000>;
246 reg = <0x0f80000 0x2800000>; /* 3 MB spill to rootfs*/
251 reg = <0x1280000 0x2500000>;
256 reg = <0x3780000 0x2800000>;
261 reg = <0x3a80000 0x2500000>;
266 reg = <0x5f80000 0x2080000>;
272 compatible = "virtual,mdio-gpio";
273 #address-cells = <1>;
275 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
276 pinctrl-0 = <&mdio0_pins>;
277 pinctrl-names = "default";
279 phy0: ethernet-phy@0 {
280 device_type = "ethernet-phy";
282 qca,ar8327-initvals = <
283 0x00004 0x7600000 /* PAD0_MODE */
284 0x00008 0x1000000 /* PAD5_MODE */
285 0x0000c 0x80 /* PAD6_MODE */
286 0x000e4 0xaa545 /* MAC_POWER_SEL */
287 0x000e0 0xc74164de /* SGMII_CTRL */
288 0x0007c 0x4e /* PORT0_STATUS */
289 0x00094 0x4e /* PORT6_STATUS */
293 phy4: ethernet-phy@4 {
294 device_type = "ethernet-phy";
299 gmac1: ethernet@37200000 {
303 qcom,phy_mdio_addr = <4>;
304 qcom,poll_required = <1>;
305 qcom,rgmii_delay = <0>;
306 qcom,emulation = <0>;
307 pinctrl-0 = <&rgmii2_pins>;
308 pinctrl-names = "default";
315 gmac2: ethernet@37400000 {
319 qcom,phy_mdio_addr = <0>; /* none */
320 qcom,poll_required = <0>; /* no polling */
321 qcom,rgmii_delay = <0>;
322 qcom,emulation = <0>;
329 adm_dma: dma@18300000 {
336 compatible = "gpio-keys";
339 label = "rfkill"; /* WIFI on-off*/
340 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
341 linux,code = <KEY_RFKILL>;
346 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
347 linux,code = <KEY_RESTART >;
352 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
353 linux,code = <KEY_WPS_BUTTON>;
359 compatible = "gpio-leds";
362 label = "ea8500:green:wps";
363 gpios = <&qcom_pinmux 53 0>;
364 default-state = "off";
368 label = "ea8500:white:power";
369 gpios = <&qcom_pinmux 6 1>;
370 default-state = "off";
371 linux,default-trigger = "heartbeat";
375 label = "ea8500:green:wifi";
376 gpios = <&qcom_pinmux 54 0>;
377 default-state = "off";