dt-bindings: i2c: mxs: Pass ref and 'unevaluatedProperties: false'
Fabio Estevam
reviewerPATCH 1/1 dt-bindings: i2c: mxs: Pass ref and 'unevaluatedProperties: false'
From: Fabio Estevam <[email protected]>
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.
--- Documentation/devicetree/bindings/i2c/i2c-mxs.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/i2c/i2c-mxs.yaml +4 -1
@@ -9,6 +9,9 @@ title: Freescale MXS Inter IC (I2C) Controller maintainers: - Shawn Guo <[email protected]> +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + properties: compatible: enum:
@@ -37,7 +40,7 @@ required: - dmas - dma-names -additionalProperties: false +unevaluatedProperties: false examples: - |
Signature · 1 line
2.34.1
Quoted 11 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Running 'make
dtbs_checkDT_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.
Best regards,
Krzysztof
Wolfram Sang
AppliedQuoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Running 'make
dtbs_checkDT_SCHEMA_FILES=i2c-mxs.yaml' throws several schema warnings such as:
Quoted 8 lines
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 <[email protected]>
Applied to for-current, thanks!