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-ax53u", "mediatek,mt7621-soc";
11 model = "ASUS RT-AX53U";
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>;
38 color = <LED_COLOR_ID_BLUE>;
39 function = LED_FUNCTION_USB;
40 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
41 trigger-sources = <&ehci_port2>;
42 linux,default-trigger = "usbport";
47 compatible = "gpio-keys";
51 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
57 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
67 mediatek,bmt-remap-range =
69 <0x35e0000 0x7800000>;
72 compatible = "fixed-partitions";
83 * u-boot gets split here while keeping u-boot read-only,
84 * which allows safe usage of fw_setenv
88 reg = <0x80000 0x60000>;
93 reg = <0xe0000 0x100000>;
97 factory: partition@1e0000 {
99 reg = <0x1e0000 0x100000>;
102 compatible = "nvmem-cells";
103 #address-cells = <1>;
106 macaddr_factory_4: macaddr@4 {
111 factory2: partition@2e0000 {
113 reg = <0x2e0000 0x100000>;
119 reg = <0x3e0000 0x3200000>;
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
127 reg = <0x0 0x400000>;
132 reg = <0x400000 0x2e00000>;
138 reg = <0x35e0000 0x3200000>;
143 reg = <0x67e0000 0x1020000>;
146 /* Last 8M are reserved for NMBM management (bad blocks) */
156 compatible = "mediatek,mt76";
157 reg = <0x0000 0 0 0 0>;
158 mediatek,mtd-eeprom = <&factory 0x0000>;
159 mediatek,disable-radar-background;
164 nvmem-cells = <&macaddr_factory_4>;
165 nvmem-cell-names = "mac-address";
171 phy-handle = <ðphy0>;
173 nvmem-cells = <&macaddr_factory_4>;
174 nvmem-cell-names = "mac-address";
178 ethphy0: ethernet-phy@0 {
204 groups = "i2c", "uart2", "uart3", "jtag", "wdt";