ramips: add support for ALFA Network Quad-E4G
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620n_nexx_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-boot = &led_power;
11                 led-failsafe = &led_power;
12                 led-running = &led_power;
13                 led-upgrade = &led_power;
14                 label-mac-device = &ethernet;
15         };
16
17         keys {
18                 compatible = "gpio-keys";
19
20                 reset {
21                         label = "reset";
22                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
23                         linux,code = <KEY_RESTART>;
24                 };
25         };
26
27         leds {
28                 compatible = "gpio-leds";
29
30                 led_power: power {
31                         label = "wt3020:blue:power";
32                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
33                 };
34         };
35 };
36
37 &gpio2 {
38         status = "okay";
39 };
40
41 &gpio3 {
42         status = "okay";
43 };
44
45 &ethernet {
46         mtd-mac-address = <&factory 0x4>;
47         mediatek,portmap = "wllll";
48 };
49
50 &wmac {
51         ralink,mtd-eeprom = <&factory 0>;
52 };
53
54 &pinctrl {
55         state_default: pinctrl0 {
56                 default {
57                         ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
58                         ralink,function = "gpio";
59                 };
60         };
61 };