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>;
91 compatible = "nvmem-cells";
95 macaddr_factory_e000: macaddr@e000 {
99 macaddr_factory_e006: macaddr@e006 {
105 firmware: partition@50000 {
106 compatible = "denx,uimage";
119 compatible = "mediatek,mt76";
120 reg = <0x0000 0 0 0 0>;
121 mediatek,mtd-eeprom = <&factory 0x0000>;
127 compatible = "mediatek,mt76";
128 reg = <0x0000 0 0 0 0>;
129 mediatek,mtd-eeprom = <&factory 0x8000>;
130 ieee80211-freq-limit = <5000000 6000000>;
135 nvmem-cells = <&macaddr_factory_e000>;
136 nvmem-cell-names = "mac-address";
142 phy-handle = <ðphy4>;
144 nvmem-cells = <&macaddr_factory_e006>;
145 nvmem-cell-names = "mac-address";
149 ethphy4: ethernet-phy@4 {
180 groups = "wdt", "uart2", "jtag";
186 #address-cells = <1>;
191 #trigger-source-cells = <0>;
196 #trigger-source-cells = <0>;