1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "linksys,e5400", "mediatek,mt7628an-soc";
11 model = "Linksys E5400";
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
18 label-mac-device = ðernet;
22 bootargs = "console=ttyS0,115200";
26 device_type = "memory";
27 reg = <0x0 0x4000000>;
31 compatible = "gpio-keys";
35 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
47 compatible = "gpio-leds";
50 function = LED_FUNCTION_WPS;
51 color = <LED_COLOR_ID_GREEN>;
52 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
61 compatible = "jedec,spi-nor";
63 spi-max-frequency = <40000000>;
66 compatible = "fixed-partitions";
78 reg = <0x30000 0x10000>;
82 factory: partition@40000 {
84 reg = <0x40000 0x10000>;
88 compatible = "fixed-layout";
92 eeprom_factory_0: eeprom@0 {
96 eeprom_factory_8000: eeprom@8000 {
100 macaddr_factory_28: macaddr@28 {
101 compatible = "mac-base";
103 #nvmem-cell-cells = <1>;
109 compatible = "denx,uimage";
111 reg = <0x50000 0xfa0000>;
116 reg = <0xff0000 0x10000>;
128 mediatek,portmap = <0x2f>;
129 mediatek,portdisable = <0x20>;
133 nvmem-cells = <&macaddr_factory_28 0>;
134 nvmem-cell-names = "mac-address";
147 compatible = "mediatek,mt76";
148 reg = <0x0000 0 0 0 0>;
149 ieee80211-freq-limit = <5000000 6000000>;
151 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_28 3>;
152 nvmem-cell-names = "eeprom", "mac-address";
158 group = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an";
170 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_28 2>;
171 nvmem-cell-names = "eeprom", "mac-address";