Keymap calculation in IMX6 Sololite

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Keymap calculation in IMX6 Sololite

2,267 次查看
himabindu
Contributor III

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.

标签 (1)
0 项奖励
回复
2 回复数

2,070 次查看
himabindu
Contributor III

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.

0 项奖励
回复

2,067 次查看
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------