treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ASL26555-16M.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "ASL26555", "ralink,rt3050-soc";
9 model = "Alpha ASL26555";
10
11 gpio-keys-polled {
12 compatible = "gpio-keys-polled";
13 #address-cells = <1>;
14 #size-cells = <0>;
15 poll-interval = <20>;
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 10 0>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio0 12 0>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29
30 gpio-leds {
31 compatible = "gpio-leds";
32
33 eth {
34 label = "asl26555:green:eth";
35 gpios = <&gpio0 0 1>;
36 };
37
38 wan-red {
39 label = "asl26555:red:wan";
40 gpios = <&gpio0 1 0>;
41 };
42
43 wan-green {
44 label = "asl26555:green:wan";
45 gpios = <&gpio0 2 0>;
46 };
47
48 wlan {
49 label = "asl26555:green:wlan";
50 gpios = <&gpio0 7 0>;
51 };
52
53 power-green {
54 label = "asl26555:green:power";
55 gpios = <&gpio0 8 0>;
56 };
57
58 power-red {
59 label = "asl26555:red:power";
60 gpios = <&gpio0 9 0>;
61 };
62
63 3g-green {
64 label = "asl26555:green:3g";
65 gpios = <&gpio0 14 1>;
66 };
67
68 3g-red {
69 label = "asl26555:red:3g";
70 gpios = <&gpio0 17 1>;
71 };
72 };
73 };
74
75 &gpio0 {
76 status = "okay";
77 };
78
79 &spi0 {
80 status = "okay";
81
82 m25p80@0 {
83 #address-cells = <1>;
84 #size-cells = <1>;
85 compatible = "jedec,spi-nor";
86 reg = <0>;
87 linux,modalias = "m25p80", "s25sl12801";
88 spi-max-frequency = <10000000>;
89
90 partition@0 {
91 label = "uboot";
92 reg = <0x0 0x30000>;
93 read-only;
94 };
95
96 partition@30000 {
97 label = "uboot-env";
98 reg = <0x30000 0x10000>;
99 read-only;
100 };
101
102 partition@40000 {
103 label = "factory";
104 reg = <0x40000 0x10000>;
105 read-only;
106 };
107
108 partition@50000 {
109 label = "firmware";
110 reg = <0x50000 0xf80000>;
111 };
112
113 partition@fd0000 {
114 label = "cert";
115 reg = <0xfd0000 0x10000>;
116 read-only;
117 };
118
119 partition@fe0000 {
120 label = "langpack";
121 reg = <0xfe0000 0x10000>;
122 read-only;
123 };
124
125 devdata: partition@ff0000 {
126 label = "devdata";
127 reg = <0xff0000 0x10000>;
128 read-only;
129 };
130 };
131 };
132
133 &pinctrl {
134 state_default: pinctrl0 {
135 gpio {
136 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
137 ralink,function = "gpio";
138 };
139 };
140 };
141
142 &ethernet {
143 mtd-mac-address = <&devdata 0x4004>;
144 };
145
146 &esw {
147 mediatek,portmap = <0x1e>;
148 };
149
150 &wmac {
151 ralink,mtd-eeprom = <&devdata 0x4000>;
152 };
153
154 &otg {
155 status = "okay";
156 };