treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / WF-2881.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
9 model = "NETIS WF-2881";
10
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x8000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,57600";
18 };
19
20 nand@1e003000 {
21 status = "okay";
22
23 partition@0 {
24 label = "u-boot";
25 reg = <0x0 0x30000>;
26 read-only;
27 };
28
29 partition@30000 {
30 label = "u-boot-env";
31 reg = <0x30000 0x1000>;
32 read-only;
33 };
34
35 partition@80000 {
36 label = "config";
37 reg = <0x80000 0x80000>;
38 read-only;
39 };
40
41 factory: partition@100000 {
42 label = "factory";
43 reg = <0x100000 0x40000>;
44 read-only;
45 };
46
47 partition@140000 {
48 label = "firmware";
49 reg = <0x140000 0x7E40000>;
50 };
51 };
52
53 gpio-leds {
54 compatible = "gpio-leds";
55
56 usb {
57 label = "wf-2881:green:usb";
58 gpios = <&gpio0 6 1>;
59 };
60
61 wps {
62 label = "wf-2881:green:wps";
63 gpios = <&gpio0 0 1>;
64 };
65 };
66
67 gpio-keys-polled {
68 compatible = "gpio-keys-polled";
69 #address-cells = <1>;
70 #size-cells = <0>;
71 poll-interval = <20>;
72
73 reset {
74 label = "reset";
75 gpios = <&gpio0 12 1>;
76 linux,code = <KEY_RESTART>;
77 };
78 };
79 };
80
81 &spi0 {
82 status="disabled";
83 };
84
85 &pcie {
86 status = "okay";
87
88 pcie0 {
89 mt76@0,0 {
90 reg = <0x0000 0 0 0 0>;
91 device_type = "pci";
92 mediatek,mtd-eeprom = <&factory 0x8000>;
93 mediatek,2ghz = <0>;
94 };
95 };
96
97 pcie1 {
98 mt76@1,0 {
99 reg = <0x0000 0 0 0 0>;
100 device_type = "pci";
101 mediatek,mtd-eeprom = <&factory 0x0000>;
102 mediatek,5ghz = <0>;
103 };
104 };
105 };
106
107 &ethernet {
108 mtd-mac-address = <&factory 0xe006>;
109 };
110
111 &pinctrl {
112 state_default: pinctrl0 {
113 gpio {
114 ralink,group = "uart3", "jtag";
115 ralink,function = "gpio";
116 };
117 };
118 };