1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "linksys,e7350", "mediatek,mt7621-soc";
11 model = "Linksys E7350";
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-keys";
29 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
41 compatible = "gpio-leds";
44 color = <LED_COLOR_ID_AMBER>;
45 function = LED_FUNCTION_WPS;
46 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
49 led_power: led-power {
51 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
56 color = <LED_COLOR_ID_AMBER>;
57 function = LED_FUNCTION_WAN;
58 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
62 color = <LED_COLOR_ID_BLUE>;
63 function = LED_FUNCTION_WAN;
64 gpios = <&switch0 0 GPIO_ACTIVE_LOW>;
68 color = <LED_COLOR_ID_BLUE>;
69 function = LED_FUNCTION_LAN;
70 function-enumerator = <4>;
71 gpios = <&switch0 3 GPIO_ACTIVE_LOW>;
75 color = <LED_COLOR_ID_BLUE>;
76 function = LED_FUNCTION_LAN;
77 function-enumerator = <3>;
78 gpios = <&switch0 6 GPIO_ACTIVE_LOW>;
82 color = <LED_COLOR_ID_BLUE>;
83 function = LED_FUNCTION_LAN;
84 function-enumerator = <2>;
85 gpios = <&switch0 9 GPIO_ACTIVE_HIGH>;
89 color = <LED_COLOR_ID_BLUE>;
90 function = LED_FUNCTION_LAN;
91 function-enumerator = <1>;
92 gpios = <&switch0 12 GPIO_ACTIVE_LOW>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
113 reg = <0x80000 0x80000>;
116 factory: partition@100000 {
118 reg = <0x100000 0x80000>;
124 reg = <0x180000 0x3000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
132 reg = <0x0 0x400000>;
137 reg = <0x400000 0x2c00000>;
142 label = "alt_firmware";
143 reg = <0x3180000 0x3000000>;
149 reg = <0x6180000 0x80000>;
152 /* seems to be the end here. Can't read past 0x6200000 */
162 compatible = "mediatek,mt76";
163 reg = <0x0000 0 0 0 0>;
164 mediatek,mtd-eeprom = <&factory 0x0000>;
170 groups = "i2c", "uart3", "jtag", "wdt";
178 phy-handle = <ðphy0>;
182 ethphy0: ethernet-phy@0 {