Press and Hold feature in Keypad in imx6ul ?

cancel
Showing results for 
Search instead for 
Did you mean: 

Press and Hold feature in Keypad in imx6ul ?

173 Views
Contributor I

Hi Team,

Currently working on imx6ul board with Linux yocto build system, I used GPIO based key pad (8 switches) and configured in device tree working as expected, requirement is in 8 switches one switch should press and hold feature (5 sec), Where should i configure this feature like device tree or application (C code), Please help on this.

Regards,

Nk 

Labels (1)
Tags (1)
0 Kudos
3 Replies

91 Views
NXP TechSupport
NXP TechSupport

Hello Nk,

You would need to add this feature to the driver handling the Keypad as the Device Tree handles hardware characteristics and muxing. The behavior of the keys inputs should be configured by the driver.

I hope this helps!
Regards,

0 Kudos

91 Views
Contributor I

Hi gusarambula, 

Thanks for the reply,

How can i configure Press and hold feature in device tree and driver, Please provide me any links for reference, I am using QT for application development, Please can you help on this. 

Regards,

Nk

0 Kudos

91 Views
NXP TechSupport
NXP TechSupport

Hello Nk,

We do not have much documentation that has information on how to implement this feature, but the BSP Porting Guide included as part of the i.MX Linus BSPs documentation (link below) may help:

https://www.nxp.com/design/software/embedded-software/linux-software-and-development-tools/embedded-...

Kernel.org gas also some information  on the Device Tree

https://www.kernel.org/doc/Documentation/devicetree/usage-model.txt

As for the actual driver with the press and hold function, I would recommend looking for similar drivers for reference.

I hope this helps!

Regards,

0 Kudos