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";
31 color = <LED_COLOR_ID_BLUE>;
32 function = LED_FUNCTION_POWER;
33 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-keys";
43 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
59 mediatek,bmt-max-ratio = <1>;
60 mediatek,bmt-max-reserved-blocks = <64>;
61 mediatek,bmt-remap-range = <0x000000 0x7e0000>;
64 compatible = "fixed-partitions";
75 * u-boot gets split here while keeping u-boot read-only,
76 * which allows safe usage of fw_setenv
80 reg = <0x80000 0x60000>;
85 reg = <0xe0000 0x100000>;
89 factory: partition@1e0000 {
91 reg = <0x1e0000 0x100000>;
94 compatible = "nvmem-cells";
98 macaddr_factory_4: macaddr@4 {
103 factory2: partition@2e0000 {
105 reg = <0x2e0000 0x100000>;
111 reg = <0x3e0000 0x400000>;
116 reg = <0x7e0000 0x7020000>;
119 /* Last 8M are reserved for NMBM management (bad blocks) */
129 compatible = "mediatek,mt76";
130 reg = <0x0000 0 0 0 0>;
131 mediatek,mtd-eeprom = <&factory 0x0000>;
132 mediatek,disable-radar-background;
137 nvmem-cells = <&macaddr_factory_4>;
138 nvmem-cell-names = "mac-address";
144 phy-handle = <ðphy4>;
146 nvmem-cells = <&macaddr_factory_4>;
147 nvmem-cell-names = "mac-address";
151 ethphy4: ethernet-phy@4 {
182 groups = "i2c", "uart2", "uart3", "jtag", "wdt";