[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250217-gpio-pcf8574t-v1-1-137e140df5fc@gmail.com>
Date: Mon, 17 Feb 2025 14:07:51 +0100
From: Tóth János via B4 Relay <devnull+gomba007.gmail.com@...nel.org>
To: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Laurent Pinchart <laurent.pinchart+renesas@...asonboard.com>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org,
Tóth János <gomba007@...il.com>
Subject: [PATCH 1/2] drivers: gpio: Add support for PCF8574T.
From: Tóth János <gomba007@...il.com>
Add support for the PCF8574T 8-bit I2C I/O expander.
The driver is tested with:
+ tools/lsgpio
+ tools/gpio-hammer
+ some LEDs
[1] https://www.nxp.com/docs/en/data-sheet/PCF8574_PCF8574A.pdf
Signed-off-by: Tóth János <gomba007@...il.com>
---
drivers/gpio/Kconfig | 2 +-
drivers/gpio/gpio-pcf857x.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 98b4d1633b25..d7cdc3cc1b00 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -1193,7 +1193,7 @@ config GPIO_PCF857X
Most of these parts are from NXP, though TI is a second source for
some of them. Compatible models include:
- 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
+ 8 bits: pcf8574, pcf8574a, pcf8574t, pca8574, pca8574a,
pca9670, pca9672, pca9674, pca9674a,
max7328, max7329
diff --git a/drivers/gpio/gpio-pcf857x.c b/drivers/gpio/gpio-pcf857x.c
index 7c57eaeb0afe..2464c527a4e8 100644
--- a/drivers/gpio/gpio-pcf857x.c
+++ b/drivers/gpio/gpio-pcf857x.c
@@ -20,6 +20,7 @@
static const struct i2c_device_id pcf857x_id[] = {
{ "pcf8574", 8 },
{ "pcf8574a", 8 },
+ { "pcf8574t", 8 },
{ "pca8574", 8 },
{ "pca9670", 8 },
{ "pca9672", 8 },
@@ -38,6 +39,7 @@ MODULE_DEVICE_TABLE(i2c, pcf857x_id);
static const struct of_device_id pcf857x_of_table[] = {
{ .compatible = "nxp,pcf8574", (void *)8 },
{ .compatible = "nxp,pcf8574a", (void *)8 },
+ { .compatible = "nxp,pcf8574t", (void *)8 },
{ .compatible = "nxp,pca8574", (void *)8 },
{ .compatible = "nxp,pca9670", (void *)8 },
{ .compatible = "nxp,pca9672", (void *)8 },
--
2.34.1
Powered by blists - more mailing lists