ramips: change the TP-Link dtsi filename
[openwrt/openwrt.git] / target / linux / ramips / dts / TL-MR3420V5.dts
1 /dts-v1/;
2
3 #include "TPLINK-8M.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "tplink,tl-mr3420-v5", "mediatek,mt7628an-soc";
10 model = "TP-Link TL-MR3420 v5";
11
12 gpio-keys-polled {
13 compatible = "gpio-keys-polled";
14 #address-cells = <1>;
15 #size-cells = <0>;
16 poll-interval = <20>;
17
18 reset {
19 label = "reset";
20 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
22 };
23
24 rfkill {
25 label = "rfkill";
26 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RFKILL>;
28 };
29 };
30
31 gpio-leds {
32 compatible = "gpio-leds";
33
34 lan {
35 label = "tl-mr3420-v5:green:lan";
36 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
37 };
38
39 power {
40 label = "tl-mr3420-v5:green:power";
41 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
42 };
43
44 usb {
45 label = "tl-mr3420-v5:green:usb";
46 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
47 };
48
49 wan {
50 label = "tl-mr3420-v5:green:wan";
51 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
52 };
53
54 wan_amber {
55 label = "tl-mr3420-v5:amber:wan";
56 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
57 };
58
59 wlan {
60 label = "tl-mr3420-v5:green:wlan";
61 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
62 };
63
64 wps {
65 label = "tl-mr3420-v5:green:wps";
66 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
67 };
68 };
69 };
70
71 &ehci {
72 status = "okay";
73 };
74
75 &ohci {
76 status = "okay";
77 };
78
79 &pinctrl {
80 state_default: pinctrl0 {
81 gpio {
82 ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an";
83 ralink,function = "gpio";
84 };
85 };
86 };