Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: i2c: mxs: Pass ref and 'unevaluatedProperties: false'

Running 'make dtbs_check DT_SCHEMA_FILES=i2c-mxs.yaml' throws
several schema warnings such as:

imx28-m28evk.dtb: i2c@80058000: '#address-cells', '#size-cells', 'codec@a', 'eeprom@51', 'rtc@68' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/i2c/i2c-mxs.yaml#

Fix these warnings by passing a reference to i2c-controller.yaml#
and using 'unevaluatedProperties: false' just like the yaml bindings
of other I2C controllers.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>

authored by

Fabio Estevam and committed by
Wolfram Sang
f5d19bbd 6465e260

+4 -1
+4 -1
Documentation/devicetree/bindings/i2c/i2c-mxs.yaml
··· 9 9 maintainers: 10 10 - Shawn Guo <shawnguo@kernel.org> 11 11 12 + allOf: 13 + - $ref: /schemas/i2c/i2c-controller.yaml# 14 + 12 15 properties: 13 16 compatible: 14 17 enum: ··· 40 37 - dmas 41 38 - dma-names 42 39 43 - additionalProperties: false 40 + unevaluatedProperties: false 44 41 45 42 examples: 46 43 - |