Skip to content

Commit

Permalink
dt-bindings: i2c: renesas,riic: Fix 'unevaluatedProperties' warnings
Browse files Browse the repository at this point in the history
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 <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
  • Loading branch information
Lad Prabhakar authored and Wolfram Sang committed Aug 30, 2022
1 parent 53b7747 commit 4e2a2ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/i2c/renesas,riic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ properties:
power-domains:
maxItems: 1

resets:
maxItems: 1

required:
- compatible
- reg
Expand Down

0 comments on commit 4e2a2ed

Please sign in to comment.