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 = "elecom,wrc-1167fs", "mediatek,mt7628an-soc";
11 model = "ELECOM WRC-1167FS";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-leds";
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
30 label = "green:wlan5g";
31 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
36 function = LED_FUNCTION_WPS;
37 color = <LED_COLOR_ID_RED>;
38 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
42 label = "green:internet";
43 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
47 function = LED_FUNCTION_LAN;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
53 label = "green:wlan2g";
54 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "phy0tpt";
60 compatible = "gpio-keys";
64 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
66 linux,input-type = <EV_SW>;
71 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
77 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_WPS_BUTTON>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <40000000>;
92 compatible = "fixed-partitions";
103 label = "u-boot-env";
104 reg = <0x30000 0x10000>;
110 reg = <0x40000 0x10000>;
114 compatible = "fixed-layout";
115 #address-cells = <1>;
118 eeprom_factory_0: eeprom@0 {
122 eeprom_factory_8000: eeprom@8000 {
123 reg = <0x8000 0x200>;
126 macaddr_factory_28: macaddr@28 {
133 compatible = "denx,uimage";
135 reg = <0x50000 0x730000>;
140 reg = <0x780000 0x80000>;
152 mediatek,portmap = <0x2f>;
153 mediatek,portdisable = <0x27>;
157 nvmem-cells = <&macaddr_factory_28>;
158 nvmem-cell-names = "mac-address";
171 compatible = "mediatek,mt76";
172 reg = <0x0000 0 0 0 0>;
173 nvmem-cells = <&eeprom_factory_8000>;
174 nvmem-cell-names = "eeprom";
175 ieee80211-freq-limit = <5000000 6000000>;
181 groups = "wled_an", "p3led_an", "p4led_an", "wdt", "refclk", "i2c", "i2s";
189 nvmem-cells = <&eeprom_factory_0>;
190 nvmem-cell-names = "eeprom";