dt-bindings: thermal: rcar-gen3-thermal: use positive logic

When handling the V3U/r8a779a0 exception, avoid using 'not:' because
then its subschemas are far away in the 'else:' branch. Keep them
together using positive logic.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20220610201701.7946-1-wsa+renesas@sang-engineering.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
Wolfram Sang 2022-06-10 22:17:00 +02:00 committed by Daniel Lezcano
parent f16d37056b
commit 3c1fa94cd0
1 changed files with 14 additions and 15 deletions

View File

@ -57,13 +57,21 @@ required:
- "#thermal-sensor-cells" - "#thermal-sensor-cells"
if: if:
not: properties:
properties: compatible:
compatible: contains:
contains: enum:
enum: - renesas,r8a779a0-thermal
- renesas,r8a779a0-thermal
then: then:
properties:
reg:
items:
- description: TSC0 registers
- description: TSC1 registers
- description: TSC2 registers
- description: TSC3 registers
- description: TSC4 registers
else:
properties: properties:
reg: reg:
minItems: 2 minItems: 2
@ -73,15 +81,6 @@ then:
- description: TSC3 registers - description: TSC3 registers
required: required:
- interrupts - interrupts
else:
properties:
reg:
items:
- description: TSC0 registers
- description: TSC1 registers
- description: TSC2 registers
- description: TSC3 registers
- description: TSC4 registers
additionalProperties: false additionalProperties: false