Commit 3c1fa94c authored by Wolfram Sang's avatar Wolfram Sang Committed by Daniel Lezcano

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: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20220610201701.7946-1-wsa+renesas@sang-engineering.comSigned-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent f16d3705
...@@ -57,31 +57,30 @@ required: ...@@ -57,31 +57,30 @@ 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: properties:
reg: reg:
minItems: 2
items: items:
- description: TSC0 registers
- description: TSC1 registers - description: TSC1 registers
- description: TSC2 registers - description: TSC2 registers
- description: TSC3 registers - description: TSC3 registers
required: - description: TSC4 registers
- interrupts
else: else:
properties: properties:
reg: reg:
minItems: 2
items: items:
- description: TSC0 registers
- description: TSC1 registers - description: TSC1 registers
- description: TSC2 registers - description: TSC2 registers
- description: TSC3 registers - description: TSC3 registers
- description: TSC4 registers required:
- interrupts
additionalProperties: false additionalProperties: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment