treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MINIEMBWIFI.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "MINIEMBWIFI", "ralink,rt3052-soc";
9 model = "Omnima MiniEMBWiFi";
10
11 gpio-leds {
12 compatible = "gpio-leds";
13
14 status {
15 label = "miniembwifi:green:status";
16 gpios = <&gpio0 9 1>;
17 };
18
19 wlan {
20 label = "miniembwifi:green:wlan";
21 gpios = <&gpio0 14 1>;
22 };
23 };
24
25 gpio-keys-polled {
26 compatible = "gpio-keys-polled";
27 #address-cells = <1>;
28 #size-cells = <0>;
29 poll-interval = <20>;
30
31 reset {
32 label = "reset";
33 gpios = <&gpio0 12 1>;
34 linux,code = <KEY_RESTART>;
35 };
36 };
37
38 cfi@1f000000 {
39 compatible = "cfi-flash";
40 reg = <0x1f000000 0x800000>;
41 bank-width = <2>;
42 device-width = <2>;
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "u-boot";
48 reg = <0x0 0x30000>;
49 read-only;
50 };
51
52 partition@30000 {
53 label = "u-boot-env";
54 reg = <0x30000 0x10000>;
55 read-only;
56 };
57
58 factory: partition@40000 {
59 label = "factory";
60 reg = <0x40000 0x10000>;
61 read-only;
62 };
63
64 partition@50000 {
65 label = "firmware";
66 reg = <0x50000 0x7b0000>;
67 };
68 };
69 };
70
71 &pinctrl {
72 state_default: pinctrl0 {
73 gpio {
74 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
75 ralink,function = "gpio";
76 };
77 };
78 };
79
80 &ethernet {
81 mtd-mac-address = <&factory 0x28>;
82 };
83
84 &esw {
85 mediatek,portmap = <0x2f>;
86 };
87
88 &wmac {
89 ralink,mtd-eeprom = <&factory 0>;
90 };
91
92 &otg {
93 status = "okay";
94 };