1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "linksys,ea7500-v2", "mediatek,mt7621-soc";
11 model = "Linksys EA7500 v2";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
28 label = "ea7500-v2:green:wan";
29 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 label = "ea7500-v2:green:lan1";
34 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
38 label = "ea7500-v2:green:lan2";
39 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
43 label = "ea7500-v2:green:lan3";
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
48 label = "ea7500-v2:green:lan4";
49 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
53 label = "ea7500-v2:white:power";
54 gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
58 label = "ea7500-v2:green:wps";
59 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
64 compatible = "gpio-keys";
68 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_WPS_BUTTON>;
74 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RESTART>;
84 compatible = "fixed-partitions";
96 reg = <0x80000 0x40000>;
100 factory: partition@c0000 {
102 reg = <0xc0000 0x40000>;
108 reg = <0x100000 0x40000>;
113 reg = <0x140000 0x40000>;
119 reg = <0x180000 0x400000>;
124 reg = <0x580000 0x2400000>;
128 label = "alt_kernel";
129 reg = <0x2980000 0x400000>;
134 label = "alt_rootfs";
135 reg = <0x2d80000 0x2400000>;
141 reg = <0x5180000 0x100000>;
147 reg = <0x5280000 0x2d00000>;
155 groups = "i2c", "uart2", "uart3", "jtag", "wdt";
166 compatible = "mediatek,mt76";
167 reg = <0x0000 0 0 0 0>;
168 mediatek,mtd-eeprom = <&factory 0x0000>;
174 compatible = "mediatek,mt76";
175 reg = <0x0000 0 0 0 0>;
176 mediatek,mtd-eeprom = <&factory 0x8000>;