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 mtd-mac-address = <&bdinfo 0xde00>;
90 compatible = "mediatek,mt76";
91 reg = <0x0000 0 0 0 0>;
92 mediatek,mtd-eeprom = <&factory 0x0000>;
93 ieee80211-freq-limit = <2400000 2500000>;
99 compatible = "mediatek,mt76";
100 reg = <0x0000 0 0 0 0>;
101 mediatek,mtd-eeprom = <&factory 0x8000>;
102 ieee80211-freq-limit = <5000000 6000000>;
110 compatible = "jedec,spi-nor";
112 spi-max-frequency = <50000000>;
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
126 label = "u-boot-env";
127 reg = <0x30000 0x10000>;
131 factory: partition@40000 {
133 reg = <0x40000 0x10000>;
138 compatible = "denx,uimage";
140 reg = <0x50000 0xf80000>;
145 reg = <0xfd0000 0x10000>;
151 reg = <0xfe0000 0x10000>;
155 bdinfo: partition@ff0000 {
157 reg = <0xff0000 0x10000>;
166 groups = "i2c", "jtag", "uart2", "uart3", "wdt";
197 mtd-mac-address = <&bdinfo 0xde00>;
198 mtd-mac-address-increment = <1>;