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 = "alfa-network,ax1800rm", "mediatek,mt7621-soc";
11 model = "ALFA Network AX1800RM";
14 label-mac-device = &wifi0;
15 led-boot = &led_power;
16 led-failsafe = &led_wan_red;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 bootargs = "console=ttyS0,115200";
26 compatible = "gpio-keys";
30 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 compatible = "gpio-leds";
46 color = <LED_COLOR_ID_GREEN>;
47 function = LED_FUNCTION_LAN;
48 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
53 color = <LED_COLOR_ID_GREEN>;
54 function = LED_FUNCTION_LAN;
55 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
60 color = <LED_COLOR_ID_GREEN>;
61 function = LED_FUNCTION_LAN;
62 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
66 label = "green:power";
67 color = <LED_COLOR_ID_GREEN>;
68 function = LED_FUNCTION_POWER;
69 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
74 color = <LED_COLOR_ID_GREEN>;
75 function = LED_FUNCTION_WAN;
76 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
79 led_wan_red: wan_red {
81 color = <LED_COLOR_ID_RED>;
82 function = LED_FUNCTION_WAN;
83 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <50000000>;
98 compatible = "fixed-partitions";
109 label = "u-boot-env";
110 reg = <0x30000 0x10000>;
114 label = "boot-config";
115 reg = <0x40000 0x10000>;
121 reg = <0x50000 0x10000>;
125 compatible = "fixed-layout";
126 #address-cells = <1>;
134 compatible = "mac-base";
136 #nvmem-cell-cells = <1>;
142 label = "permanent_config";
143 reg = <0x60000 0x80000>;
148 compatible = "denx,fit";
150 reg = <0xe0000 0xf20000>;
162 compatible = "mediatek,mt76";
163 reg = <0x0000 0 0 0 0>;
165 nvmem-cells = <&eeprom>;
166 nvmem-cell-names = "eeprom";
167 mediatek,disable-radar-background;
172 nvmem-cells = <&macaddr 2>;
173 nvmem-cell-names = "mac-address";
179 phy-handle = <ðphy4>;
181 nvmem-cells = <&macaddr 3>;
182 nvmem-cell-names = "mac-address";
186 ethphy4: ethernet-phy@4 {
212 groups = "i2c", "jtag", "uart3", "wdt";