dt-bindings: gpio: fsl-imx-gpio: Add parsing of hogs
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 25 Aug 2020 19:35:20 +0000 (21:35 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Fri, 4 Sep 2020 15:04:36 +0000 (17:04 +0200)
Allow parsing GPIO controller children nodes with GPIO hogs to fix
warning:

  arch/arm64/boot/dts/freescale/imx8mq-evk.dt.yaml: gpio@30240000: 'wl-reg-on' does not match any of the regexes: 'pinctrl-[0-9]+'
    From schema: Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20200825193536.7332-4-krzk@kernel.org
Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml

index dffd9171ea66c97476b287c56bd0581df756a8dd..620a52f944e8ffdc6f93374861d206acc32d3ee1 100644 (file)
@@ -53,6 +53,23 @@ properties:
 
   gpio-ranges: true
 
+patternProperties:
+  "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":
+    type: object
+    properties:
+      gpio-hog: true
+      gpios: true
+      input: true
+      output-high: true
+      output-low: true
+      line-name: true
+
+    required:
+      - gpio-hog
+      - gpios
+
+    additionalProperties: false
+
 required:
   - compatible
   - reg