treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / TEW-691GR.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "TEW-691GR", "ralink,rt3883-soc";
9 model = "TRENDnet TEW-691GR";
10
11 nor-flash@1c000000 {
12 compatible = "cfi-flash";
13 reg = <0x1c000000 0x800000>;
14 bank-width = <2>;
15 #address-cells = <1>;
16 #size-cells = <1>;
17
18 partition@0 {
19 reg = <0x0 0x0030000>;
20 label = "u-boot";
21 read-only;
22 };
23
24 partition@30000 {
25 reg = <0x00030000 0x00010000>;
26 label = "u-boot-env";
27 read-only;
28 };
29
30 factory: partition@40000 {
31 reg = <0x00040000 0x00010000>;
32 label = "factory";
33 read-only;
34 };
35
36 partition@50000 {
37 reg = <0x00050000 0x007b0000>;
38 label = "firmware";
39 };
40 };
41
42 gpio-keys-polled {
43 compatible = "gpio-keys-polled";
44 #address-cells = <1>;
45 #size-cells = <0>;
46 poll-interval = <100>;
47
48 reset {
49 label = "reset";
50 gpios = <&gpio0 10 1>;
51 linux,code = <KEY_RESTART>;
52 };
53
54 wps {
55 label = "wps";
56 gpios = <&gpio1 2 1>;
57 linux,code = <KEY_WPS_BUTTON>;
58 };
59
60 rfkill {
61 label = "rfkill";
62 gpios = <&gpio0 0 1>;
63 linux,code = <KEY_RFKILL>;
64 };
65 };
66
67 gpio-leds {
68 compatible = "gpio-leds";
69
70 wps {
71 label = "tew-691gr:green:wps";
72 gpios = <&gpio0 9 1>;
73 };
74 };
75 };
76
77 &gpio1 {
78 status = "okay";
79 };
80
81 &pinctrl {
82 state_default: pinctrl0 {
83 gpio {
84 ralink,group = "spi", "i2c", "jtag", "uartf";
85 ralink,function = "gpio";
86 };
87 };
88 };
89
90 &ethernet {
91 mtd-mac-address = <&factory 0x4>;
92
93 port@0 {
94 phy-handle = <&phy0>;
95 phy-mode = "rgmii";
96 };
97
98 mdio-bus {
99 status = "okay";
100
101 phy0: ethernet-phy@0 {
102 reg = <0>;
103 phy-mode = "rgmii";
104 };
105 };
106 };
107
108 &wmac {
109 status = "okay";
110 ralink,mtd-eeprom = <&factory 0x0>;
111 ralink,5ghz = <0>;
112 mtd-mac-address = <&factory 0x4>;
113 mtd-mac-address-increment = <1>;
114 };