]> Git Repo - linux.git/commitdiff
dt-bindings: i2c: renesas,riic: Fix 'unevaluatedProperties' warnings
authorLad Prabhakar <[email protected]>
Mon, 29 Aug 2022 21:47:30 +0000 (22:47 +0100)
committerWolfram Sang <[email protected]>
Tue, 30 Aug 2022 10:08:54 +0000 (12:08 +0200)
With 'unevaluatedProperties' support implemented, there's a number of
warnings when running dtbs_check:

arch/arm64/boot/dts/renesas/r9a07g043u11-smarc.dtb: i2c@10058000: Unevaluated properties are not allowed ('resets' was unexpected)
From schema: Documentation/devicetree/bindings/i2c/renesas,riic.yaml

The main problem is that bindings schema marks resets as a required
property for RZ/G2L (and alike) SoC's but resets property is not part
of schema. So to fix this just add a resets property with maxItems
set to 1.

Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Acked-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Documentation/devicetree/bindings/i2c/renesas,riic.yaml

index 2f315489aaaecc7fee12c359eed1ebe68cb06e29..d3c0d5c427acbcbf39fd6ad07fb525980dac3bd8 100644 (file)
@@ -60,6 +60,9 @@ properties:
   power-domains:
     maxItems: 1
 
+  resets:
+    maxItems: 1
+
 required:
   - compatible
   - reg
This page took 0.061664 seconds and 4 git commands to generate.