Hi Team,
Currently I am working on IMX6 Sololite Linux Kernel Version 3.10.17.Can you help me in calculating the Linux keymap present in DTS file for gpio-matrix keypad driver.
Thanks & Regards,
C.Himabindu.
Hi Team,
If we dont understand the logic implemented in Matrix Keymap present in dts file we can use the following Method to initialize the
keys in dts file . This integration requires two header files namely
#include "input.h"
#include "input-event-codes.h"
linux,keymap = <
KEY(0, 0, KEY_Q)
KEY(0, 1, KEY_I)
KEY(0, 2, KEY_G)
KEY(0, 3, KEY_C)
KEY(0, 4, KEY_TAB)
KEY(0, 5, KEY_4)
KEY(0, 6, KEY_8)
KEY(0, 7, KEY_ENTER)
KEY(1, 0, KEY_W)
KEY(1, 1, KEY_O)
KEY(1, 2, KEY_H)
KEY(1, 3, KEY_V)
KEY(1, 4, KEY_1)
KEY(1, 5, KEY_5)
KEY(1, 6, KEY_9)
KEY(1, 7, KEY_RESERVED)
>;
Thanks & Regards,
C.Himabindu.
Hi Himabindu
explanation linux keypad can be found on
4x4 Matrix keypad Interfacing with i-MX6 - Toradex Community
also may be useful attached Linux Manual
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------