All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] gpio: pca953x: Fix TCA6418 multi-bank I/O, caching, and IRQs
@ 2026-11-23 11:32 Maria Garcia
  2026-11-23 11:32 ` [PATCH 1/2] gpio: pca953x: Fix TCA6418 bulk transfers and input caching Maria Garcia
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Maria Garcia @ 2026-11-23 11:32 UTC (permalink / raw)
  To: linux-gpio
  Cc: Linus Walleij, Bartosz Golaszewski, Guy Morand, Theo Lébrun,
	Maria Garcia, linux-kernel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-23 11:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 11:32 [PATCH 0/2] gpio: pca953x: Fix TCA6418 multi-bank I/O, caching, and IRQs Maria Garcia
2026-11-23 11:32 ` [PATCH 1/2] gpio: pca953x: Fix TCA6418 bulk transfers and input caching Maria Garcia
2026-11-23 11:48   ` sashiko-bot
2026-11-23 11:32 ` [PATCH 2/2] gpio: pca953x: Fix TCA6418 interrupt handling Maria Garcia
2026-11-23 11:47   ` sashiko-bot
2026-11-23 11:42 ` [PATCH 0/2] gpio: pca953x: Fix TCA6418 multi-bank I/O, caching, and IRQs María García Fernández

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.