ramips: fix power LED DTB for wt3020
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WT3020.dtsi
1 #include "mt7620n.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "nexx,wt3020", "ralink,mt7620n-soc";
8
9 aliases {
10 led-status = &led_power;
11 };
12
13 gpio-keys-polled {
14 compatible = "gpio-keys-polled";
15 poll-interval = <20>;
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22 };
23
24 gpio-leds {
25 compatible = "gpio-leds";
26
27 led_power: power {
28 label = "wt3020:blue:power";
29 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
30 };
31 };
32 };
33
34 &gpio2 {
35 status = "okay";
36 };
37
38 &gpio3 {
39 status = "okay";
40 };
41
42 &ethernet {
43 mtd-mac-address = <&factory 0x4>;
44 mediatek,portmap = "wllll";
45 };
46
47 &wmac {
48 ralink,mtd-eeprom = <&factory 0>;
49 };
50
51 &pinctrl {
52 state_default: pinctrl0 {
53 default {
54 ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
55 ralink,function = "gpio";
56 };
57 };
58 };