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-giga", "mediatek,mt7621-soc";
11 model = "Beeline SmartBox GIGA";
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";
25 led_status_green: led-0 {
26 label = "green:status";
27 color = <LED_COLOR_ID_GREEN>;
28 function = LED_FUNCTION_STATUS;
29 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
34 color = <LED_COLOR_ID_BLUE>;
35 function = LED_FUNCTION_WAN;
36 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
39 led_status_red: led-2 {
41 color = <LED_COLOR_ID_RED>;
42 function = LED_FUNCTION_STATUS;
43 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
48 compatible = "gpio-keys";
52 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
58 compatible = "mtd-concat";
59 devices = <&ubiconcat0 &ubiconcat1 &ubiconcat2 \
63 compatible = "fixed-partitions";
69 reg = <0x0 0x5400000>;
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>;
96 factory: partition@200000 {
98 reg = <0x200000 0x100000>;
99 sercomm,scpart-id = <2>;
103 compatible = "fixed-layout";
104 #address-cells = <1>;
107 eeprom_factory_0: eeprom@0 {
111 eeprom_factory_8000: eeprom@8000 {
112 reg = <0x8000 0x4da8>;
115 macaddr_factory_21000: macaddr@21000 {
116 compatible = "mac-base";
118 #nvmem-cell-cells = <1>;
125 reg = <0x300000 0x100000>;
126 sercomm,scpart-id = <3>;
131 reg = <0x400000 0x600000>;
132 sercomm,scpart-id = <4>;
137 reg = <0xa00000 0x600000>;
138 sercomm,scpart-id = <5>;
142 ubiconcat0: partition@1000000 {
143 label = "File System 1";
144 reg = <0x1000000 0x1800000>;
145 sercomm,scpart-id = <6>;
149 label = "File System 2";
150 reg = <0x2800000 0x1800000>;
151 sercomm,scpart-id = <7>;
155 ubiconcat1: partition@4000000 {
156 label = "Configuration/log";
157 reg = <0x4000000 0x800000>;
158 sercomm,scpart-id = <8>;
161 ubiconcat2: partition@4800000 {
162 label = "application tmp buffer (Ftool)";
163 reg = <0x4800000 0xc00000>;
164 sercomm,scpart-id = <9>;
167 ubiconcat3: partition@5400000 {
169 reg = <0x5400000 0x2800000>;
170 sercomm,scpart-id = <10>;
174 label = "bad block reserved";
175 reg = <0x7c00000 0x380000>;
176 sercomm,scpart-id = <11>;
188 compatible = "mediatek,mt76";
189 reg = <0x0000 0 0 0 0>;
190 ieee80211-freq-limit = <5000000 6000000>;
192 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_21000 5>;
193 nvmem-cell-names = "eeprom", "mac-address";
199 compatible = "mediatek,mt76";
200 reg = <0x0000 0 0 0 0>;
201 ieee80211-freq-limit = <2400000 2500000>;
203 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_21000 4>;
204 nvmem-cell-names = "eeprom", "mac-address";
209 nvmem-cells = <&macaddr_factory_21000 0>;
210 nvmem-cell-names = "mac-address";
216 phy-handle = <ðphy0>;
218 nvmem-cells = <&macaddr_factory_21000 1>;
219 nvmem-cell-names = "mac-address";
223 ethphy0: ethernet-phy@0 {
248 groups = "i2c", "jtag";