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";
23 color = <LED_COLOR_ID_BLUE>;
24 function = LED_FUNCTION_WAN;
25 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
28 led_status_green: led-1 {
29 color = <LED_COLOR_ID_GREEN>;
30 function = LED_FUNCTION_STATUS;
31 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
34 led_status_red: led-2 {
35 color = <LED_COLOR_ID_RED>;
36 function = LED_FUNCTION_STATUS;
37 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
42 compatible = "gpio-keys";
46 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
47 linux,code = <KEY_WPS_BUTTON>;
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
58 compatible = "mtd-concat";
59 devices = <&ubiconcat0 &ubiconcat1 &ubiconcat2 \
63 compatible = "fixed-partitions";
69 reg = <0x0 0xca00000>;
79 compatible = "sercomm,sc-partitions", "fixed-partitions";
86 sercomm,scpart-id = <0>;
91 label = "dynamic partition map";
92 reg = <0x100000 0x100000>;
93 sercomm,scpart-id = <1>;
99 reg = <0x200000 0x100000>;
100 sercomm,scpart-id = <2>;
104 compatible = "fixed-layout";
105 #address-cells = <1>;
108 eeprom_factory_0: eeprom@0 {
112 eeprom_factory_8000: eeprom@8000 {
113 reg = <0x8000 0x4da8>;
116 macaddr_factory_21000: macaddr@21000 {
117 compatible = "mac-base";
119 #nvmem-cell-cells = <1>;
126 reg = <0x300000 0x100000>;
127 sercomm,scpart-id = <3>;
132 reg = <0x400000 0x600000>;
133 sercomm,scpart-id = <4>;
138 reg = <0xa00000 0x600000>;
139 sercomm,scpart-id = <5>;
143 ubiconcat0: partition@1000000 {
144 label = "File System 1";
145 reg = <0x1000000 0x2000000>;
146 sercomm,scpart-id = <6>;
150 label = "File System 2";
151 reg = <0x3000000 0x2000000>;
152 sercomm,scpart-id = <7>;
156 ubiconcat1: partition@5000000 {
157 label = "Configuration/log";
158 reg = <0x5000000 0x1400000>;
159 sercomm,scpart-id = <8>;
162 ubiconcat2: partition@6400000 {
163 label = "Debug (Ftool)";
164 reg = <0x6400000 0x1a00000>;
165 sercomm,scpart-id = <9>;
168 ubiconcat3: partition@8000000 {
170 reg = <0x8000000 0x7c00000>;
171 sercomm,scpart-id = <10>;
182 compatible = "mediatek,mt76";
183 reg = <0x0000 0 0 0 0>;
184 nvmem-cells = <&eeprom_factory_8000>;
185 nvmem-cell-names = "eeprom";
186 ieee80211-freq-limit = <5000000 6000000>;
192 compatible = "mediatek,mt76";
193 reg = <0x0000 0 0 0 0>;
194 nvmem-cells = <&eeprom_factory_0>;
195 nvmem-cell-names = "eeprom";
196 ieee80211-freq-limit = <2400000 2500000>;
201 nvmem-cells = <&macaddr_factory_21000>;
202 nvmem-cell-names = "mac-address";
208 phy-handle = <ðphy0>;
212 ethphy0: ethernet-phy@0 {
247 groups = "jtag", "uart2";