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>
9 compatible = "yuncore,fap640", "mediatek,mt7621-soc";
10 model = "YunCore FAP640";
13 led-boot = &led_status_blue;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_red;
17 label-mac-device = &gmac0;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
27 led_status_green: status_green {
28 label = "green:status";
29 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32 led_status_red: status_red {
34 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
37 led_status_blue: status_blue {
38 label = "blue:status";
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
44 gpios = <&switch0 12 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "mt7530-0:04:link";
50 gpios = <&switch0 9 GPIO_ACTIVE_HIGH>;
51 linux,default-trigger = "mt7530-0:03:link";
56 gpios = <&switch0 6 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "mt7530-0:02:link";
62 gpios = <&switch0 3 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "mt7530-0:01:link";
68 gpios = <&switch0 0 GPIO_ACTIVE_LOW>;
69 linux,default-trigger = "mt7530-0:00:link";
74 compatible = "linux,wdt-gpio";
75 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-keys";
86 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <80000000>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
107 label = "Bootloader";
114 reg = <0x30000 0x10000>;
118 /* range 0x40000 to 0x50000 is empty in vendor
119 * firmware, so we do not use it either
122 factory: partition@50000 {
124 reg = <0x50000 0x40000>;
129 compatible = "denx,uimage";
131 reg = <0x90000 0xf70000>;
143 compatible = "mediatek,mt76";
144 reg = <0x0000 0 0 0 0>;
145 mediatek,mtd-eeprom = <&factory 0x0>;
146 mediatek,disable-radar-background;
151 nvmem-cells = <&macaddr_factory_e006>;
152 nvmem-cell-names = "mac-address";
158 phy-handle = <ðphy4>;
160 nvmem-cells = <&macaddr_factory_0004>;
161 nvmem-cell-names = "mac-address";
165 ethphy4: ethernet-phy@4 {
200 groups = "jtag", "wdt";
206 compatible = "nvmem-cells";
207 #address-cells = <1>;
210 macaddr_factory_0004: macaddr@0004 {
214 macaddr_factory_e006: macaddr@e006 {