devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/1] dt-bindings: gpio: gpio-vf610: Add parsing of hogs
@ 2023-06-19  6:39 Alexander Stein
  2023-06-19  6:54 ` Krzysztof Kozlowski
  2023-06-19 12:48 ` Bartosz Golaszewski
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Stein @ 2023-06-19  6:39 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Andy Shevchenko, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Alexander Stein, linux-gpio, devicetree

Allow parsing GPIO controller children nodes with GPIO hogs.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
Changes in v2:
* Narrow the pattern
* Remove properties covered by generic dt-schema

 Documentation/devicetree/bindings/gpio/gpio-vf610.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
index d2c39dba56add..7c2d152e86170 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
@@ -61,6 +61,13 @@ properties:
   gpio-ranges:
     maxItems: 1
 
+patternProperties:
+  "^.+-hog(-[0-9]+)?$":
+    type: object
+
+    required:
+      - gpio-hog
+
 required:
   - compatible
   - reg
-- 
2.34.1


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

* Re: [PATCH v2 1/1] dt-bindings: gpio: gpio-vf610: Add parsing of hogs
  2023-06-19  6:39 [PATCH v2 1/1] dt-bindings: gpio: gpio-vf610: Add parsing of hogs Alexander Stein
@ 2023-06-19  6:54 ` Krzysztof Kozlowski
  2023-06-19 12:48 ` Bartosz Golaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2023-06-19  6:54 UTC (permalink / raw)
  To: Alexander Stein, Linus Walleij, Bartosz Golaszewski,
	Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-gpio, devicetree

On 19/06/2023 08:39, Alexander Stein wrote:
> Allow parsing GPIO controller children nodes with GPIO hogs.
> 
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> Changes in v2:
> * Narrow the pattern
> * Remove properties covered by generic dt-schema

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

Best regards,
Krzysztof


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

* Re: [PATCH v2 1/1] dt-bindings: gpio: gpio-vf610: Add parsing of hogs
  2023-06-19  6:39 [PATCH v2 1/1] dt-bindings: gpio: gpio-vf610: Add parsing of hogs Alexander Stein
  2023-06-19  6:54 ` Krzysztof Kozlowski
@ 2023-06-19 12:48 ` Bartosz Golaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2023-06-19 12:48 UTC (permalink / raw)
  To: Alexander Stein
  Cc: Linus Walleij, Andy Shevchenko, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-gpio, devicetree

On Mon, Jun 19, 2023 at 8:39 AM Alexander Stein
<alexander.stein@ew.tq-group.com> wrote:
>
> Allow parsing GPIO controller children nodes with GPIO hogs.
>
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> Changes in v2:
> * Narrow the pattern
> * Remove properties covered by generic dt-schema
>
>  Documentation/devicetree/bindings/gpio/gpio-vf610.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
> index d2c39dba56add..7c2d152e86170 100644
> --- a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
> +++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml
> @@ -61,6 +61,13 @@ properties:
>    gpio-ranges:
>      maxItems: 1
>
> +patternProperties:
> +  "^.+-hog(-[0-9]+)?$":
> +    type: object
> +
> +    required:
> +      - gpio-hog
> +
>  required:
>    - compatible
>    - reg
> --
> 2.34.1
>

Applied, thanks!

Bart

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

end of thread, other threads:[~2023-06-19 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-19  6:39 [PATCH v2 1/1] dt-bindings: gpio: gpio-vf610: Add parsing of hogs Alexander Stein
2023-06-19  6:54 ` Krzysztof Kozlowski
2023-06-19 12:48 ` Bartosz Golaszewski

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).