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,ax820", "mediatek,mt7621-soc";
11 model = "YunCore AX820";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
27 /* At least 2 AX820 variants are known and cannot be distinguished (same hw rev):
28 - System LED green GPIO 15; red and blue apparently not connected
29 - System LED red GPIO 15, WLAN2G LED green GPIO 14, WLAN5G LED blue GPIO 16
30 The canonical values taken from a Yuncore datasheet are:
31 - System LED green GPIO 15, WLAN2G LED blue GPIO 14, WLAN5G LED red GPIO 16
32 All 3 colors relate to the same single RGB LED showing up on the front lightpipe.
33 As a result, all 3 LEDs are defined even if only one may be available, and
34 the color information is absent as it is not reliable */
37 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0radio";
43 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
48 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy1radio";
53 color = <LED_COLOR_ID_GREEN>;
54 function = LED_FUNCTION_WAN;
55 gpios = <&switch0 0 GPIO_ACTIVE_LOW>;
59 color = <LED_COLOR_ID_GREEN>;
60 function = LED_FUNCTION_LAN;
61 gpios = <&switch0 3 GPIO_ACTIVE_LOW>;
66 compatible = "linux,wdt-gpio";
67 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
74 compatible = "gpio-keys";
78 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_RESTART>;
88 compatible = "jedec,spi-nor";
90 spi-max-frequency = <80000000>;
94 compatible = "fixed-partitions";
106 reg = <0x30000 0x10000>;
110 /* range 0x40000 to 0x50000 is empty in vendor
111 * firmware, so we do not use it either
116 reg = <0x50000 0x40000>;
120 compatible = "fixed-layout";
121 #address-cells = <1>;
124 eeprom_factory_0: eeprom@0 {
128 precal_factory_e10: precal@e10 {
129 reg = <0xe10 0x19c10>;
132 macaddr_factory_e000: macaddr@e000 {
133 compatible = "mac-base";
135 #nvmem-cell-cells = <1>;
141 compatible = "denx,uimage";
143 reg = <0x90000 0xf70000>;
155 compatible = "mediatek,mt76";
156 reg = <0x0000 0 0 0 0>;
157 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
158 nvmem-cell-names = "eeprom", "precal";
159 mediatek,disable-radar-background;
164 nvmem-cells = <&macaddr_factory_e000 0>;
165 nvmem-cell-names = "mac-address";
171 phy-handle = <ðphy0>;
173 nvmem-cells = <&macaddr_factory_e000 1>;
174 nvmem-cell-names = "mac-address";
178 ethphy0: ethernet-phy@0 {
197 groups = "jtag", "wdt";