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 = "elecom,wrc-1167fs", "mediatek,mt7628an-soc";
10 model = "ELECOM WRC-1167FS";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-leds";
23 label = "green:power";
24 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
28 label = "green:wlan5g";
29 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy1tpt";
35 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
39 label = "green:internet";
40 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
49 label = "green:wlan2g";
50 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
56 compatible = "gpio-keys";
60 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
62 linux,input-type = <EV_SW>;
67 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
73 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_WPS_BUTTON>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <40000000>;
88 compatible = "fixed-partitions";
100 reg = <0x30000 0x10000>;
104 factory: partition@40000 {
106 reg = <0x40000 0x10000>;
111 compatible = "denx,uimage";
113 reg = <0x50000 0x730000>;
118 reg = <0x780000 0x80000>;
130 mediatek,portmap = <0x2f>;
131 mediatek,portdisable = <0x27>;
135 nvmem-cells = <&macaddr_factory_28>;
136 nvmem-cell-names = "mac-address";
149 compatible = "mediatek,mt76";
150 reg = <0x0000 0 0 0 0>;
151 mediatek,mtd-eeprom = <&factory 0x8000>;
152 ieee80211-freq-limit = <5000000 6000000>;
158 groups = "wled_an", "p3led_an", "p4led_an", "wdt", "refclk", "i2c", "i2s";
166 mediatek,mtd-eeprom = <&factory 0x0>;
170 compatible = "nvmem-cells";
171 #address-cells = <1>;
174 macaddr_factory_28: macaddr@28 {