linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: gpio: nxp,pcf8575: add gpio-line-names
@ 2023-02-09  4:17 Trevor Woerner
  2023-02-09  4:31 ` [PATCH v2] " Trevor Woerner
  0 siblings, 1 reply; 6+ messages in thread
From: Trevor Woerner @ 2023-02-09  4:17 UTC (permalink / raw)
  To: linux-kernel, Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, Laurent Pinchart
  Cc: linux-gpio, devicetree

The family of PCF857x-compatible chips describe 8-bit i2c i/o expanders.
Allow the user to specify names for the 8 gpio lines.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml b/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml
index f0ff66c4c74e..81b825a4353c 100644
--- a/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml
+++ b/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml
@@ -39,6 +39,10 @@ properties:
   reg:
     maxItems: 1
 
+  gpio-line-names:
+    minItems: 1
+    maxItems: 8
+
   gpio-controller: true
 
   '#gpio-cells':
-- 
2.36.0.rc2.17.g4027e30c53


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

* [PATCH v2] dt-bindings: gpio: nxp,pcf8575: add gpio-line-names
  2023-02-09  4:17 [PATCH 1/2] dt-bindings: gpio: nxp,pcf8575: add gpio-line-names Trevor Woerner
@ 2023-02-09  4:31 ` Trevor Woerner
  2023-02-09  8:29   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Trevor Woerner @ 2023-02-09  4:31 UTC (permalink / raw)
  To: linux-kernel, Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, Laurent Pinchart
  Cc: linux-gpio, devicetree

The family of PCF857x-compatible chips describe 8-bit i2c i/o expanders.
Allow the user to specify names for the 8 gpio lines.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
changes in v2:
- the original said [PATCH 1/2], there is no 2/2

---
 Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml b/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml
index f0ff66c4c74e..81b825a4353c 100644
--- a/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml
+++ b/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml
@@ -39,6 +39,10 @@ properties:
   reg:
     maxItems: 1
 
+  gpio-line-names:
+    minItems: 1
+    maxItems: 8
+
   gpio-controller: true
 
   '#gpio-cells':
-- 
2.36.0.rc2.17.g4027e30c53


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

* Re: [PATCH v2] dt-bindings: gpio: nxp,pcf8575: add gpio-line-names
  2023-02-09  4:31 ` [PATCH v2] " Trevor Woerner
@ 2023-02-09  8:29   ` Krzysztof Kozlowski
  2023-02-10  2:51     ` [PATCH v3 1/2] " Trevor Woerner
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-09  8:29 UTC (permalink / raw)
  To: Trevor Woerner, linux-kernel, Linus Walleij, Bartosz Golaszewski,
	Rob Herring, Krzysztof Kozlowski, Laurent Pinchart
  Cc: linux-gpio, devicetree

On 09/02/2023 05:31, Trevor Woerner wrote:
> The family of PCF857x-compatible chips describe 8-bit i2c i/o expanders.
> Allow the user to specify names for the 8 gpio lines.

PCA9675 is 16-bit and has 16 outputs/

Best regards,
Krzysztof


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

* [PATCH v3 1/2] dt-bindings: gpio: nxp,pcf8575: add gpio-line-names
  2023-02-09  8:29   ` Krzysztof Kozlowski
@ 2023-02-10  2:51     ` Trevor Woerner
  2023-02-10 11:49       ` Krzysztof Kozlowski
  2023-02-27 21:37       ` Linus Walleij
  0 siblings, 2 replies; 6+ messages in thread
From: Trevor Woerner @ 2023-02-10  2:51 UTC (permalink / raw)
  To: linux-kernel, Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, Laurent Pinchart
  Cc: linux-gpio, devicetree

The devices described in this binding represent 8-bit and 16-bit i2c i/o
expanders. Allow the user to specify names for up to 16 gpio lines.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
changes since v2:
- expand maxItems to 16 to accommodate that some of the io expanders
  covered in this schema are 16-bit (e.g. PCA9675)

changes since v1:
- the original said [PATCH 1/2], there is no 2/2
  (or at least there wasn't back then)
---
 Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml b/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml
index f0ff66c4c74e..3718103e966a 100644
--- a/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml
+++ b/Documentation/devicetree/bindings/gpio/nxp,pcf8575.yaml
@@ -39,6 +39,10 @@ properties:
   reg:
     maxItems: 1
 
+  gpio-line-names:
+    minItems: 1
+    maxItems: 16
+
   gpio-controller: true
 
   '#gpio-cells':
-- 
2.36.0.rc2.17.g4027e30c53


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

* Re: [PATCH v3 1/2] dt-bindings: gpio: nxp,pcf8575: add gpio-line-names
  2023-02-10  2:51     ` [PATCH v3 1/2] " Trevor Woerner
@ 2023-02-10 11:49       ` Krzysztof Kozlowski
  2023-02-27 21:37       ` Linus Walleij
  1 sibling, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-10 11:49 UTC (permalink / raw)
  To: Trevor Woerner, linux-kernel, Linus Walleij, Bartosz Golaszewski,
	Rob Herring, Krzysztof Kozlowski, Laurent Pinchart
  Cc: linux-gpio, devicetree

On 10/02/2023 03:51, Trevor Woerner wrote:
> The devices described in this binding represent 8-bit and 16-bit i2c i/o
> expanders. Allow the user to specify names for up to 16 gpio lines.
> 
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
> changes since v2:


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v3 1/2] dt-bindings: gpio: nxp,pcf8575: add gpio-line-names
  2023-02-10  2:51     ` [PATCH v3 1/2] " Trevor Woerner
  2023-02-10 11:49       ` Krzysztof Kozlowski
@ 2023-02-27 21:37       ` Linus Walleij
  1 sibling, 0 replies; 6+ messages in thread
From: Linus Walleij @ 2023-02-27 21:37 UTC (permalink / raw)
  To: Trevor Woerner
  Cc: linux-kernel, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, Laurent Pinchart, linux-gpio, devicetree

On Fri, Feb 10, 2023 at 3:51 AM Trevor Woerner <twoerner@gmail.com> wrote:

> The devices described in this binding represent 8-bit and 16-bit i2c i/o
> expanders. Allow the user to specify names for up to 16 gpio lines.
>
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
> changes since v2:
> - expand maxItems to 16 to accommodate that some of the io expanders
>   covered in this schema are 16-bit (e.g. PCA9675)

This v3 patch applied for the next kernel (v6.4).

Don't expect to see it in linux-next until after the merge
window. I applied it so I don't forget about it later.

Yours,
Linus Walleij

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

end of thread, other threads:[~2023-02-27 21:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-09  4:17 [PATCH 1/2] dt-bindings: gpio: nxp,pcf8575: add gpio-line-names Trevor Woerner
2023-02-09  4:31 ` [PATCH v2] " Trevor Woerner
2023-02-09  8:29   ` Krzysztof Kozlowski
2023-02-10  2:51     ` [PATCH v3 1/2] " Trevor Woerner
2023-02-10 11:49       ` Krzysztof Kozlowski
2023-02-27 21:37       ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).