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.