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-flash", "mediatek,mt7621-soc";
11 model = "Beeline SmartBox Flash";
14 led-boot = &led_status_red;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_red;
21 compatible = "gpio-leds";
25 color = <LED_COLOR_ID_BLUE>;
26 function = LED_FUNCTION_WAN;
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 led_status_green: led-1 {
31 label = "green:status";
32 color = <LED_COLOR_ID_GREEN>;
33 function = LED_FUNCTION_STATUS;
34 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
37 led_status_red: led-2 {
39 color = <LED_COLOR_ID_RED>;
40 function = LED_FUNCTION_STATUS;
41 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys";
50 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
56 compatible = "mtd-concat";
57 devices = <&ubiconcat0 &ubiconcat1>;
60 compatible = "fixed-partitions";
66 reg = <0x0 0x5240000>;
76 compatible = "fixed-partitions";
88 reg = <0x100000 0x100000>;
91 factory: partition@200000 {
93 reg = <0x200000 0x100000>;
96 compatible = "nvmem-cells";
100 macaddr_factory_fff0: macaddr@fff0 {
107 reg = <0x300000 0x2000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
115 reg = <0x0 0x440000>;
118 ubiconcat0: partition@400000 {
119 label = "ubiconcat0";
120 reg = <0x440000 0x1bc0000>;
126 reg = <0x2300000 0x2000000>;
132 reg = <0x4300000 0x200000>;
137 label = "board_data";
138 reg = <0x4500000 0x100000>;
144 reg = <0x4600000 0x200000>;
149 label = "board_data2";
150 reg = <0x4800000 0x100000>;
154 ubiconcat1: partition@4900000 {
155 label = "ubiconcat1";
156 reg = <0x4900000 0x3680000>;
167 compatible = "mediatek,mt76";
168 reg = <0x0000 0 0 0 0>;
169 mediatek,mtd-eeprom = <&factory 0x0>;
174 nvmem-cells = <&macaddr_factory_fff0>;
175 nvmem-cell-names = "mac-address";
199 groups = "i2c", "jtag";