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 mediatek,mtd-eeprom = <&factory 0x0>;
69 compatible = "jedec,spi-nor";
71 spi-max-frequency = <14000000>;
73 compatible = "fixed-partitions";
85 reg = <0x30000 0x10000>;
89 factory: partition@50000 {
91 reg = <0x50000 0x10000>;
95 compatible = "fixed-layout";
99 macaddr_factory_e000: macaddr@e000 {
100 compatible = "mac-base";
102 #nvmem-cell-cells = <1>;
108 compatible = "denx,uimage";
110 reg = <0x90000 0xf70000>;
117 nvmem-cells = <&macaddr_factory_e000 0>;
118 nvmem-cell-names = "mac-address";
126 nvmem-cells = <&macaddr_factory_e000 1>;
127 nvmem-cell-names = "mac-address";