AnsweredAssumed Answered

IMX6Q PAD_KEY Configuration: key scan registers entire row

Question asked by Keo Malope on Feb 4, 2016
Latest reply on Feb 16, 2016 by Keo Malope

Background

I'm trying to integrate a keypad with IMX6Q board. 4 rows, and 4 columns. To start, I have enabled only one row (ROW0), and one column (COL1).

 

External Keypad: Columns=<open-drain output>, Rows=<input>

 

#pin control

arch/arm/boot/dts/imx6qdl-sabresd.dtsi

MX6QDL_PAD_KEY_COL0__KEY_COL0   0x80000000 /* No PAD ctrl*/
MX6QDL_PAD_KEY_ROW0__KEY_ROW0   0x000000e0 

#driver

drivers/input/keyboard/imx_keypad.c

 

Problem

When I press ANY of the the keys on ROW0, events get generated for all keys in ROW0 instead of just the one key.

 

Questions

1. How do I determine what the correct PAD key configuration to use is? Mux-config register has a number of "nobs" which I have no idea of what the correct combination to use is and/or how to calculate the correct configuration.

Outcomes