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,fap640", "mediatek,mt7621-soc";
11 model = "YunCore FAP640";
14 led-boot = &led_status_blue;
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>;
47 function = LED_FUNCTION_WAN;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&switch0 12 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "mt7530-0:04:link";
55 gpios = <&switch0 9 GPIO_ACTIVE_HIGH>;
56 linux,default-trigger = "mt7530-0:03:link";
61 gpios = <&switch0 6 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "mt7530-0:02:link";
67 gpios = <&switch0 3 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "mt7530-0:01:link";
73 gpios = <&switch0 0 GPIO_ACTIVE_LOW>;
74 linux,default-trigger = "mt7530-0:00:link";
79 compatible = "linux,wdt-gpio";
80 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
87 compatible = "gpio-keys";
91 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <80000000>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
112 label = "Bootloader";
119 reg = <0x30000 0x10000>;
123 /* range 0x40000 to 0x50000 is empty in vendor
124 * firmware, so we do not use it either
129 reg = <0x50000 0x40000>;
133 compatible = "fixed-layout";
134 #address-cells = <1>;
137 eeprom_factory_0: eeprom@0 {
141 precal_factory_e10: precal@e10 {
142 reg = <0xe10 0x19c10>;
145 macaddr_factory_4: macaddr@4 {
149 macaddr_factory_e006: macaddr@e006 {
156 compatible = "denx,uimage";
158 reg = <0x90000 0xf70000>;
170 compatible = "mediatek,mt76";
171 reg = <0x0000 0 0 0 0>;
172 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
173 nvmem-cell-names = "eeprom", "precal";
174 mediatek,disable-radar-background;
179 nvmem-cells = <&macaddr_factory_e006>;
180 nvmem-cell-names = "mac-address";
186 phy-handle = <ðphy4>;
188 nvmem-cells = <&macaddr_factory_4>;
189 nvmem-cell-names = "mac-address";
193 /delete-property/ interrupts;
225 groups = "jtag", "wdt";