1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "zbtlink,zbt-wg1608", "mediatek,mt7621-soc";
13 led-boot = &led_internet;
14 led-failsafe = &led_internet;
15 led-running = &led_internet;
16 led-upgrade = &led_internet;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
29 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 compatible = "gpio-leds";
37 led_internet: internet {
38 label = "green:internet";
39 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
44 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "usbport";
46 trigger-sources = <&hub_port2>;
50 label = "green:wifi5g";
51 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
56 color = <LED_COLOR_ID_GREEN>;
57 function = LED_FUNCTION_LAN;
58 function-enumerator = <1>;
59 gpios = <&switch0 0 GPIO_ACTIVE_LOW>;
63 color = <LED_COLOR_ID_GREEN>;
64 function = LED_FUNCTION_LAN;
65 function-enumerator = <2>;
66 gpios = <&switch0 3 GPIO_ACTIVE_LOW>;
70 color = <LED_COLOR_ID_GREEN>;
71 function = LED_FUNCTION_LAN;
72 function-enumerator = <3>;
73 gpios = <&switch0 6 GPIO_ACTIVE_LOW>;
77 color = <LED_COLOR_ID_GREEN>;
78 function = LED_FUNCTION_LAN;
79 function-enumerator = <4>;
80 gpios = <&switch0 9 GPIO_ACTIVE_HIGH>;
84 color = <LED_COLOR_ID_GREEN>;
85 function = LED_FUNCTION_WAN;
86 gpios = <&switch0 12 GPIO_ACTIVE_LOW>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <50000000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
115 label = "u-boot-env";
116 reg = <0x30000 0x10000>;
120 factory: partition@40000 {
122 reg = <0x40000 0x10000>;
125 compatible = "nvmem-cells";
126 #address-cells = <1>;
129 macaddr_factory_e000: macaddr@e000 {
133 macaddr_factory_e006: macaddr@e006 {
139 firmware: partition@50000 {
140 compatible = "denx,uimage";
153 compatible = "mediatek,mt76";
154 reg = <0x0000 0 0 0 0>;
155 mediatek,mtd-eeprom = <&factory 0x0000>;
161 compatible = "mediatek,mt76";
162 reg = <0x0000 0 0 0 0>;
163 mediatek,mtd-eeprom = <&factory 0x8000>;
164 ieee80211-freq-limit = <5000000 6000000>;
169 nvmem-cells = <&macaddr_factory_e000>;
170 nvmem-cell-names = "mac-address";
201 nvmem-cells = <&macaddr_factory_e006>;
202 nvmem-cell-names = "mac-address";
209 groups = "wdt", "uart2", "jtag";
215 #address-cells = <1>;
220 #trigger-source-cells = <0>;
225 #trigger-source-cells = <0>;