* [PATCH] dt-bindings: gpio: rockchip: add a pattern for gpio hogs
@ 2023-12-01 14:08 Heiko Stuebner
2023-12-01 14:18 ` Krzysztof Kozlowski
2023-12-04 8:17 ` Bartosz Golaszewski
0 siblings, 2 replies; 3+ messages in thread
From: Heiko Stuebner @ 2023-12-01 14:08 UTC (permalink / raw)
To: robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: linus.walleij, brgl, andy, linux-gpio, linux-rockchip,
linux-kernel, devicetree, quentin.schulz, heiko, Heiko Stuebner
From: Heiko Stuebner <heiko.stuebner@cherry.de>
Allow validating gpio-hogs defined inside the gpio controller node.
Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
---
.../devicetree/bindings/gpio/rockchip,gpio-bank.yaml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
index affd823c881d..d76987ce8e50 100644
--- a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
+++ b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
@@ -41,6 +41,13 @@ properties:
"#interrupt-cells":
const: 2
+patternProperties:
+ "^.+-hog(-[0-9]+)?$":
+ type: object
+
+ required:
+ - gpio-hog
+
required:
- compatible
- reg
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: gpio: rockchip: add a pattern for gpio hogs
2023-12-01 14:08 [PATCH] dt-bindings: gpio: rockchip: add a pattern for gpio hogs Heiko Stuebner
@ 2023-12-01 14:18 ` Krzysztof Kozlowski
2023-12-04 8:17 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-01 14:18 UTC (permalink / raw)
To: Heiko Stuebner, robh+dt, krzysztof.kozlowski+dt, conor+dt
Cc: linus.walleij, brgl, andy, linux-gpio, linux-rockchip,
linux-kernel, devicetree, quentin.schulz, Heiko Stuebner
On 01/12/2023 15:08, Heiko Stuebner wrote:
> From: Heiko Stuebner <heiko.stuebner@cherry.de>
>
> Allow validating gpio-hogs defined inside the gpio controller node.
>
> Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: gpio: rockchip: add a pattern for gpio hogs
2023-12-01 14:08 [PATCH] dt-bindings: gpio: rockchip: add a pattern for gpio hogs Heiko Stuebner
2023-12-01 14:18 ` Krzysztof Kozlowski
@ 2023-12-04 8:17 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2023-12-04 8:17 UTC (permalink / raw)
To: Heiko Stuebner
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, linus.walleij, andy,
linux-gpio, linux-rockchip, linux-kernel, devicetree,
quentin.schulz, Heiko Stuebner
On Fri, Dec 1, 2023 at 3:08 PM Heiko Stuebner <heiko@sntech.de> wrote:
>
> From: Heiko Stuebner <heiko.stuebner@cherry.de>
>
> Allow validating gpio-hogs defined inside the gpio controller node.
>
> Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
> ---
> .../devicetree/bindings/gpio/rockchip,gpio-bank.yaml | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
> index affd823c881d..d76987ce8e50 100644
> --- a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
> +++ b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml
> @@ -41,6 +41,13 @@ properties:
> "#interrupt-cells":
> const: 2
>
> +patternProperties:
> + "^.+-hog(-[0-9]+)?$":
> + type: object
> +
> + required:
> + - gpio-hog
> +
> required:
> - compatible
> - reg
> --
> 2.39.2
>
Applied, thanks!
Bart
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-04 8:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-01 14:08 [PATCH] dt-bindings: gpio: rockchip: add a pattern for gpio hogs Heiko Stuebner
2023-12-01 14:18 ` Krzysztof Kozlowski
2023-12-04 8:17 ` 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).