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,ax820", "mediatek,mt7621-soc";
10 model = "YunCore AX820";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
26 /* At least 2 AX820 variants are known and cannot be distinguished (same hw rev):
27 - System LED green GPIO 15; red and blue apparently not connected
28 - System LED red GPIO 15, WLAN2G LED green GPIO 14, WLAN5G LED blue GPIO 16
29 The canonical values taken from a Yuncore datasheet are:
30 - System LED green GPIO 15, WLAN2G LED blue GPIO 14, WLAN5G LED red GPIO 16
31 All 3 colors relate to the same single RGB LED showing up on the front lightpipe.
32 As a result, all 3 LEDs are defined even if only one may be available, and
33 the color information is absent as it is not reliable */
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0radio";
42 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy1radio";
53 compatible = "linux,wdt-gpio";
54 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys";
65 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RESTART>;
75 compatible = "jedec,spi-nor";
77 spi-max-frequency = <80000000>;
81 compatible = "fixed-partitions";
93 reg = <0x30000 0x10000>;
97 /* range 0x40000 to 0x50000 is empty in vendor
98 * firmware, so we do not use it either
101 factory: partition@50000 {
103 reg = <0x50000 0x40000>;
108 compatible = "denx,uimage";
110 reg = <0x90000 0xf70000>;
122 compatible = "mediatek,mt76";
123 reg = <0x0000 0 0 0 0>;
124 mediatek,mtd-eeprom = <&factory 0x0>;
129 nvmem-cells = <&macaddr_factory_e000>;
130 nvmem-cell-names = "mac-address";
136 phy-handle = <ðphy0>;
138 nvmem-cells = <&macaddr_factory_e000>;
139 nvmem-cell-names = "mac-address";
140 mac-address-increment = <1>;
144 ethphy0: ethernet-phy@0 {
160 groups = "jtag", "wdt";
166 compatible = "nvmem-cells";
167 #address-cells = <1>;
170 macaddr_factory_e000: macaddr@e000 {