This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Keypad customization with multiple keys

Other Parts Discussed in Thread: TCA8418, AM1808

Hi,

I am using DA850 davinci kernel. I have mapped my keypad labels in the kernel. I am using matrix QWERTY keypad driver which is tca8418. I am able to see my keypad labels on the console while press any key.

My intention is each key press has multiple labels indicated in my customized keypad. When I press ALT key once it should detect Caps letters(‘A’) When I press 2nd time  ALT key it should print small letters(‘a’), when I press 3rd time ALT key it should get special character(‘#’).

In console I am getting from keypad driver only event pressed or not. Our application is developed in to Qt. where we need to develop this customized keypad logic. Whether it should be either in kernel driver or in to Qt application. In mobile keypad how each key is having multiple key labels, on the same way I need to implement in my customized application? How to change and where it should be done?

Please give us any suggestions

Regards,

Francis

 

 

  

    

 

  • Hi Francis..

    I am also trying to do something like this but I have just started with these things.

    Can you please suggest me from where to get started . I mean should I try with modifying the existing drivers
    which are given.I want to modify something in the kernel , which is visible on my evm. 

    I have am1808 based evm with me and I am comfortable with cross-compilation of kernel 
    and kernel modules.

    Thanks in advance.

     

  • Hi Aditya,

    Which keypad controller and linux version is using in your design. If you are using the same KBD controller you need to develop the platform driver for your board.

    you need to change the platform driver stuff in you board configuration with your I2C slave ID registration.

    Regards,

    Francis 

  • Hi Francis,

    I am using the same keypad controller i.e. TCA8418 and the linux version is 2.6.32-33-generic.

    Also tell me whether  you are controlling the KBD controller using I2C ? Any insight into this will be highly
    appreciated.

    Thanks
    Aditya