AnsweredAssumed Answered

MPR121 Touchkey is not probing/register into the Kernel

Question asked by Jaymin Dabhi on Aug 4, 2016
Latest reply on Aug 4, 2016 by Jose Alberto Reyes Morales

Hi All,

 

I am using MPR121 and it is not registering into the Kernel.

I am using Kernel Version: 3.10.53 and Android system. Bare-metal minimal FS I have.

 

I have made modifications in 'dtsi' file for MPR121.

 

Modification:

1.

i2c_mpr: mpr121@5a {

        /*pinctrl-names = "default";*/

        /*pinctrl-0 = <&pinctrl_key_int>;*/

        compatible = "fsl,mpr121", "fsl,mpr121_touchkey";

        reg = <0x5a>;

        /* GPIO7_IO02 - SD3_CMD - X17.25 */

        interrupts = <2 4>;

        interrupt-parent = <&gpio7>;              

        status = "okay";      

};

---------------------------------

2.

i2c_mpr: mpr121@5a {

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_key_int>;

        compatible = "fsl,mpr121", "fsl,mpr121_touchkey";

        reg = <0x5a>;

        /* GPIO7_IO02 - SD3_CMD - X17.25 */

        interrupts = <2 4>;

        interrupt-parent = <&gpio7>;              

        status = "okay";      

};

 

'pinctrl_key_int' node entry in '&iomuxc':

 

pinctrl_key_int: gpiokeyintgrp {

            fsl,pins = <MX6QDL_PAD_SD3_CMD__SD3_CMD        0x80000000>;

};

 

Connect SDA and SCL pins of MPR121 on I2C1 channel and GPIO7_IO12 as an IRQ pin.

But, in user space I am not getting any input node (e.g. input0 or input1).

I am getting the MPR121 device entry is user space '/sys/class/i2c-dev/i2c-0/devices/0-005a'.

 

My question is, How can I check and verify that MPR121 is registered in the system or ready-to-communicate from sysfs?

 

Is there any node definitional or parameter I am missing in dtsi file?

Is this correct way to define IRQ in dtsi file?

 

Please share your suggestions and comments.

 

Thanks,

Outcomes