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 = "yuncore,fap690", "mediatek,mt7621-soc";
11 model = "YunCore FAP690";
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_red;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-leds";
28 led_status_green: status_green {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_GREEN>;
31 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 led_status_red: status_red {
35 function = LED_FUNCTION_STATUS;
36 color = <LED_COLOR_ID_RED>;
37 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
40 led_status_blue: status_blue {
41 function = LED_FUNCTION_STATUS;
42 color = <LED_COLOR_ID_BLUE>;
43 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
48 compatible = "linux,wdt-gpio";
49 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-keys";
60 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <80000000>;
76 compatible = "fixed-partitions";
88 reg = <0x30000 0x10000>;
92 /* range 0x40000 to 0x50000 is empty in vendor
93 * firmware, so we do not use it either
96 factory: partition@50000 {
98 reg = <0x50000 0x40000>;
102 compatible = "fixed-layout";
103 #address-cells = <1>;
106 eeprom_factory_0: eeprom@0 {
110 macaddr_factory_4: macaddr@4 {
114 precal_factory_e10: precal@e10 {
115 reg = <0xe10 0x19c10>;
121 compatible = "denx,uimage";
123 reg = <0x90000 0xf70000>;
135 compatible = "mediatek,mt76";
136 reg = <0x0000 0 0 0 0>;
137 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
138 nvmem-cell-names = "eeprom", "precal";
139 mediatek,disable-radar-background;
144 nvmem-cells = <&macaddr_factory_4>;
145 nvmem-cell-names = "mac-address";
159 groups = "jtag", "wdt";