dt-bindings: gpio: uniphier: Add hogs parsing
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Wed, 30 Mar 2022 05:17:03 +0000 (14:17 +0900)
committerBartosz Golaszewski <brgl@bgdev.pl>
Mon, 4 Apr 2022 10:52:19 +0000 (12:52 +0200)
Allow parsing GPIO controller children nodes with GPIO hogs to fix the
following warning:

  uniphier-ld11-ref.dtb: gpio@55000000: 'xirq0-hog' does not match any of the regexes: 'pinctrl-[0-9]+'
      From schema: Documentation/devicetree/bindings/gpio/socionext,uniphier-gpio.yaml

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Documentation/devicetree/bindings/gpio/socionext,uniphier-gpio.yaml

index bcafa49..228fa27 100644 (file)
@@ -52,6 +52,23 @@ properties:
       <child-interrupt-base parent-interrupt-base length> triplets.
     $ref: /schemas/types.yaml#/definitions/uint32-matrix
 
+patternProperties:
+  "^.+-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