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 = "beeline,smartbox-turbo", "mediatek,mt7621-soc";
11 model = "Beeline SmartBox TURBO";
14 label-mac-device = &gmac0;
16 led-boot = &led_status_green;
17 led-failsafe = &led_status_red;
18 led-running = &led_status_green;
19 led-upgrade = &led_status_red;
23 compatible = "gpio-leds";
27 color = <LED_COLOR_ID_BLUE>;
28 function = LED_FUNCTION_WAN;
29 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
32 led_status_green: led-0 {
33 label = "green:status";
34 color = <LED_COLOR_ID_GREEN>;
35 function = LED_FUNCTION_STATUS;
36 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
39 led_status_red: led-2 {
41 color = <LED_COLOR_ID_RED>;
42 function = LED_FUNCTION_STATUS;
43 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
48 compatible = "gpio-keys";
52 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
53 linux,code = <KEY_WPS_BUTTON>;
58 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
64 compatible = "mtd-concat";
65 devices = <&ubiconcat0 &ubiconcat1 &ubiconcat2 \
69 compatible = "fixed-partitions";
75 reg = <0x0 0xca00000>;
85 compatible = "sercomm,sc-partitions", "fixed-partitions";
92 sercomm,scpart-id = <0>;
97 label = "dynamic partition map";
98 reg = <0x100000 0x100000>;
99 sercomm,scpart-id = <1>;
103 factory: partition@200000 {
105 reg = <0x200000 0x100000>;
106 sercomm,scpart-id = <2>;
109 compatible = "nvmem-cells";
110 #address-cells = <1>;
113 macaddr_factory_21000: macaddr@21000 {
120 reg = <0x300000 0x100000>;
121 sercomm,scpart-id = <3>;
126 reg = <0x400000 0x600000>;
127 sercomm,scpart-id = <4>;
132 reg = <0xa00000 0x600000>;
133 sercomm,scpart-id = <5>;
137 ubiconcat0: partition@1000000 {
138 label = "File System 1";
139 reg = <0x1000000 0x2000000>;
140 sercomm,scpart-id = <6>;
144 label = "File System 2";
145 reg = <0x3000000 0x2000000>;
146 sercomm,scpart-id = <7>;
150 ubiconcat1: partition@5000000 {
151 label = "Configuration/log";
152 reg = <0x5000000 0x1400000>;
153 sercomm,scpart-id = <8>;
156 ubiconcat2: partition@6400000 {
157 label = "Debug (Ftool)";
158 reg = <0x6400000 0x1a00000>;
159 sercomm,scpart-id = <9>;
162 ubiconcat3: partition@8000000 {
164 reg = <0x8000000 0x7c00000>;
165 sercomm,scpart-id = <10>;
176 compatible = "mediatek,mt76";
177 reg = <0x0000 0 0 0 0>;
178 mediatek,mtd-eeprom = <&factory 0x8000>;
179 ieee80211-freq-limit = <5000000 6000000>;
181 nvmem-cells = <&macaddr_factory_21000>;
182 nvmem-cell-names = "mac-address";
183 mac-address-increment = <(5)>;
189 compatible = "mediatek,mt76";
190 reg = <0x0000 0 0 0 0>;
191 mediatek,mtd-eeprom = <&factory 0x0>;
192 ieee80211-freq-limit = <2400000 2500000>;
194 nvmem-cells = <&macaddr_factory_21000>;
195 nvmem-cell-names = "mac-address";
196 mac-address-increment = <(4)>;
201 nvmem-cells = <&macaddr_factory_21000>;
202 nvmem-cell-names = "mac-address";
211 nvmem-cells = <&macaddr_factory_21000>;
212 nvmem-cell-names = "mac-address";
213 mac-address-increment = <(1)>;
244 groups = "jtag", "uart2";