blob: 121dadd125c0a28d35d3b0f46606f906bb31cd0e [file] [log] [blame]
Shawn Guo9daaf312011-10-17 08:42:17 +08001/*
2 * Copyright 2011 Freescale Semiconductor, Inc.
3 * Copyright 2011 Linaro Ltd.
4 *
5 * The code contained herein is licensed under the GNU General Public
6 * License. You may obtain a copy of the GNU General Public License
7 * Version 2 or later at the following locations:
8 *
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
11 */
12
13/dts-v1/;
Shawn Guo36dffd82013-04-07 10:49:34 +080014#include "imx51.dtsi"
Shawn Guo9daaf312011-10-17 08:42:17 +080015
16/ {
17 model = "Freescale i.MX51 Babbage Board";
18 compatible = "fsl,imx51-babbage", "fsl,imx51";
19
Shawn Guo9daaf312011-10-17 08:42:17 +080020 memory {
21 reg = <0x90000000 0x20000000>;
22 };
23
Shawn Guobe4ccfc2012-12-31 11:32:48 +080024 display@di0 {
25 compatible = "fsl,imx-parallel-display";
26 crtcs = <&ipu 0>;
27 interface-pix-fmt = "rgb24";
28 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +080029 pinctrl-0 = <&pinctrl_ipu_disp1>;
Fabio Estevam493a8632013-10-08 15:52:12 -030030 display-timings {
31 native-mode = <&timing0>;
32 timing0: dvi {
33 clock-frequency = <65000000>;
34 hactive = <1024>;
35 vactive = <768>;
36 hback-porch = <220>;
37 hfront-porch = <40>;
38 vback-porch = <21>;
39 vfront-porch = <7>;
40 hsync-len = <60>;
41 vsync-len = <10>;
42 };
43 };
Shawn Guobe4ccfc2012-12-31 11:32:48 +080044 };
Sascha Hauerd6aef842012-11-12 15:39:01 +010045
Shawn Guobe4ccfc2012-12-31 11:32:48 +080046 display@di1 {
47 compatible = "fsl,imx-parallel-display";
48 crtcs = <&ipu 1>;
49 interface-pix-fmt = "rgb565";
50 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +080051 pinctrl-0 = <&pinctrl_ipu_disp2>;
Fabio Estevam493a8632013-10-08 15:52:12 -030052 status = "disabled";
53 display-timings {
54 native-mode = <&timing1>;
55 timing1: claawvga {
56 clock-frequency = <27000000>;
57 hactive = <800>;
58 vactive = <480>;
59 hback-porch = <40>;
60 hfront-porch = <60>;
61 vback-porch = <10>;
62 vfront-porch = <10>;
63 hsync-len = <20>;
64 vsync-len = <10>;
65 hsync-active = <0>;
66 vsync-active = <0>;
67 de-active = <1>;
68 pixelclk-active = <0>;
69 };
70 };
Shawn Guo9daaf312011-10-17 08:42:17 +080071 };
72
73 gpio-keys {
74 compatible = "gpio-keys";
75
76 power {
77 label = "Power Button";
Alexander Shiyanbdb3eec2013-11-19 15:47:27 +040078 gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
Shawn Guo9daaf312011-10-17 08:42:17 +080079 linux,code = <116>; /* KEY_POWER */
80 gpio-key,wakeup;
81 };
82 };
Shawn Guoa15d9f82012-05-11 13:08:46 +080083
Liu Yinga198af22014-02-10 15:05:46 +080084 leds {
85 compatible = "gpio-leds";
86 pinctrl-names = "default";
87 pinctrl-0 = <&pinctrl_gpio_leds>;
88
89 led-diagnostic {
90 label = "diagnostic";
91 gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
92 };
93 };
94
Shawn Guoa15d9f82012-05-11 13:08:46 +080095 sound {
96 compatible = "fsl,imx51-babbage-sgtl5000",
97 "fsl,imx-audio-sgtl5000";
98 model = "imx51-babbage-sgtl5000";
99 ssi-controller = <&ssi2>;
100 audio-codec = <&sgtl5000>;
101 audio-routing =
102 "MIC_IN", "Mic Jack",
103 "Mic Jack", "Mic Bias",
104 "Headphone Jack", "HP_OUT";
105 mux-int-port = <2>;
106 mux-ext-port = <3>;
107 };
Fabio Estevam84bb0842013-06-09 22:07:47 -0300108
109 clocks {
Alexander Shiyan677e28b2013-07-27 11:19:45 +0400110 ckih1 {
111 clock-frequency = <22579200>;
112 };
113
Fabio Estevam84bb0842013-06-09 22:07:47 -0300114 clk_26M: codec_clock {
115 compatible = "fixed-clock";
116 reg=<0>;
117 #clock-cells = <0>;
118 clock-frequency = <26000000>;
Alexander Shiyanbdb3eec2013-11-19 15:47:27 +0400119 gpios = <&gpio4 26 GPIO_ACTIVE_LOW>;
Fabio Estevam84bb0842013-06-09 22:07:47 -0300120 };
121 };
Shawn Guo9daaf312011-10-17 08:42:17 +0800122};
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800123
124&esdhc1 {
125 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800126 pinctrl-0 = <&pinctrl_esdhc1>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800127 fsl,cd-controller;
128 fsl,wp-controller;
129 status = "okay";
130};
131
132&esdhc2 {
133 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800134 pinctrl-0 = <&pinctrl_esdhc2>;
Alexander Shiyanbdb3eec2013-11-19 15:47:27 +0400135 cd-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
136 wp-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800137 status = "okay";
138};
139
140&uart3 {
141 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800142 pinctrl-0 = <&pinctrl_uart3>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800143 fsl,uart-has-rtscts;
144 status = "okay";
145};
146
147&ecspi1 {
148 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800149 pinctrl-0 = <&pinctrl_ecspi1>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800150 fsl,spi-num-chipselects = <2>;
Alexander Shiyanbdb3eec2013-11-19 15:47:27 +0400151 cs-gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>,
Alexander Shiyand2176f22013-11-27 15:55:45 +0400152 <&gpio4 25 GPIO_ACTIVE_LOW>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800153 status = "okay";
154
155 pmic: mc13892@0 {
156 #address-cells = <1>;
157 #size-cells = <0>;
158 compatible = "fsl,mc13892";
159 spi-max-frequency = <6000000>;
Sascha Hauerdc071432013-06-25 15:51:59 +0200160 spi-cs-high;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800161 reg = <0>;
162 interrupt-parent = <&gpio1>;
Alexander Shiyan1cbb74f2013-11-07 12:45:08 +0400163 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800164
165 regulators {
166 sw1_reg: sw1 {
167 regulator-min-microvolt = <600000>;
168 regulator-max-microvolt = <1375000>;
169 regulator-boot-on;
170 regulator-always-on;
171 };
172
173 sw2_reg: sw2 {
174 regulator-min-microvolt = <900000>;
175 regulator-max-microvolt = <1850000>;
176 regulator-boot-on;
177 regulator-always-on;
178 };
179
180 sw3_reg: sw3 {
181 regulator-min-microvolt = <1100000>;
182 regulator-max-microvolt = <1850000>;
183 regulator-boot-on;
184 regulator-always-on;
185 };
186
187 sw4_reg: sw4 {
188 regulator-min-microvolt = <1100000>;
189 regulator-max-microvolt = <1850000>;
190 regulator-boot-on;
191 regulator-always-on;
192 };
193
194 vpll_reg: vpll {
195 regulator-min-microvolt = <1050000>;
196 regulator-max-microvolt = <1800000>;
197 regulator-boot-on;
198 regulator-always-on;
199 };
200
201 vdig_reg: vdig {
202 regulator-min-microvolt = <1650000>;
203 regulator-max-microvolt = <1650000>;
204 regulator-boot-on;
205 };
206
207 vsd_reg: vsd {
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <3150000>;
210 };
211
212 vusb2_reg: vusb2 {
213 regulator-min-microvolt = <2400000>;
214 regulator-max-microvolt = <2775000>;
215 regulator-boot-on;
216 regulator-always-on;
217 };
218
219 vvideo_reg: vvideo {
220 regulator-min-microvolt = <2775000>;
221 regulator-max-microvolt = <2775000>;
222 };
223
224 vaudio_reg: vaudio {
225 regulator-min-microvolt = <2300000>;
226 regulator-max-microvolt = <3000000>;
227 };
228
229 vcam_reg: vcam {
230 regulator-min-microvolt = <2500000>;
231 regulator-max-microvolt = <3000000>;
232 };
233
234 vgen1_reg: vgen1 {
235 regulator-min-microvolt = <1200000>;
236 regulator-max-microvolt = <1200000>;
237 };
238
239 vgen2_reg: vgen2 {
240 regulator-min-microvolt = <1200000>;
241 regulator-max-microvolt = <3150000>;
242 regulator-always-on;
243 };
244
245 vgen3_reg: vgen3 {
246 regulator-min-microvolt = <1800000>;
247 regulator-max-microvolt = <2900000>;
248 regulator-always-on;
249 };
250 };
251 };
252
253 flash: at45db321d@1 {
254 #address-cells = <1>;
255 #size-cells = <1>;
256 compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash";
257 spi-max-frequency = <25000000>;
258 reg = <1>;
259
260 partition@0 {
261 label = "U-Boot";
262 reg = <0x0 0x40000>;
263 read-only;
264 };
265
266 partition@40000 {
267 label = "Kernel";
268 reg = <0x40000 0x3c0000>;
269 };
270 };
271};
272
273&ssi2 {
274 fsl,mode = "i2s-slave";
275 status = "okay";
276};
277
278&iomuxc {
279 pinctrl-names = "default";
280 pinctrl-0 = <&pinctrl_hog>;
281
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800282 imx51-babbage {
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800283 pinctrl_hog: hoggrp {
284 fsl,pins = <
Shawn Guoe1641532013-02-20 10:32:52 +0800285 MX51_PAD_GPIO1_0__SD1_CD 0x20d5
286 MX51_PAD_GPIO1_1__SD1_WP 0x20d5
287 MX51_PAD_GPIO1_5__GPIO1_5 0x100
288 MX51_PAD_GPIO1_6__GPIO1_6 0x100
289 MX51_PAD_EIM_A27__GPIO2_21 0x5
290 MX51_PAD_CSPI1_SS0__GPIO4_24 0x85
291 MX51_PAD_CSPI1_SS1__GPIO4_25 0x85
Fabio Estevam84bb0842013-06-09 22:07:47 -0300292 MX51_PAD_CSPI1_RDY__GPIO4_26 0x80000000
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800293 >;
294 };
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800295
296 pinctrl_audmux: audmuxgrp {
297 fsl,pins = <
298 MX51_PAD_AUD3_BB_TXD__AUD3_TXD 0x80000000
299 MX51_PAD_AUD3_BB_RXD__AUD3_RXD 0x80000000
300 MX51_PAD_AUD3_BB_CK__AUD3_TXC 0x80000000
301 MX51_PAD_AUD3_BB_FS__AUD3_TXFS 0x80000000
302 >;
303 };
304
305 pinctrl_ecspi1: ecspi1grp {
306 fsl,pins = <
307 MX51_PAD_CSPI1_MISO__ECSPI1_MISO 0x185
308 MX51_PAD_CSPI1_MOSI__ECSPI1_MOSI 0x185
309 MX51_PAD_CSPI1_SCLK__ECSPI1_SCLK 0x185
310 >;
311 };
312
313 pinctrl_esdhc1: esdhc1grp {
314 fsl,pins = <
315 MX51_PAD_SD1_CMD__SD1_CMD 0x400020d5
316 MX51_PAD_SD1_CLK__SD1_CLK 0x20d5
317 MX51_PAD_SD1_DATA0__SD1_DATA0 0x20d5
318 MX51_PAD_SD1_DATA1__SD1_DATA1 0x20d5
319 MX51_PAD_SD1_DATA2__SD1_DATA2 0x20d5
320 MX51_PAD_SD1_DATA3__SD1_DATA3 0x20d5
321 >;
322 };
323
324 pinctrl_esdhc2: esdhc2grp {
325 fsl,pins = <
326 MX51_PAD_SD2_CMD__SD2_CMD 0x400020d5
327 MX51_PAD_SD2_CLK__SD2_CLK 0x20d5
328 MX51_PAD_SD2_DATA0__SD2_DATA0 0x20d5
329 MX51_PAD_SD2_DATA1__SD2_DATA1 0x20d5
330 MX51_PAD_SD2_DATA2__SD2_DATA2 0x20d5
331 MX51_PAD_SD2_DATA3__SD2_DATA3 0x20d5
332 >;
333 };
334
335 pinctrl_fec: fecgrp {
336 fsl,pins = <
337 MX51_PAD_EIM_EB2__FEC_MDIO 0x80000000
338 MX51_PAD_EIM_EB3__FEC_RDATA1 0x80000000
339 MX51_PAD_EIM_CS2__FEC_RDATA2 0x80000000
340 MX51_PAD_EIM_CS3__FEC_RDATA3 0x80000000
341 MX51_PAD_EIM_CS4__FEC_RX_ER 0x80000000
342 MX51_PAD_EIM_CS5__FEC_CRS 0x80000000
343 MX51_PAD_NANDF_RB2__FEC_COL 0x80000000
344 MX51_PAD_NANDF_RB3__FEC_RX_CLK 0x80000000
345 MX51_PAD_NANDF_D9__FEC_RDATA0 0x80000000
346 MX51_PAD_NANDF_D8__FEC_TDATA0 0x80000000
347 MX51_PAD_NANDF_CS2__FEC_TX_ER 0x80000000
348 MX51_PAD_NANDF_CS3__FEC_MDC 0x80000000
349 MX51_PAD_NANDF_CS4__FEC_TDATA1 0x80000000
350 MX51_PAD_NANDF_CS5__FEC_TDATA2 0x80000000
351 MX51_PAD_NANDF_CS6__FEC_TDATA3 0x80000000
352 MX51_PAD_NANDF_CS7__FEC_TX_EN 0x80000000
353 MX51_PAD_NANDF_RDY_INT__FEC_TX_CLK 0x80000000
Alexander Shiyan0c33f662013-11-27 15:55:46 +0400354 MX51_PAD_EIM_A20__GPIO2_14 0x85 /* Reset */
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800355 >;
356 };
357
Liu Yinga198af22014-02-10 15:05:46 +0800358 pinctrl_gpio_leds: gpioledsgrp {
359 fsl,pins = <
360 MX51_PAD_EIM_D22__GPIO2_6 0x80000000
361 >;
362 };
363
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800364 pinctrl_i2c2: i2c2grp {
365 fsl,pins = <
366 MX51_PAD_KEY_COL4__I2C2_SCL 0x400001ed
367 MX51_PAD_KEY_COL5__I2C2_SDA 0x400001ed
368 >;
369 };
370
371 pinctrl_ipu_disp1: ipudisp1grp {
372 fsl,pins = <
373 MX51_PAD_DISP1_DAT0__DISP1_DAT0 0x5
374 MX51_PAD_DISP1_DAT1__DISP1_DAT1 0x5
375 MX51_PAD_DISP1_DAT2__DISP1_DAT2 0x5
376 MX51_PAD_DISP1_DAT3__DISP1_DAT3 0x5
377 MX51_PAD_DISP1_DAT4__DISP1_DAT4 0x5
378 MX51_PAD_DISP1_DAT5__DISP1_DAT5 0x5
379 MX51_PAD_DISP1_DAT6__DISP1_DAT6 0x5
380 MX51_PAD_DISP1_DAT7__DISP1_DAT7 0x5
381 MX51_PAD_DISP1_DAT8__DISP1_DAT8 0x5
382 MX51_PAD_DISP1_DAT9__DISP1_DAT9 0x5
383 MX51_PAD_DISP1_DAT10__DISP1_DAT10 0x5
384 MX51_PAD_DISP1_DAT11__DISP1_DAT11 0x5
385 MX51_PAD_DISP1_DAT12__DISP1_DAT12 0x5
386 MX51_PAD_DISP1_DAT13__DISP1_DAT13 0x5
387 MX51_PAD_DISP1_DAT14__DISP1_DAT14 0x5
388 MX51_PAD_DISP1_DAT15__DISP1_DAT15 0x5
389 MX51_PAD_DISP1_DAT16__DISP1_DAT16 0x5
390 MX51_PAD_DISP1_DAT17__DISP1_DAT17 0x5
391 MX51_PAD_DISP1_DAT18__DISP1_DAT18 0x5
392 MX51_PAD_DISP1_DAT19__DISP1_DAT19 0x5
393 MX51_PAD_DISP1_DAT20__DISP1_DAT20 0x5
394 MX51_PAD_DISP1_DAT21__DISP1_DAT21 0x5
395 MX51_PAD_DISP1_DAT22__DISP1_DAT22 0x5
396 MX51_PAD_DISP1_DAT23__DISP1_DAT23 0x5
397 MX51_PAD_DI1_PIN2__DI1_PIN2 0x5
398 MX51_PAD_DI1_PIN3__DI1_PIN3 0x5
399 >;
400 };
401
402 pinctrl_ipu_disp2: ipudisp2grp {
403 fsl,pins = <
404 MX51_PAD_DISP2_DAT0__DISP2_DAT0 0x5
405 MX51_PAD_DISP2_DAT1__DISP2_DAT1 0x5
406 MX51_PAD_DISP2_DAT2__DISP2_DAT2 0x5
407 MX51_PAD_DISP2_DAT3__DISP2_DAT3 0x5
408 MX51_PAD_DISP2_DAT4__DISP2_DAT4 0x5
409 MX51_PAD_DISP2_DAT5__DISP2_DAT5 0x5
410 MX51_PAD_DISP2_DAT6__DISP2_DAT6 0x5
411 MX51_PAD_DISP2_DAT7__DISP2_DAT7 0x5
412 MX51_PAD_DISP2_DAT8__DISP2_DAT8 0x5
413 MX51_PAD_DISP2_DAT9__DISP2_DAT9 0x5
414 MX51_PAD_DISP2_DAT10__DISP2_DAT10 0x5
415 MX51_PAD_DISP2_DAT11__DISP2_DAT11 0x5
416 MX51_PAD_DISP2_DAT12__DISP2_DAT12 0x5
417 MX51_PAD_DISP2_DAT13__DISP2_DAT13 0x5
418 MX51_PAD_DISP2_DAT14__DISP2_DAT14 0x5
419 MX51_PAD_DISP2_DAT15__DISP2_DAT15 0x5
420 MX51_PAD_DI2_PIN2__DI2_PIN2 0x5
421 MX51_PAD_DI2_PIN3__DI2_PIN3 0x5
422 MX51_PAD_DI2_DISP_CLK__DI2_DISP_CLK 0x5
423 MX51_PAD_DI_GP4__DI2_PIN15 0x5
424 >;
425 };
426
427 pinctrl_kpp: kppgrp {
428 fsl,pins = <
429 MX51_PAD_KEY_ROW0__KEY_ROW0 0xe0
430 MX51_PAD_KEY_ROW1__KEY_ROW1 0xe0
431 MX51_PAD_KEY_ROW2__KEY_ROW2 0xe0
432 MX51_PAD_KEY_ROW3__KEY_ROW3 0xe0
433 MX51_PAD_KEY_COL0__KEY_COL0 0xe8
434 MX51_PAD_KEY_COL1__KEY_COL1 0xe8
435 MX51_PAD_KEY_COL2__KEY_COL2 0xe8
436 MX51_PAD_KEY_COL3__KEY_COL3 0xe8
437 >;
438 };
439
440 pinctrl_uart1: uart1grp {
441 fsl,pins = <
442 MX51_PAD_UART1_RXD__UART1_RXD 0x1c5
443 MX51_PAD_UART1_TXD__UART1_TXD 0x1c5
444 MX51_PAD_UART1_RTS__UART1_RTS 0x1c5
445 MX51_PAD_UART1_CTS__UART1_CTS 0x1c5
446 >;
447 };
448
449 pinctrl_uart2: uart2grp {
450 fsl,pins = <
451 MX51_PAD_UART2_RXD__UART2_RXD 0x1c5
452 MX51_PAD_UART2_TXD__UART2_TXD 0x1c5
453 >;
454 };
455
456 pinctrl_uart3: uart3grp {
457 fsl,pins = <
458 MX51_PAD_EIM_D25__UART3_RXD 0x1c5
459 MX51_PAD_EIM_D26__UART3_TXD 0x1c5
460 MX51_PAD_EIM_D27__UART3_RTS 0x1c5
461 MX51_PAD_EIM_D24__UART3_CTS 0x1c5
462 >;
463 };
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800464 };
465};
466
467&uart1 {
468 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800469 pinctrl-0 = <&pinctrl_uart1>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800470 fsl,uart-has-rtscts;
471 status = "okay";
472};
473
474&uart2 {
475 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800476 pinctrl-0 = <&pinctrl_uart2>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800477 status = "okay";
478};
479
480&i2c2 {
481 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800482 pinctrl-0 = <&pinctrl_i2c2>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800483 status = "okay";
484
485 sgtl5000: codec@0a {
486 compatible = "fsl,sgtl5000";
487 reg = <0x0a>;
Fabio Estevam84bb0842013-06-09 22:07:47 -0300488 clocks = <&clk_26M>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800489 VDDA-supply = <&vdig_reg>;
490 VDDIO-supply = <&vvideo_reg>;
491 };
492};
493
494&audmux {
495 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800496 pinctrl-0 = <&pinctrl_audmux>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800497 status = "okay";
498};
499
500&fec {
501 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800502 pinctrl-0 = <&pinctrl_fec>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800503 phy-mode = "mii";
Alexander Shiyan0c33f662013-11-27 15:55:46 +0400504 phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
505 phy-reset-duration = <1>;
Shawn Guobe4ccfc2012-12-31 11:32:48 +0800506 status = "okay";
507};
Liu Ying67eb7c02013-01-03 20:37:34 +0800508
509&kpp {
510 pinctrl-names = "default";
Shawn Guo5a2a7d52013-11-04 16:05:37 +0800511 pinctrl-0 = <&pinctrl_kpp>;
Alexander Shiyan72d86d22014-01-11 10:54:19 +0400512 linux,keymap = <
513 MATRIX_KEY(0, 0, KEY_UP)
514 MATRIX_KEY(0, 1, KEY_DOWN)
515 MATRIX_KEY(0, 2, KEY_VOLUMEDOWN)
516 MATRIX_KEY(0, 3, KEY_HOME)
517 MATRIX_KEY(1, 0, KEY_RIGHT)
518 MATRIX_KEY(1, 1, KEY_LEFT)
519 MATRIX_KEY(1, 2, KEY_ENTER)
520 MATRIX_KEY(1, 3, KEY_VOLUMEUP)
521 MATRIX_KEY(2, 0, KEY_F6)
522 MATRIX_KEY(2, 1, KEY_F8)
523 MATRIX_KEY(2, 2, KEY_F9)
524 MATRIX_KEY(2, 3, KEY_F10)
525 MATRIX_KEY(3, 0, KEY_F1)
526 MATRIX_KEY(3, 1, KEY_F2)
527 MATRIX_KEY(3, 2, KEY_F3)
528 MATRIX_KEY(3, 3, KEY_POWER)
529 >;
Liu Ying67eb7c02013-01-03 20:37:34 +0800530 status = "okay";
531};