[PATCH 2/2] gpio: 74x164: add support for 74lv164 shift register variant

From: Christian Marangi

Date: Fri Oct 23 2026 - 07:57:45 EST


Add compatible and spi define to support 74lv164 shift register variant.
These work the same way as the 59x chip family with the only difference of
not having a "storage" feature by directly changing the outputs as bits are
shifted in without having to toggle extra pins.

Signed-off-by: Christian Marangi <ansuelsmth@xxxxxxxxx>
---
drivers/gpio/gpio-74x164.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c
index 5ca61cf5206a..46562c348c9c 100644
--- a/drivers/gpio/gpio-74x164.c
+++ b/drivers/gpio/gpio-74x164.c
@@ -181,6 +181,7 @@ static int gen_74x164_probe(struct spi_device *spi)

static const struct spi_device_id gen_74x164_spi_ids[] = {
{ .name = "74hc595" },
+ { .name = "74lv164" },
{ .name = "74lvc594" },
{},
};
@@ -188,6 +189,7 @@ MODULE_DEVICE_TABLE(spi, gen_74x164_spi_ids);

static const struct of_device_id gen_74x164_dt_ids[] = {
{ .compatible = "fairchild,74hc595" },
+ { .compatible = "nxp,74lv164" },
{ .compatible = "nxp,74lvc594" },
{},
};
--
2.55.0