[PATCH v3] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes
From: Vincent Jardin via B4 Relay
Date: Tue Aug 25 2026 - 05:42:34 EST
From: Vincent Jardin <vjardin@xxxxxxx>
QorIQ GPIO controllers may have hogs in device nodes, so let's expose
it.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>
---
Changes in v3:
- Shorten the commit message, former one tried too much on QorIQ (Krzysztof Kozlowski)
- Drop redundant brackets from the pattern (Krzysztof Kozlowski)
- No change to the schema semantics
- Link to v2: https://lore.kernel.org/r/20260824-for-upstream-dt-qoriq-gpio-hog-v2-1-58bbc82b881e@xxxxxxx
Changes in v2:
- Change the commit message. Drop the dmesg excerpt: those hog names come
from my out-of-tree dev git repo and are not in the tree (Frank Li)
- Note: the hog call path is: gpiochip_hog_lines(), called from gpiochip_add_data_with_key()
- Explain why these QorIQ SoCs need it
- No change to the diff
- Link to v1: https://lore.kernel.org/r/20260824-for-upstream-dt-qoriq-gpio-hog-v1-1-d75923bcecad@xxxxxxx
---
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..1e61e17b0ee35 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@xxxxxxx>