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-plus", "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-1 {
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>;
68 compatible = "fixed-partitions";
74 reg = <0x0 0x4f80000>;
84 compatible = "sercomm,sc-partitions", "fixed-partitions";
91 sercomm,scpart-id = <0>;
96 label = "dynamic partition map";
97 reg = <0x100000 0x100000>;
98 sercomm,scpart-id = <1>;
102 factory: partition@200000 {
104 reg = <0x200000 0x100000>;
105 sercomm,scpart-id = <2>;
109 compatible = "fixed-layout";
110 #address-cells = <1>;
113 eeprom_factory_0: eeprom@0 {
117 eeprom_factory_8000: eeprom@8000 {
118 reg = <0x8000 0x4da8>;
121 macaddr_factory_21000: macaddr@21000 {
122 compatible = "mac-base";
124 #nvmem-cell-cells = <1>;
131 reg = <0x300000 0x100000>;
132 sercomm,scpart-id = <3>;
137 reg = <0x400000 0x600000>;
138 sercomm,scpart-id = <4>;
143 reg = <0xa00000 0x600000>;
144 sercomm,scpart-id = <5>;
148 ubiconcat0: partition@1000000 {
149 label = "File System 1";
150 reg = <0x1000000 0x2000000>;
151 sercomm,scpart-id = <6>;
155 label = "File System 2";
156 reg = <0x3000000 0x2000000>;
157 sercomm,scpart-id = <7>;
161 ubiconcat1: partition@5000000 {
162 label = "Configuration/log";
163 reg = <0x5000000 0x1400000>;
164 sercomm,scpart-id = <8>;
167 ubiconcat2: partition@6400000 {
168 label = "application tmp buffer (Ftool)";
169 reg = <0x6400000 0x1b80000>;
170 sercomm,scpart-id = <9>;
181 compatible = "mediatek,mt76";
182 reg = <0x0000 0 0 0 0>;
183 ieee80211-freq-limit = <5000000 6000000>;
185 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000 5>;
186 nvmem-cell-names = "eeprom", "mac-address";
192 compatible = "mediatek,mt76";
193 reg = <0x0000 0 0 0 0>;
194 ieee80211-freq-limit = <2400000 2500000>;
196 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000 4>;
197 nvmem-cell-names = "eeprom", "mac-address";
202 nvmem-cells = <&macaddr_factory_21000 0>;
203 nvmem-cell-names = "mac-address";
209 phy-handle = <ðphy0>;
211 nvmem-cells = <&macaddr_factory_21000 1>;
212 nvmem-cell-names = "mac-address";
216 ethphy0: ethernet-phy@0 {
247 current-speed = <57600>;
252 groups = "i2c", "jtag";