ramips: dts: Unify naming of gpio-keys nodes
[openwrt/openwrt.git] / target / linux / ramips / dts / AWM002-EVB.dtsi
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "asiarf,awm002-evb", "ralink,rt5350-soc";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 tx {
13 label = "awm002-evb:green:tx";
14 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
15 };
16
17 rx {
18 label = "awm002-evb:green:rx";
19 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
20 };
21
22 wps {
23 label = "awm002-evb:green:wps";
24 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 reset_wps {
33 label = "reset_wps";
34 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37
38 mode {
39 label = "mode";
40 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
41 linux,code = <BTN_0>;
42 };
43 };
44 };
45
46 &ethernet {
47 mtd-mac-address = <&factory 0x28>;
48 };
49
50 &wmac {
51 ralink,mtd-eeprom = <&factory 0>;
52 };
53
54 &pinctrl {
55 state_default: pinctrl0 {
56 gpio {
57 ralink,group = "i2c", "jtag";
58 ralink,function = "gpio";
59 };
60 };
61 };
62
63 &esw {
64 mediatek,portmap = <0x3f>;
65 };
66
67 &ehci {
68 status = "okay";
69 };
70
71 &ohci {
72 status = "okay";
73 };