Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes
@ 2026-08-24 15:48 Vincent Jardin via B4 Relay
  2026-08-24 15:58 ` Frank Li
  0 siblings, 1 reply; 3+ messages in thread
From: Vincent Jardin via B4 Relay @ 2026-08-24 15:48 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Frank Li
  Cc: linux-gpio, devicetree, linux-kernel, Vincent Jardin

From: Vincent Jardin <vjardin@free.fr>

The binding sets additionalProperties: false and describes no child
nodes, so every gpio-hog on a QorIQ/Layerscape GPIO controller is a
dtbs_check failure:

  gpio@2310000 (fsl,ls2080a-gpio): 'ethsw-reset-hog', 'flash-reset-hog',
  'pltrst-hog', 'thermtrip-hog' do not match any of the regexes:
  '^pinctrl-[0-9]+$'

hogs are handled generically by gpiolib rather than by the controller
driver, so they work on this controller exactly as anywhere else, only
the schema disallows them.

Note: some other GPIO bindings already have such pattern:
gpio-mvebu, gpio-davinci, aspeed,ast2400-gpio and fairchild,74hc595

Signed-off-by: Vincent Jardin <vjardin@free.fr>
---
 Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml b/Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml
index 4cb2a6b9fabfb..a6252440e099b 100644
--- a/Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml
+++ b/Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml
@@ -63,6 +63,13 @@ properties:
       GPIO registers are used as little endian. If not
       present registers are used as big endian by default.
 
+patternProperties:
+  "^(.+-hog(-[0-9]+)?)$":
+    type: object
+
+    required:
+      - gpio-hog
+
 required:
   - compatible
   - reg

---
base-commit: 0a0d1d55dad570724bf8c7ea83409639cfb4be9b
change-id: 20260824-for-upstream-dt-qoriq-gpio-hog-5092a0f4d089

Best regards,
-- 
Vincent Jardin <vjardin@free.fr>



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

* Re: [PATCH] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes
  2026-08-24 15:48 [PATCH] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes Vincent Jardin via B4 Relay
@ 2026-08-24 15:58 ` Frank Li
  2026-08-24 21:58   ` Vincent Jardin
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Li @ 2026-08-24 15:58 UTC (permalink / raw)
  To: Vincent Jardin
  Cc: Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Frank Li, linux-gpio,
	devicetree, linux-kernel

On Mon, Aug 24, 2026 at 05:48:51PM +0200, Vincent Jardin wrote:
> The binding sets additionalProperties: false and describes no child
> nodes, so every gpio-hog on a QorIQ/Layerscape GPIO controller is a
> dtbs_check failure:
>
>   gpio@2310000 (fsl,ls2080a-gpio): 'ethsw-reset-hog', 'flash-reset-hog',
>   'pltrst-hog', 'thermtrip-hog' do not match any of the regexes:
>   '^pinctrl-[0-9]+$'

I agree on this change, but I can't find ethsw-reset-hog in upstream tree
yet.

Frank
>
> hogs are handled generically by gpiolib rather than by the controller
> driver, so they work on this controller exactly as anywhere else, only
> the schema disallows them.
>
> Note: some other GPIO bindings already have such pattern:
> gpio-mvebu, gpio-davinci, aspeed,ast2400-gpio and fairchild,74hc595
>
> Signed-off-by: Vincent Jardin <vjardin@free.fr>
> ---
>  Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml b/Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml
> index 4cb2a6b9fabfb..a6252440e099b 100644
> --- a/Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml
> +++ b/Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml
> @@ -63,6 +63,13 @@ properties:
>        GPIO registers are used as little endian. If not
>        present registers are used as big endian by default.
>
> +patternProperties:
> +  "^(.+-hog(-[0-9]+)?)$":
> +    type: object
> +
> +    required:
> +      - gpio-hog
> +
>  required:
>    - compatible
>    - reg
>
> ---
> base-commit: 0a0d1d55dad570724bf8c7ea83409639cfb4be9b
> change-id: 20260824-for-upstream-dt-qoriq-gpio-hog-5092a0f4d089
>
> Best regards,
> --
> Vincent Jardin <vjardin@free.fr>
>

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

* Re: [PATCH] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes
  2026-08-24 15:58 ` Frank Li
@ 2026-08-24 21:58   ` Vincent Jardin
  0 siblings, 0 replies; 3+ messages in thread
From: Vincent Jardin @ 2026-08-24 21:58 UTC (permalink / raw)
  To: Frank Li
  Cc: Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Frank Li, linux-gpio,
	devicetree, linux-kernel

Hi Frank,

> >   gpio@2310000 (fsl,ls2080a-gpio): 'ethsw-reset-hog', 'flash-reset-hog',
> >   'pltrst-hog', 'thermtrip-hog' do not match any of the regexes:
> >   '^pinctrl-[0-9]+$'
> 
> I agree on this change, but I can't find ethsw-reset-hog in upstream tree
> yet.

It was something from a development branch that I did not properly filter before
sending. I did send a v2 with an updated commit message:
  https://lore.kernel.org/all/20260824-for-upstream-dt-qoriq-gpio-hog-v2-1-58bbc82b881e@free.fr/

Best regards,
  Vincent

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

end of thread, other threads:[~2026-08-24 21:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-24 15:48 [PATCH] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes Vincent Jardin via B4 Relay
2026-08-24 15:58 ` Frank Li
2026-08-24 21:58   ` Vincent Jardin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox