1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "bdcom,wap2100-sk", "ralink,mt7620a-soc";
11 model = "BDCOM WAP2100-SK";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
26 function = LED_FUNCTION_USB;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&ohci_port1>, <&ehci_port1>;
30 linux,default-trigger = "usbport";
34 function = LED_FUNCTION_WPS;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
40 label = "green:wlan2g";
41 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys";
50 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
56 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
66 compatible = "jedec,spi-nor";
68 spi-max-frequency = <10000000>;
71 compatible = "fixed-partitions";
83 reg = <0x30000 0x10000>;
89 reg = <0x40000 0x10000>;
93 compatible = "fixed-layout";
97 eeprom_factory_0: eeprom@0 {
101 eeprom_factory_8000: eeprom@8000 {
102 reg = <0x8000 0x200>;
105 macaddr_factory_4: macaddr@4 {
112 compatible = "denx,uimage";
114 reg = <0x50000 0xf70000>;
141 nvmem-cells = <&macaddr_factory_4>;
142 nvmem-cell-names = "mac-address";
144 mediatek,portmap = "wllll";
148 nvmem-cells = <&eeprom_factory_0>;
149 nvmem-cell-names = "eeprom";
158 reg = <0x0000 0 0 0 0>;
159 nvmem-cells = <&eeprom_factory_8000>;
160 nvmem-cell-names = "eeprom";
161 ieee80211-freq-limit = <5000000 6000000>;
167 groups = "spi refclk", "uartf", "wled";