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>
9 compatible = "linksys,e5400", "mediatek,mt7628an-soc";
10 model = "Linksys E5400";
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
17 label-mac-device = ðernet;
21 bootargs = "console=ttyS0,115200";
25 device_type = "memory";
26 reg = <0x0 0x4000000>;
30 compatible = "gpio-keys";
34 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
40 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
46 compatible = "gpio-leds";
50 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
59 compatible = "jedec,spi-nor";
61 spi-max-frequency = <40000000>;
64 compatible = "fixed-partitions";
76 reg = <0x30000 0x10000>;
80 factory: partition@40000 {
81 compatible = "nvmem-cells";
83 reg = <0x40000 0x10000>;
88 eeprom_factory_0: eeprom@0 {
92 macaddr_factory_28: macaddr@28 {
98 compatible = "denx,uimage";
100 reg = <0x50000 0xfa0000>;
105 reg = <0xff0000 0x10000>;
117 mediatek,portmap = <0x2f>;
118 mediatek,portdisable = <0x20>;
122 nvmem-cells = <&macaddr_factory_28>;
123 nvmem-cell-names = "mac-address";
136 compatible = "mediatek,mt76";
137 reg = <0x0000 0 0 0 0>;
138 mediatek,mtd-eeprom = <&factory 0x8000>;
139 ieee80211-freq-limit = <5000000 6000000>;
141 nvmem-cells = <&macaddr_factory_28>;
142 nvmem-cell-names = "mac-address";
143 mac-address-increment = <3>;
149 group = "gpio", "i2c", "i2s", "refclk", "uart1", "wdt", "wled_an";
161 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_28>;
162 nvmem-cell-names = "eeprom", "mac-address";
163 mac-address-increment = <2>;