Commit 7cfa9770 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Daniel Lezcano
Browse files

dt-bindings: thermal: rcar-thermal: Improve schema validation



- Factor out common required properties,
  - "interrupts", "clocks", and "power-domains" are required on R-Mobile
    APE6, too,
  - Invert logic to simplify descriptions.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarNiklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: default avatarAmit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201028153541.1736279-1-geert+renesas@glider.be
parent 236761f1
Loading
Loading
Loading
Loading
+29 −19
Original line number Diff line number Diff line
@@ -62,7 +62,13 @@ properties:
  "#thermal-sensor-cells":
    const: 0

if:
required:
  - compatible
  - reg

allOf:
  - if:
      not:
        properties:
          compatible:
            contains:
@@ -71,16 +77,20 @@ if:
                - renesas,thermal-r8a7779 # R-Car H1
    then:
      required:
    - compatible
    - reg
else:
        - resets
        - '#thermal-sensor-cells'

  - if:
      not:
        properties:
          compatible:
            contains:
              const: renesas,thermal-r8a7779 # R-Car H1
    then:
      required:
    - compatible
    - reg
        - interrupts
        - clocks
        - power-domains
    - resets

additionalProperties: false