ramips: add support for ASUS RT-AC54U
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_asus_rt-ac54u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7620a_asus_rt-ac5x.dtsi"
5
6 / {
7 compatible = "asus,rt-ac54u", "ralink,mt7620a-soc";
8 model = "Asus RT-AC54U";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_power: power {
21 label = "rt-ac54u:blue:power";
22 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
23 };
24
25 usb {
26 label = "rt-ac54u:blue:usb";
27 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
28 trigger-sources = <&ohci_port1>, <&ehci_port1>;
29 linux,default-trigger = "usbport";
30 };
31
32 wifi2g {
33 label = "rt-ac54u:blue:wifi2g";
34 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy1tpt";
36 };
37 };
38 };
39
40 &ethernet {
41 mtd-mac-address = <&factory 0x22>;
42 };
43
44 &state_default {
45 gpio {
46 groups = "i2c", "wled", "uartf";
47 function = "gpio";
48 };
49 };
50
51 &pcie0 {
52 wifi@0,0 {
53 reg = <0x0000 0 0 0 0>;
54 mediatek,mtd-eeprom = <&factory 0x8000>;
55 ieee80211-freq-limit = <5000000 6000000>;
56
57 led {
58 led-sources = <2>;
59 };
60 };
61 };