[PATCH] dt-bindings: mfd: adp5585: Add parsing of hogs

haibo.chen@nxp.com posted 1 patch 1 year, 3 months ago
There is a newer version of this series
Documentation/devicetree/bindings/mfd/adi,adp5585.yaml | 7 +++++++
1 file changed, 7 insertions(+)
[PATCH] dt-bindings: mfd: adp5585: Add parsing of hogs
Posted by haibo.chen@nxp.com 1 year, 3 months ago
From: Haibo Chen <haibo.chen@nxp.com>

Allow parsing GPIO controller children nodes with GPIO hogs.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
 Documentation/devicetree/bindings/mfd/adi,adp5585.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml b/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
index f9c069f8534b..815a39c18556 100644
--- a/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
+++ b/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
@@ -42,6 +42,13 @@ properties:
   "#pwm-cells":
     const: 3
 
+patternProperties:
+  "^(.+-hog(-[0-9]+)?)$":
+    type: object
+
+    required:
+      - gpio-hog
+
 required:
   - compatible
   - reg
-- 
2.34.1
Re: [PATCH] dt-bindings: mfd: adp5585: Add parsing of hogs
Posted by Krzysztof Kozlowski 1 year, 3 months ago
On Tue, Aug 27, 2024 at 02:17:10PM +0800, haibo.chen@nxp.com wrote:
> From: Haibo Chen <haibo.chen@nxp.com>
> 
> Allow parsing GPIO controller children nodes with GPIO hogs.
> 
> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
> ---
>  Documentation/devicetree/bindings/mfd/adi,adp5585.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml b/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
> index f9c069f8534b..815a39c18556 100644
> --- a/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
> +++ b/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
> @@ -42,6 +42,13 @@ properties:
>    "#pwm-cells":
>      const: 3
>  
> +patternProperties:
> +  "^(.+-hog(-[0-9]+)?)$":

Over-complicated regex.

https://elixir.bootlin.com/linux/v6.9-rc3/source/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml#L45

Best regards,
Krzysztof