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 = "cudy,wr2100", "mediatek,mt7621-soc";
11 model = "Cudy WR2100";
14 led-boot = &led_internet_blue;
15 led-failsafe = &led_internet_blue;
16 led-running = &led_internet_blue;
17 led-upgrade = &led_internet_blue;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-keys";
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 compatible = "gpio-leds";
44 led_internet_blue: internet_blue {
45 label = "blue:internet";
46 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
50 label = "red:internet";
51 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
55 function = LED_FUNCTION_WAN;
56 color = <LED_COLOR_ID_GREEN>;
57 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
72 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
77 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
83 nvmem-cells = <&macaddr_bdinfo_de00 0>;
84 nvmem-cell-names = "mac-address";
93 compatible = "mediatek,mt76";
94 reg = <0x0000 0 0 0 0>;
95 nvmem-cells = <&eeprom_factory_0>;
96 nvmem-cell-names = "eeprom";
97 ieee80211-freq-limit = <2400000 2500000>;
103 compatible = "mediatek,mt76";
104 reg = <0x0000 0 0 0 0>;
105 nvmem-cells = <&eeprom_factory_8000>;
106 nvmem-cell-names = "eeprom";
107 ieee80211-freq-limit = <5000000 6000000>;
115 compatible = "jedec,spi-nor";
117 spi-max-frequency = <50000000>;
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
131 label = "u-boot-env";
132 reg = <0x30000 0x10000>;
138 reg = <0x40000 0x10000>;
142 compatible = "fixed-layout";
143 #address-cells = <1>;
146 eeprom_factory_0: eeprom@0 {
150 eeprom_factory_8000: eeprom@8000 {
151 reg = <0x8000 0x4da8>;
157 compatible = "denx,uimage";
159 reg = <0x50000 0xf80000>;
164 reg = <0xfd0000 0x10000>;
170 reg = <0xfe0000 0x10000>;
176 reg = <0xff0000 0x10000>;
180 compatible = "fixed-layout";
181 #address-cells = <1>;
184 macaddr_bdinfo_de00: macaddr@de00 {
185 compatible = "mac-base";
187 #nvmem-cell-cells = <1>;
197 groups = "i2c", "jtag", "uart2", "uart3", "wdt";
205 phy-handle = <ðphy4>;
207 nvmem-cells = <&macaddr_bdinfo_de00 1>;
208 nvmem-cell-names = "mac-address";
212 ethphy4: ethernet-phy@4 {