How to customize kpp(keypad port) in device tree

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to customize kpp(keypad port) in device tree

Jump to solution
1,605 Views
asmaa
Contributor V

Hello everyone,

I am working on imx6ul using linux yocto. I want to use imx6 keypad port. I have enabled it in imx6ul.dtsi. 

But I just want to use 4x4 keypad instead of 8x8 as defined by kpp. 

what changes I would have to make to do it 4x4 in device tree?

I am reading AN5125 -Introduction to device tree but not getting how to change it. Please help.

Thanks,

Asma

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,497 Views
igorpadykov
NXP Employee
NXP Employee

Hi Asma

one can look at linux/Documentation/devicetree/bindings/input/imx-keypad.txt

imx-keypad.txt\input\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel 

and select necessary "pinctrl_kpp" configuration and mapping.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
1,498 Views
igorpadykov
NXP Employee
NXP Employee

Hi Asma

one can look at linux/Documentation/devicetree/bindings/input/imx-keypad.txt

imx-keypad.txt\input\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel 

and select necessary "pinctrl_kpp" configuration and mapping.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------