bmips: increment polled keys interval to 100
[openwrt/staging/dedeckeh.git] / target / linux / bmips / dts / bcm63168-sercomm-shg2500.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm63268.dtsi"
4
5 / {
6 model = "Sercomm SHG2500";
7 compatible = "sercomm,shg2500", "brcm,bcm63168", "brcm,bcm63268";
8
9 aliases {
10 led-boot = &led_power_red;
11 led-failsafe = &led_power_red;
12 led-running = &led_power_red;
13 led-upgrade = &led_power_red;
14
15 led-internet = &led_internet_green;
16 led-usb = &led_modem_green;
17 led-wireless = &led_wireless_green;
18 };
19
20 i2c {
21 compatible = "i2c-gpio";
22 sda-gpios = <&gpio 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
23 scl-gpios = <&gpio 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
24 #address-cells = <1>;
25 #size-cells = <0>;
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <100>;
31
32 wps {
33 label = "wps";
34 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 debounce-interval = <60>;
37 };
38
39 reset {
40 label = "reset";
41 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 debounce-interval = <60>;
44 };
45 };
46
47 bcm4360-sprom {
48 compatible = "brcm,bcma-sprom";
49
50 pci-bus = <1>;
51 pci-dev = <0>;
52
53 nvmem-cells = <&macaddr_cferom_6a0>;
54 nvmem-cell-names = "mac-address";
55 mac-address-increment = <1>;
56
57 brcm,sprom = "brcm/bcm4360-sprom.bin";
58 };
59 };
60
61 &ehci {
62 status = "okay";
63 };
64
65 &ethernet {
66 status = "okay";
67
68 nvmem-cells = <&macaddr_cferom_6a0>;
69 nvmem-cell-names = "mac-address";
70 };
71
72 &hsspi {
73 status = "okay";
74
75 led-controller@1 {
76 compatible = "sercomm,msp430-leds";
77 reg = <1>;
78 spi-max-frequency = <500000>;
79
80 led@1 {
81 reg = <1>;
82 label = "red:modem";
83 };
84
85 led_modem_green: led@2 {
86 reg = <2>;
87 label = "green:modem";
88 };
89
90 led@3 {
91 reg = <3>;
92 label = "blue:modem";
93 };
94
95 led@4 {
96 reg = <4>;
97 label = "red:internet";
98 };
99
100 led@5 {
101 reg = <5>;
102 label = "red:phone";
103 };
104
105 led@6 {
106 reg = <6>;
107 label = "green:phone";
108 };
109
110 led_wireless_green: led@7 {
111 reg = <7>;
112 label = "green:wifi";
113 };
114
115 led_power_red: led@8 {
116 reg = <8>;
117 label = "red:power";
118 };
119
120 led_internet_green: led@9 {
121 reg = <9>;
122 label = "green:internet";
123 };
124 };
125 };
126
127 &mdio_int {
128 phy12: ethernet-phy@c {
129 compatible = "ethernet-phy-ieee802.3-c22";
130 reg = <12>;
131 };
132 };
133
134 &mdio_ext {
135 switch@1e {
136 compatible = "brcm,bcm53125";
137 reg = <30>;
138
139 dsa,member = <1 0>;
140
141 ports {
142 #address-cells = <1>;
143 #size-cells = <0>;
144
145 port@1 {
146 reg = <1>;
147 label = "lan1";
148 };
149
150 port@2 {
151 reg = <2>;
152 label = "lan2";
153 };
154
155 port@3 {
156 reg = <3>;
157 label = "lan3";
158 };
159
160 port@4 {
161 reg = <4>;
162 label = "lan4";
163 };
164
165 port@8 {
166 reg = <8>;
167
168 phy-mode = "rgmii";
169 ethernet = <&switch0port4>;
170
171 fixed-link {
172 speed = <1000>;
173 full-duplex;
174 };
175 };
176 };
177 };
178 };
179
180 &nflash {
181 status = "okay";
182
183 nandcs@0 {
184 compatible = "brcm,nandcs";
185 reg = <0>;
186 nand-ecc-step-size = <512>;
187 nand-ecc-strength = <15>;
188 nand-on-flash-bbt;
189 brcm,nand-oob-sector-size = <64>;
190
191 #address-cells = <1>;
192 #size-cells = <1>;
193
194 partitions {
195 compatible = "fixed-partitions";
196 #address-cells = <1>;
197 #size-cells = <1>;
198
199 cferom: partition@0 {
200 label = "cferom";
201 reg = <0x0000000 0x0020000>;
202 read-only;
203 };
204
205 partition@20000 {
206 label = "part_map";
207 reg = <0x0020000 0x00a0000>;
208 read-only;
209 };
210
211 partition@c0000 {
212 label = "cferam1";
213 reg = <0x00c0000 0x0140000>;
214 read-only;
215 };
216
217 partition@200000 {
218 label = "cferam2";
219 reg = <0x0200000 0x0140000>;
220 read-only;
221 };
222
223 artition@6920000 {
224 label = "bootflag1";
225 reg = <0x6920000 0x0140000>;
226 };
227
228 partition@6a60000 {
229 label = "bootflag2";
230 reg = <0x6a60000 0x0140000>;
231 };
232
233 partition@520000 {
234 compatible = "sercomm,wfi";
235 label = "wfi";
236 reg = <0x0520000 0x6400000>;
237 };
238
239 partition@6ba0000 {
240 label = "xml_cfg";
241 reg = <0x6ba0000 0x0280000>;
242 read-only;
243 };
244
245 partition@6e20000 {
246 label = "app_data";
247 reg = <0x6e20000 0x0280000>;
248 read-only;
249 };
250 };
251 };
252 };
253
254 &ohci {
255 status = "okay";
256 };
257
258 &pcie {
259 status = "okay";
260 };
261
262 &pinctrl {
263 pinctrl_uart1: uart1-pins {
264 pinctrl_uart1_sdin: uart1_sdin {
265 function = "uart1_sdin";
266 pins = "gpio12";
267 };
268
269 pinctrl_uart1_sdout: uart1_sdout {
270 function = "uart1_sdout";
271 pins = "gpio13";
272 };
273 };
274 };
275
276 &switch0 {
277 dsa,member = <0 0>;
278
279 ports {
280 port@3 {
281 reg = <3>;
282 label = "wan";
283
284 phy-handle = <&phy12>;
285 phy-mode = "gmii";
286 };
287
288 switch0port4: port@4 {
289 reg = <4>;
290 label = "extsw";
291
292 phy-mode = "rgmii";
293
294 fixed-link {
295 speed = <1000>;
296 full-duplex;
297 };
298 };
299 };
300 };
301
302 &uart0 {
303 status = "okay";
304 };
305
306 &uart1 {
307 status = "okay";
308
309 pinctrl-names = "default";
310 pinctrl-0 = <&pinctrl_uart1>;
311 };
312
313 &usbh {
314 status = "okay";
315 };
316
317 &cferom {
318 compatible = "nvmem-cells";
319 #address-cells = <1>;
320 #size-cells = <1>;
321
322 macaddr_cferom_6a0: macaddr@6a0 {
323 reg = <0x6a0 0x6>;
324 };
325 };