Commit 25990aab authored by Rob Herring's avatar Rob Herring Committed by Linus Walleij
Browse files

dt-bindings: pinctrl: renesas,rza2: Use 'additionalProperties' for child nodes



A schema under 'additionalProperties' works better for matching any
property/node other than the ones explicitly listed. Convert the schema
to use that rather than the wildcard and if/then schema.

Drop 'phandle' properties which never need to be explicitly listed while
we're here.

Signed-off-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230819010928.916438-1-robh@kernel.org


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 0d8387fb
Loading
Loading
Loading
Loading
+28 −33
Original line number Diff line number Diff line
@@ -37,14 +37,13 @@ properties:
  gpio-ranges:
    maxItems: 1

patternProperties:
  "^.*$":
    if:
additionalProperties:
  type: object
    then:

  allOf:
    - $ref: pincfg-node.yaml#
    - $ref: pinmux-node.yaml#

  description:
    The child nodes of the pin controller designate pins to be used for
    specific peripheral functions or as GPIO.
@@ -59,8 +58,6 @@ patternProperties:
    to express the desired port pin.

  properties:
        phandle: true

    pinmux:
      description:
        Values are constructed from GPIO port number, pin number, and
@@ -82,8 +79,6 @@ required:
  - '#gpio-cells'
  - gpio-ranges

additionalProperties: false

examples:
  - |
    #include <dt-bindings/pinctrl/r7s9210-pinctrl.h>