]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: dts: imx6sl: add keypad support for i.mx6sl-evk board.
authorAnson Huang <b20788@freescale.com>
Tue, 14 Jan 2014 09:30:28 +0000 (17:30 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 15 Jan 2014 05:56:31 +0000 (13:56 +0800)
commit686932484c17cbcfc06b0d4927cf2ef936b89da7
tree50cbe19a8287653ed10329bdd9ac3c1f5505e90d
parentbdf94b604c210b7a73ab339844a729f84bb611f2
ARM: dts: imx6sl: add keypad support for i.mx6sl-evk board.

i.MX6SL EVK board has a 3*3 keypad matrix to support 8 keypads,
enable them, the keymap is as below:

SW6:  MATRIX_KEY(0x0, 0x0, KEY_UP)         /* ROW0, COL0 */
SW7:  MATRIX_KEY(0x0, 0x1, KEY_DOWN)       /* ROW0, COL1 */
SW8:  MATRIX_KEY(0x0, 0x2, KEY_ENTER)      /* ROW0, COL2 */
SW9:  MATRIX_KEY(0x1, 0x0, KEY_HOME)       /* ROW1, COL0 */
SW10: MATRIX_KEY(0x1, 0x1, KEY_RIGHT)      /* ROW1, COL1 */
SW11: MATRIX_KEY(0x1, 0x2, KEY_LEFT)       /* ROW1, COL2 */
SW12: MATRIX_KEY(0x2, 0x0, KEY_VOLUMEDOWN) /* ROW2, COL0 */
SW13: MATRIX_KEY(0x2, 0x1, KEY_VOLUMEUP)   /* ROW2, COL1 */

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6sl-evk.dts
arch/arm/boot/dts/imx6sl.dtsi