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 = "asus,rt-ax54", "mediatek,mt7621-soc";
11 model = "ASUS RT-AX54";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,115200";
23 bootargs-override = "console=ttyS0,115200";
27 compatible = "gpio-leds";
30 color = <LED_COLOR_ID_BLUE>;
31 function = LED_FUNCTION_POWER;
32 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-keys";
42 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
48 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
58 mediatek,bmt-max-ratio = <1>;
59 mediatek,bmt-max-reserved-blocks = <64>;
60 mediatek,bmt-remap-range = <0x000000 0x7e0000>;
63 compatible = "fixed-partitions";
74 * u-boot gets split here while keeping u-boot read-only,
75 * which allows safe usage of fw_setenv
79 reg = <0x80000 0x60000>;
84 reg = <0xe0000 0x100000>;
90 reg = <0x1e0000 0x100000>;
94 compatible = "fixed-layout";
98 eeprom_factory_0: eeprom@0 {
102 macaddr_factory_4: macaddr@4 {
106 precal_factory_e10: precal@e10 {
107 reg = <0xe10 0x19c10>;
114 reg = <0x2e0000 0x100000>;
120 reg = <0x3e0000 0x400000>;
125 reg = <0x7e0000 0x7020000>;
128 /* Last 8M are reserved for NMBM management (bad blocks) */
138 compatible = "mediatek,mt76";
139 reg = <0x0000 0 0 0 0>;
140 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
141 nvmem-cell-names = "eeprom", "precal";
142 mediatek,disable-radar-background;
147 nvmem-cells = <&macaddr_factory_4>;
148 nvmem-cell-names = "mac-address";
154 phy-handle = <ðphy4>;
156 nvmem-cells = <&macaddr_factory_4>;
157 nvmem-cell-names = "mac-address";
161 ethphy4: ethernet-phy@4 {
192 groups = "i2c", "uart2", "uart3", "jtag", "wdt";