[PATCH v3] dt-bindings: gpio: fsl,qoriq-gpio: allow gpio-hog child nodes
Vincent Jardin via B4 Relay <[email protected]>
| Newsgroups | org.kernel.vger.linux-gpio,org.kernel.feeds.b4-sent,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260825-for-upstream-dt-qoriq-gpio-hog-v3-1-b99bda4f44d7@free.fr> |
From: Vincent Jardin <[email protected]> QorIQ GPIO controllers may have hogs in device nodes, so let's expose it. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Vincent Jardin <[email protected]> --- 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 <[email protected]>