MPR121 Touchkey is not probing/register into the Kernel

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

MPR121 Touchkey is not probing/register into the Kernel

985 Views
jaymind
Contributor IV

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,

Labels (1)
0 Kudos
1 Reply

555 Views
reyes
NXP TechSupport
NXP TechSupport

Hi,

Please find attached a MPR121 driver for Linux System (kernel 2.6) based on ARM Cortex A8 core, unfortunately I do not have a MPR121 driver for the kernel you are using but it might be helpful to compare the configuration with the code you are currently using.

I hope this can be useful.


Have a great day,
Jose

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

0 Kudos