ramips: add support for TP-Link MR6400 v5
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_tl-mr6400-v5.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an_tplink_8m.dtsi"
4
5 / {
6 compatible = "tplink,tl-mr6400-v5", "mediatek,mt7628an-soc";
7 model = "TP-Link TL-MR6400 v5";
8
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24
25 rfkill {
26 label = "rfkill";
27 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RFKILL>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 wlan {
36 label = "white:wlan";
37 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0tpt";
39 };
40
41 lan {
42 label = "white:lan";
43 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
44 };
45
46 led_power: power {
47 label = "white:power";
48 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
49 };
50
51 wan {
52 label = "white:wan";
53 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
54 };
55
56 signal1 {
57 label = "white:signal1";
58 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
59 };
60
61 signal2 {
62 label = "white:signal2";
63 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
64 };
65
66 signal3 {
67 label = "white:signal3";
68 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
69 };
70 };
71 };
72
73 &ehci {
74 status = "okay";
75 };
76
77 &ohci {
78 status = "okay";
79 };
80
81 &state_default {
82 gpio {
83 groups = "i2c", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "uart1", "wdt";
84 function = "gpio";
85 };
86 };
87
88 &esw {
89 mediatek,portmap = <0x37>;
90 mediatek,portdisable = <0x30>;
91 };
92
93 &wmac {
94 mtd-mac-address = <&factory 0x1f100>;
95 };
96
97 &ethernet {
98 mtd-mac-address = <&factory 0x1f100>;
99 };