[PATCH 0/2] gpio: pca953x: Fix TCA6418 multi-bank I/O, caching, and IRQs

From: Maria Garcia

Date: Mon Nov 23 2026 - 06:33:20 EST


This series fixes multi-bank register access, input register caching, and
interrupt handling for the TI TCA6418E GPIO expander in gpio-pca953x:

1. Disable REG_ADDR_AI (0x80) for TCA6418_TYPE so multi-byte reads and
writes advance sequentially across all three banks, reverse Bank 0
bit order (bitrev8) in bulk read/write paths to match the datasheet's
MSB-first layout, and mark the input status registers (0x14..0x16) as
volatile so reads do not return stale cached values.

2. Support TCA6418 interrupt setup, edge configuration (GPIO_INT_LVL),
masking (GPIO_INT_EN), status decoding (GPIO_INT_STAT), and W1C
acknowledgment (INT_STAT) by reusing the existing pca953x paths,
while rejecting unsupported IRQ_TYPE_EDGE_BOTH triggers.

Tested on TI TCA6418E hardware across all three banks (single-pin and
multi-pin reads/writes, input volatility, interrupts). Also, independently
tested by Guy Morand on his hardware.

Maria Garcia (2):
gpio: pca953x: Fix TCA6418 bulk transfers and input caching
gpio: pca953x: Fix TCA6418 interrupt handling

drivers/gpio/gpio-pca953x.c | 120 ++++++++++++++++++++++++++++++------
1 file changed, 101 insertions(+), 19 deletions(-)

--
2.52.0