treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / WT3020-8M.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "wt3020", "ralink,mt7620n-soc";
9 model = "Nexx WT3020";
10
11 gpio-keys-polled {
12 compatible = "gpio-keys-polled";
13 #address-cells = <1>;
14 #size-cells = <0>;
15 poll-interval = <20>;
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 1 1>;
20 linux,code = <KEY_RESTART>;
21 };
22 };
23
24 gpio-leds {
25 compatible = "gpio-leds";
26
27 power {
28 label = "wt3020:blue:power";
29 gpios = <&gpio3 0 0>;
30 };
31 };
32 };
33
34 &gpio2 {
35 status = "okay";
36 };
37
38 &gpio3 {
39 status = "okay";
40 };
41
42 &spi0 {
43 status = "okay";
44
45 m25p80@0 {
46 #address-cells = <1>;
47 #size-cells = <1>;
48 compatible = "jedec,spi-nor";
49 reg = <0>;
50 linux,modalias = "m25p80", "w25q64";
51 spi-max-frequency = <10000000>;
52
53 partition@0 {
54 label = "u-boot";
55 reg = <0x0 0x30000>;
56 read-only;
57 };
58
59 partition@30000 {
60 label = "u-boot-env";
61 reg = <0x30000 0x10000>;
62 read-only;
63 };
64
65 factory: partition@40000 {
66 label = "factory";
67 reg = <0x40000 0x10000>;
68 read-only;
69 };
70
71 partition@50000 {
72 label = "firmware";
73 reg = <0x50000 0x7b0000>;
74 };
75 };
76 };
77
78 &ehci {
79 status = "okay";
80 };
81
82 &ohci {
83 status = "okay";
84 };
85
86 &ethernet {
87 mtd-mac-address = <&factory 0x4>;
88 mediatek,portmap = "wllll";
89 };
90
91 &wmac {
92 ralink,mtd-eeprom = <&factory 0>;
93 };
94
95 &pinctrl {
96 state_default: pinctrl0 {
97 default {
98 ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
99 ralink,function = "gpio";
100 };
101 };
102 };