From: Maria Garcia <mariagarcia7293@gmail.com>
To: linux-gpio@vger.kernel.org
Cc: "Linus Walleij" <linus.walleij@linaro.org>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
"Guy Morand" <guy.morand@bytesatwork.ch>,
"Theo Lébrun" <theo.lebrun@bootlin.com>,
"Maria Garcia" <mariagarcia7293@gmail.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] gpio: pca953x: Fix TCA6418 multi-bank I/O, caching, and IRQs
Date: Mon, 23 Nov 2026 12:32:32 +0100 [thread overview]
Message-ID: <20261123113234.197852-1-mariagarcia7293@gmail.com> (raw)
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
next reply other threads:[~2026-11-23 11:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 11:32 Maria Garcia [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123113234.197852-1-mariagarcia7293@gmail.com \
--to=mariagarcia7293@gmail.com \
--cc=brgl@bgdev.pl \
--cc=guy.morand@bytesatwork.ch \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=theo.lebrun@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.