Hi,
I have a custom board based on i.MX6 quad core. I am using the Yocto 1.6 having kernel version 3.10.17. TCA8418 driver is already present in the BSP and kernel supports the device tree concept. There is I2C interface b/w processor and TCA8418 controller. So I want to make the entry of TCA8418 controller in device tree file. I just referred to some post of TCA8418 to make the changes in device tree; but not got the enough information.
Below is the my implementation:
/* keypad scanner */
tca8418@34 {
compatible = "ti,tca8418"; /* this translates into request_module (i2c:tca8418) */
reg = <0x34>;
interrupt-parent = <&gpio1>;
interrupts = <2 1>; /* gpio1_2 low-to-high edge */
keypad,num-rows = <5>;
keypad,num-columns = <10>;
};
My driver probe function is calling; but not able to map the keypad matrix. So please tell me what are the changes required in device tree to communicate with keypad controller and binding for matrix-connected keyboards.
I have also seen some example like:
row << 24 | column << 16 | key-code
linux,keymap = < 0x00030012; 0x0102003a >
But can not understand that how to implement it. Please suggest me how can I achieve it.