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>
9 compatible = "cudy,wr2100", "mediatek,mt7621-soc";
10 model = "Cudy WR2100";
13 led-boot = &led_internet_blue;
14 led-failsafe = &led_internet_blue;
15 led-running = &led_internet_blue;
16 led-upgrade = &led_internet_blue;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
29 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
41 compatible = "gpio-leds";
43 led_internet_blue: internet_blue {
44 label = "blue:internet";
45 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
49 label = "red:internet";
50 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
55 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
60 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
65 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
70 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
75 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
81 nvmem-cells = <&macaddr_bdinfo_de00>;
82 nvmem-cell-names = "mac-address";
91 compatible = "mediatek,mt76";
92 reg = <0x0000 0 0 0 0>;
93 mediatek,mtd-eeprom = <&factory 0x0000>;
94 ieee80211-freq-limit = <2400000 2500000>;
100 compatible = "mediatek,mt76";
101 reg = <0x0000 0 0 0 0>;
102 mediatek,mtd-eeprom = <&factory 0x8000>;
103 ieee80211-freq-limit = <5000000 6000000>;
111 compatible = "jedec,spi-nor";
113 spi-max-frequency = <50000000>;
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
127 label = "u-boot-env";
128 reg = <0x30000 0x10000>;
132 factory: partition@40000 {
134 reg = <0x40000 0x10000>;
139 compatible = "denx,uimage";
141 reg = <0x50000 0xf80000>;
146 reg = <0xfd0000 0x10000>;
152 reg = <0xfe0000 0x10000>;
156 bdinfo: partition@ff0000 {
158 reg = <0xff0000 0x10000>;
167 groups = "i2c", "jtag", "uart2", "uart3", "wdt";
198 nvmem-cells = <&macaddr_bdinfo_de00>;
199 nvmem-cell-names = "mac-address";
200 mac-address-increment = <1>;
206 compatible = "nvmem-cells";
207 #address-cells = <1>;
210 macaddr_bdinfo_de00: macaddr@de00 {