* [PATCH 1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164
@ 2026-10-23 11:56 Christian Marangi
2026-10-23 11:56 ` [PATCH 2/2] gpio: 74x164: add support for 74lv164 shift register variant Christian Marangi
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Christian Marangi @ 2026-10-23 11:56 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Maxime Ripard, linux-gpio,
devicetree, linux-kernel
Cc: Christian Marangi
Document support for nxp,74lv164 as a variant of the currently supported
8-bit shift register with the only difference of not having an Output
Enable pin and a simulated Chip Select pin.
These basic 8-bit shift register chips directly change the outputs as bits
are shifted in. Particularly used to handle multiple LED for basic state
feedback.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
.../bindings/gpio/fairchild,74hc595.yaml | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml b/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml
index 451538df63f7..0d5596af0ced 100644
--- a/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml
+++ b/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml
@@ -7,9 +7,9 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Generic 8-bit shift register
description: |
- NOTE: These chips nominally don't have a chip select pin. They do however
- have a rising-edge triggered latch clock (or storage register clock) pin,
- which behaves like an active-low chip select.
+ NOTE: These chips nominally don't have a chip select pin. 59x chip family
+ do however have a rising-edge triggered latch clock (or storage register
+ clock) pin, which behaves like an active-low chip select.
After the bits are shifted into the shift register, CS# is driven high, which
the 74HC595 sees as a rising edge on the latch clock that results in a
@@ -22,6 +22,9 @@ description: |
___ ________
chip select# |___________________|
+ Other chip family (namely 164) directly change the outputs as bits are shifted
+ in.
+
maintainers:
- Maxime Ripard <mripard@kernel.org>
@@ -29,6 +32,7 @@ properties:
compatible:
enum:
- fairchild,74hc595
+ - nxp,74lv164
- nxp,74lvc594
reg:
@@ -76,6 +80,14 @@ required:
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: nxp,74lv164
+ then:
+ properties:
+ enable-gpios: false
unevaluatedProperties: false
--
2.55.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/2] gpio: 74x164: add support for 74lv164 shift register variant
2026-10-23 11:56 [PATCH 1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164 Christian Marangi
@ 2026-10-23 11:56 ` Christian Marangi
2026-11-04 13:26 ` Linus Walleij
2026-10-30 10:54 ` [PATCH 1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164 Krzysztof Kozlowski
2026-11-02 9:44 ` Bartosz Golaszewski
2 siblings, 1 reply; 5+ messages in thread
From: Christian Marangi @ 2026-10-23 11:56 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Maxime Ripard, linux-gpio,
devicetree, linux-kernel
Cc: Christian Marangi
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@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 2/2] gpio: 74x164: add support for 74lv164 shift register variant
2026-10-23 11:56 ` [PATCH 2/2] gpio: 74x164: add support for 74lv164 shift register variant Christian Marangi
@ 2026-11-04 13:26 ` Linus Walleij
0 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2026-11-04 13:26 UTC (permalink / raw)
To: Christian Marangi
Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Maxime Ripard, linux-gpio, devicetree, linux-kernel
On Fri, Oct 23, 2026 at 1:57 PM Christian Marangi <ansuelsmth@gmail.com> wrote:
> 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@gmail.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164
2026-10-23 11:56 [PATCH 1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164 Christian Marangi
2026-10-23 11:56 ` [PATCH 2/2] gpio: 74x164: add support for 74lv164 shift register variant Christian Marangi
@ 2026-10-30 10:54 ` Krzysztof Kozlowski
2026-11-02 9:44 ` Bartosz Golaszewski
2 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-10-30 10:54 UTC (permalink / raw)
To: Christian Marangi
Cc: Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Maxime Ripard, linux-gpio,
devicetree, linux-kernel
On Fri, Oct 23, 2026 at 01:56:48PM +0200, Christian Marangi wrote:
> Document support for nxp,74lv164 as a variant of the currently supported
> 8-bit shift register with the only difference of not having an Output
> Enable pin and a simulated Chip Select pin.
>
> These basic 8-bit shift register chips directly change the outputs as bits
> are shifted in. Particularly used to handle multiple LED for basic state
> feedback.
>
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> ---
> .../bindings/gpio/fairchild,74hc595.yaml | 18 +++++++++++++++---
> 1 file changed, 15 insertions(+), 3 deletions(-)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164
2026-10-23 11:56 [PATCH 1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164 Christian Marangi
2026-10-23 11:56 ` [PATCH 2/2] gpio: 74x164: add support for 74lv164 shift register variant Christian Marangi
2026-10-30 10:54 ` [PATCH 1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164 Krzysztof Kozlowski
@ 2026-11-02 9:44 ` Bartosz Golaszewski
2 siblings, 0 replies; 5+ messages in thread
From: Bartosz Golaszewski @ 2026-11-02 9:44 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Maxime Ripard, linux-gpio,
devicetree, linux-kernel, Christian Marangi
Cc: Bartosz Golaszewski
On Fri, 23 Oct 2026 13:56:48 +0200, Christian Marangi wrote:
> Document support for nxp,74lv164 as a variant of the currently supported
> 8-bit shift register with the only difference of not having an Output
> Enable pin and a simulated Chip Select pin.
>
> These basic 8-bit shift register chips directly change the outputs as bits
> are shifted in. Particularly used to handle multiple LED for basic state
> feedback.
>
> [...]
Applied, thanks!
[1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164
https://git.kernel.org/brgl/c/861f010bf9b9daad85536d838257cdb690d94a30
[2/2] gpio: 74x164: add support for 74lv164 shift register variant
https://git.kernel.org/brgl/c/d66b6b86d5a6278ca930112c634d03725beb7d9a
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-04 13:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-23 11:56 [PATCH 1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164 Christian Marangi
2026-10-23 11:56 ` [PATCH 2/2] gpio: 74x164: add support for 74lv164 shift register variant Christian Marangi
2026-11-04 13:26 ` Linus Walleij
2026-10-30 10:54 ` [PATCH 1/2] dt-bindings: gpio: fairchild,74hc595: add support for nxp,74lv164 Krzysztof Kozlowski
2026-11-02 9:44 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox