ramips: move common parts into dtsi
[openwrt/staging/chunkeey.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 gpio-keys-polled {
10 compatible = "gpio-keys-polled";
11 #address-cells = <1>;
12 #size-cells = <0>;
13 poll-interval = <20>;
14
15 reset {
16 label = "reset";
17 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
18 linux,code = <KEY_RESTART>;
19 };
20 };
21
22 gpio-leds {
23 compatible = "gpio-leds";
24
25 power {
26 label = "wt3020:blue:power";
27 gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
28 };
29 };
30 };
31
32 &gpio2 {
33 status = "okay";
34 };
35
36 &gpio3 {
37 status = "okay";
38 };
39
40
41 &ehci {
42 status = "okay";
43 };
44
45 &ohci {
46 status = "okay";
47 };
48
49 &ethernet {
50 mtd-mac-address = <&factory 0x4>;
51 mediatek,portmap = "wllll";
52 };
53
54 &wmac {
55 ralink,mtd-eeprom = <&factory 0>;
56 };
57
58 &pinctrl {
59 state_default: pinctrl0 {
60 default {
61 ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
62 ralink,function = "gpio";
63 };
64 };
65 };