Keymap calculation in IMX6 Sololite

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Keymap calculation in IMX6 Sololite

2,269件の閲覧回数
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,072件の閲覧回数
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,069件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------