ramips: update device tree source files
[librecmc/librecmc.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         gpio-keys-polled {
29                 compatible = "gpio-keys-polled";
30                 #address-cells = <1>;
31                 #size-cells = <0>;
32                 poll-interval = <20>;
33
34                 reset_wps {
35                         label = "reset_wps";
36                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
37                         linux,code = <KEY_RESTART>;
38                 };
39
40                 mode {
41                         label = "mode";
42                         gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
43                         linux,code = <BTN_0>;
44                 };
45         };
46 };
47
48 &ethernet {
49         mtd-mac-address = <&factory 0x28>;
50 };
51
52 &wmac {
53         ralink,mtd-eeprom = <&factory 0>;
54 };
55
56 &pinctrl {
57         state_default: pinctrl0 {
58                 gpio {
59                         ralink,group = "i2c", "jtag";
60                         ralink,function = "gpio";
61                 };
62         };
63 };
64
65 &esw {
66         mediatek,portmap = <0x3f>;
67 };
68
69 &ehci {
70         status = "okay";
71 };
72
73 &ohci {
74         status = "okay";
75 };