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 label = "green:status";
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
35 led_status_blue: status_blue {
36 label = "blue:status";
37 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
40 led_status_red: status_red {
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
47 led-boot = &led_status_green;
48 led-failsafe = &led_status_red;
49 led-running = &led_status_blue;
50 led-upgrade = &led_status_red;
60 compatible = "mediatek,mt76";
61 reg = <0x0000 0 0 0 0>;
62 nvmem-cells = <&eeprom_factory_0>;
63 nvmem-cell-names = "eeprom";
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <14000000>;
74 compatible = "fixed-partitions";
86 reg = <0x30000 0x10000>;
90 factory: partition@50000 {
92 reg = <0x50000 0x10000>;
96 compatible = "fixed-layout";
100 eeprom_factory_0: eeprom@0 {
104 macaddr_factory_e000: macaddr@e000 {
105 compatible = "mac-base";
107 #nvmem-cell-cells = <1>;
113 compatible = "denx,uimage";
115 reg = <0x90000 0xf70000>;
122 nvmem-cells = <&macaddr_factory_e000 0>;
123 nvmem-cell-names = "mac-address";
131 nvmem-cells = <&macaddr_factory_e000 1>;
132 nvmem-cell-names = "mac-address";