[PATCH v3] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes

Vincent Jardin via B4 Relay posted 1 patch 1 month ago
Documentation/devicetree/bindings/gpio/fsl,qoriq-gpio.yaml | 7 +++++++
1 file changed, 7 insertions(+)
[PATCH v3] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes
Posted by Vincent Jardin via B4 Relay 1 month ago
From: Vincent Jardin <vjardin@free.fr>

QorIQ GPIO controllers may have hogs in device nodes, so let's expose
it.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Vincent Jardin <vjardin@free.fr>
---
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@free.fr

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@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..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@free.fr>
Re: [PATCH v3] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes
Posted by Bartosz Golaszewski 1 month ago
On Tue, 25 Aug 2026 11:41:57 +0200, Vincent Jardin wrote:
> QorIQ GPIO controllers may have hogs in device nodes, so let's expose
> it.
> 
> 

Applied, thanks!

[1/1] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes
      https://git.kernel.org/brgl/c/78c0baf85cd0ab61939b6d4670158d5c53dada69

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>