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>;
103 compatible = "fixed-layout";
104 #address-cells = <1>;
107 eeprom_factory_0: eeprom@0 {
111 macaddr_factory_4: macaddr@4 {
115 precal_factory_e10: precal@e10 {
116 reg = <0xe10 0x19c10>;
121 factory2: partition@2e0000 {
123 reg = <0x2e0000 0x100000>;
129 reg = <0x3e0000 0x3200000>;
131 compatible = "fixed-partitions";
132 #address-cells = <1>;
137 reg = <0x0 0x400000>;
142 reg = <0x400000 0x2e00000>;
148 reg = <0x35e0000 0x3200000>;
153 reg = <0x67e0000 0x1020000>;
156 /* Last 8M are reserved for NMBM management (bad blocks) */
166 compatible = "mediatek,mt76";
167 reg = <0x0000 0 0 0 0>;
168 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
169 nvmem-cell-names = "eeprom", "precal";
170 mediatek,disable-radar-background;
175 nvmem-cells = <&macaddr_factory_4>;
176 nvmem-cell-names = "mac-address";
182 phy-handle = <ðphy0>;
184 nvmem-cells = <&macaddr_factory_4>;
185 nvmem-cell-names = "mac-address";
189 ethphy0: ethernet-phy@0 {
215 groups = "i2c", "uart2", "uart3", "jtag", "wdt";