This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3357: TCA8418

Part Number: AM3357
Other Parts Discussed in Thread: TCA8418

Hi I am working on AM335x processor to interface tca8418 keypad controller (with 4x4 matrix keypad).

Here is my .dts file:

&i2c1 {
        pinctrl-names = "default";
        pinctrl-0 =<&pinctrl_i2c1>;
        clock-frequency = <100000>;
        status = "okay";

        tca8418@34 {
                compatible = "ti,tca8418"; /* this translates into request_module (i2c:tca8418) */
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_keypad_tca8418>;
                reg = <0x34>;

                esd-recovery-timeout-ms = <2000>;
                interrupt-parent = <&gpio4>;
                interrupts = <23 1>; /* gpio4_23 high-to-low edge */
                interrupts-extended = <&gpio4 23 IRQ_TYPE_LEVEL_HIGH>;
                irq-gpios = <&gpio4 23 1>;
                reset-gpios = <&gpio1 8 1>;

                keypad,num-rows = <4>;
                keypad,num-columns = <4>;

                linux,keypad-no-autorepeat;

     linux,keymap = <
                        MATRIX_KEY(0, 1, KEY_2)
                        MATRIX_KEY(0, 2, KEY_3)
                        MATRIX_KEY(0, 3, KEY_ESC)
                        MATRIX_KEY(1, 0, KEY_4)
                        MATRIX_KEY(1, 1, KEY_5)
                        MATRIX_KEY(1, 2, KEY_6)
                        MATRIX_KEY(1, 3, KEY_UP)
                        MATRIX_KEY(2, 0, KEY_7)
                        MATRIX_KEY(2, 1, KEY_8)
                        MATRIX_KEY(2, 2, KEY_ENTER)
                        MATRIX_KEY(2, 3, KEY_DOWN)
                        MATRIX_KEY(3, 0, KEY_MENU)
                        MATRIX_KEY(3, 1, KEY_0)
                        MATRIX_KEY(3, 2, KEY_RED)
                        MATRIX_KEY(3, 3, KEY_ENTER)                     

>;

    };

};

Issue:

1. some of keys are detected, others are not detected.

    Is there any issue in driver file of tca8418?

 

Pleas help me out this.

Regards,

Sandip Gokani