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";
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <50000000>;
70 compatible = "fixed-partitions";
82 reg = <0x30000 0x10000>;
86 factory: partition@40000 {
88 reg = <0x40000 0x10000>;
92 compatible = "fixed-layout";
96 eeprom_factory_0: eeprom@0 {
100 eeprom_factory_8000: eeprom@8000 {
101 reg = <0x8000 0x4da8>;
104 macaddr_factory_e000: macaddr@e000 {
108 macaddr_factory_e006: macaddr@e006 {
114 firmware: partition@50000 {
115 compatible = "denx,uimage";
128 compatible = "mediatek,mt76";
129 reg = <0x0000 0 0 0 0>;
130 nvmem-cells = <&eeprom_factory_0>;
131 nvmem-cell-names = "eeprom";
137 compatible = "mediatek,mt76";
138 reg = <0x0000 0 0 0 0>;
139 nvmem-cells = <&eeprom_factory_8000>;
140 nvmem-cell-names = "eeprom";
141 ieee80211-freq-limit = <5000000 6000000>;
146 nvmem-cells = <&macaddr_factory_e000>;
147 nvmem-cell-names = "mac-address";
153 phy-handle = <ðphy4>;
155 nvmem-cells = <&macaddr_factory_e006>;
156 nvmem-cell-names = "mac-address";
160 ethphy4: ethernet-phy@4 {
191 groups = "wdt", "uart2", "jtag";
197 #address-cells = <1>;
202 #trigger-source-cells = <0>;
207 #trigger-source-cells = <0>;