1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14 label-mac-device = &wan;
18 compatible = "gpio-leds";
20 led_power_green: power_green {
21 label = "wrc-gst:green:power";
22 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
26 label = "wrc-gst:blue:power";
27 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
31 label = "wrc-gst:red:wps";
32 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
36 label = "wrc-gst:red:power";
37 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
42 compatible = "gpio-keys";
46 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
58 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
60 linux,input-type = <EV_SW>;
65 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
67 linux,input-type = <EV_SW>;
72 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
74 linux,input-type = <EV_SW>;
79 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
81 linux,input-type = <EV_SW>;
87 mtd-mac-address = <&factory 0xe000>;
95 mtd-mac-address = <&factory 0xe006>;
124 compatible = "jedec,spi-nor";
126 spi-max-frequency = <40000000>;
128 partitions: partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
140 label = "u-boot-env";
141 reg = <0x30000 0x10000>;
145 factory: partition@40000 {
147 reg = <0x40000 0x10000>;
156 groups = "uart3", "jtag", "wdt", "sdhci";
167 compatible = "mediatek,mt76";
168 reg = <0x0000 0 0 0 0>;
169 mediatek,mtd-eeprom = <&factory 0x0000>;
170 ieee80211-freq-limit = <2400000 2500000>;
181 compatible = "mediatek,mt76";
182 reg = <0x0000 0 0 0 0>;
183 mediatek,mtd-eeprom = <&factory 0x8000>;
184 ieee80211-freq-limit = <5000000 6000000>;