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.

TCA8418: Linux driver to use the device as GPIO expander

Part Number: TCA8418

Hello team,

My customer is looking for a Linux driver to use TCA8418 as a GPIO expander.

If there is a driver that can achieve the above behavior, we would also like to know how to get it.

For reference, they already tried using the TCA8418R Linux driver at the link below, but this driver seems to be for KeyPad Matrix.

source.codeaurora.org/.../tca8418_keypad.c

I am looking forward to hear from you.

Best Regards,

Ryotaro Fukui

  • Hi Ryotaro,

    We don't supply drivers/code for our I2C devices, this is something that is the responsibility for the customer to develop. We do provide support in the sense of steps to take to program the device.

    From the source code you provided it looks like there is a code to do a write to individual registers: tca8418_write_byte()

    Using that function, you should be able to write to the registers of the device to set the GPIOs.

    -Bobby