ramips: fix flash layout for TP-Link TL-WR841N v14
[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 label-mac-device = &ethernet;
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_power: power {
22 label = "rt-ac54u:blue:power";
23 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
24 };
25
26 usb {
27 label = "rt-ac54u:blue:usb";
28 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
29 trigger-sources = <&ohci_port1>, <&ehci_port1>;
30 linux,default-trigger = "usbport";
31 };
32
33 wifi2g {
34 label = "rt-ac54u:blue:wifi2g";
35 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy1tpt";
37 };
38 };
39 };
40
41 &ethernet {
42 mtd-mac-address = <&factory 0x28>;
43 };
44
45 &state_default {
46 gpio {
47 groups = "i2c", "wled", "uartf";
48 function = "gpio";
49 };
50 };
51
52 &pcie0 {
53 wifi@0,0 {
54 reg = <0x0000 0 0 0 0>;
55 mediatek,mtd-eeprom = <&factory 0x8000>;
56 ieee80211-freq-limit = <5000000 6000000>;
57
58 led {
59 led-sources = <2>;
60 };
61 };
62 };