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 = "comfast,cf-e390ax", "mediatek,mt7621-soc";
11 model = "COMFAST CF-E390AX";
14 bootargs = "console=ttyS0,115200";
18 compatible = "gpio-keys";
22 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 compatible = "gpio-leds";
30 led_status_green: status_green {
31 function = LED_FUNCTION_STATUS;
32 color = <LED_COLOR_ID_GREEN>;
33 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
36 led_status_blue: status_blue {
37 function = LED_FUNCTION_STATUS;
38 color = <LED_COLOR_ID_BLUE>;
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
42 led_status_red: status_red {
43 function = LED_FUNCTION_STATUS;
44 color = <LED_COLOR_ID_RED>;
45 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
50 led-boot = &led_status_green;
51 led-failsafe = &led_status_red;
52 led-running = &led_status_blue;
53 led-upgrade = &led_status_red;
63 compatible = "mediatek,mt76";
64 reg = <0x0000 0 0 0 0>;
65 nvmem-cells = <&eeprom_factory_0>;
66 nvmem-cell-names = "eeprom";
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <14000000>;
77 compatible = "fixed-partitions";
89 reg = <0x30000 0x10000>;
93 factory: partition@50000 {
95 reg = <0x50000 0x10000>;
99 compatible = "fixed-layout";
100 #address-cells = <1>;
103 eeprom_factory_0: eeprom@0 {
107 macaddr_factory_e000: macaddr@e000 {
108 compatible = "mac-base";
110 #nvmem-cell-cells = <1>;
116 compatible = "denx,uimage";
118 reg = <0x90000 0xf70000>;
125 nvmem-cells = <&macaddr_factory_e000 0>;
126 nvmem-cell-names = "mac-address";
134 nvmem-cells = <&macaddr_factory_e000 1>;
135 nvmem-cell-names = "mac-address";