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>
11 label-mac-device = &gmac0;
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_red;
20 compatible = "gpio-leds";
24 color = <LED_COLOR_ID_BLUE>;
25 function = LED_FUNCTION_WAN;
26 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
29 led_status_green: led-0 {
30 label = "green:status";
31 color = <LED_COLOR_ID_GREEN>;
32 function = LED_FUNCTION_STATUS;
33 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
36 led_status_red: led-2 {
38 color = <LED_COLOR_ID_RED>;
39 function = LED_FUNCTION_STATUS;
40 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
45 compatible = "gpio-keys";
49 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
50 linux,code = <KEY_WPS_BUTTON>;
55 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
61 compatible = "mtd-concat";
62 devices = <&ubiconcat0 &ubiconcat1 &ubiconcat2 \
66 compatible = "fixed-partitions";
72 reg = <0x0 0xca00000>;
82 compatible = "sercomm,sc-partitions", "fixed-partitions";
89 sercomm,scpart-id = <0>;
94 label = "dynamic partition map";
95 reg = <0x100000 0x100000>;
96 sercomm,scpart-id = <1>;
100 factory: partition@200000 {
101 compatible = "nvmem-cells";
103 reg = <0x200000 0x100000>;
104 sercomm,scpart-id = <2>;
105 #address-cells = <1>;
109 eeprom_factory_0: eeprom@0 {
113 eeprom_factory_8000: eeprom@8000 {
114 reg = <0x8000 0x4da8>;
117 macaddr_factory_21000: macaddr@21000 {
124 reg = <0x300000 0x100000>;
125 sercomm,scpart-id = <3>;
130 reg = <0x400000 0x600000>;
131 sercomm,scpart-id = <4>;
136 reg = <0xa00000 0x600000>;
137 sercomm,scpart-id = <5>;
141 ubiconcat0: partition@1000000 {
142 label = "File System 1";
143 reg = <0x1000000 0x2000000>;
144 sercomm,scpart-id = <6>;
148 label = "File System 2";
149 reg = <0x3000000 0x2000000>;
150 sercomm,scpart-id = <7>;
154 ubiconcat1: partition@5000000 {
155 label = "Configuration/log";
156 reg = <0x5000000 0x1400000>;
157 sercomm,scpart-id = <8>;
160 ubiconcat2: partition@6400000 {
161 label = "Debug (Ftool)";
162 reg = <0x6400000 0x1a00000>;
163 sercomm,scpart-id = <9>;
166 ubiconcat3: partition@8000000 {
168 reg = <0x8000000 0x7c00000>;
169 sercomm,scpart-id = <10>;
180 compatible = "mediatek,mt76";
181 reg = <0x0000 0 0 0 0>;
182 nvmem-cells = <&eeprom_factory_8000>;
183 nvmem-cell-names = "eeprom";
184 ieee80211-freq-limit = <5000000 6000000>;
190 compatible = "mediatek,mt76";
191 reg = <0x0000 0 0 0 0>;
192 nvmem-cells = <&eeprom_factory_0>;
193 nvmem-cell-names = "eeprom";
194 ieee80211-freq-limit = <2400000 2500000>;
199 nvmem-cells = <&macaddr_factory_21000>;
200 nvmem-cell-names = "mac-address";
206 phy-handle = <ðphy0>;
210 ethphy0: ethernet-phy@0 {
245 groups = "jtag", "uart2";