dt-bindings: mmc: Change to additionalProperties to fix fail detect Unevaluated property
Subsystems (3)
Frank Li
maintainerPATCH 1/1 dt-bindings: mmc: Change to additionalProperties to fix fail detect Unevaluated property
mmc-controller.yaml is common schema file. According to writing-schema.rst,
* additionalProperties: true
Rare case, used for schemas implementing common set of properties. Such schemas are supposed to be referenced by other schemas, which then use 'unevaluatedProperties: false'. Typically bus or common-part schemas.
Reproduce steps:
1. Add unevaluated property 'abc' at example of fsl-imx-esdhc.yaml
2. Run make dt_binding_check DT_SCHEMA_FILES=fsl-imx-esdhc.yaml
No any warning report. But suppose report below warning:
mmc@70004000: Unevaluated properties are not allowed ('abc' was unexpected)
--- Documentation/devicetree/bindings/mmc/mmc-controller.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/mmc/mmc-controller.yaml +1 -1
@@ -24,7 +24,7 @@ properties: $nodename: pattern: "^mmc(@.*)?$" -unevaluatedProperties: true +additionalProperties: true examples: - |
Signature · 1 line
2.34.1
Quoted 11 lines · Frank Li
mmc-controller.yamlis common schema file. According towriting-schema.rst,* additionalProperties: true
Rare case, used for schemas implementing common set of properties. Such schemas are supposed to be referenced by other schemas, which then use 'unevaluatedProperties: false'. Typically bus or common-part schemas.Reproduce steps:
1. Add unevaluated property 'abc' at example offsl-imx-esdhc.yaml
2. Run makedt_binding_checkDT_SCHEMA_FILES=fsl-imx-esdhc.yaml
Quoted 8 lines
No any warning report. But suppose report below warning:
mmc@70004000: Unevaluated properties are not allowed ('abc' was unexpected)Signed-off-by Frank Li <[email protected]>--- Documentation/devicetree/bindings/mmc/mmc-controller.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 8 lines · Frank Li
mmc-controller.yamlis common schema file. According towriting-schema.rst,* additionalProperties: true
Rare case, used for schemas implementing common set of properties. Such schemas are supposed to be referenced by other schemas, which then use 'unevaluatedProperties: false'. Typically bus or common-part schemas.
Quoted 8 lines
Reproduce steps:
1. Add unevaluated property 'abc' at example offsl-imx-esdhc.yaml
2. Run makedt_binding_checkDT_SCHEMA_FILES=fsl-imx-esdhc.yamlNo any warning report. But suppose report below warning:
mmc@70004000: Unevaluated properties are not allowed ('abc' was unexpected)Signed-off-by Frank Li <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 20 lines
--- Documentation/devicetree/bindings/mmc/mmc-controller.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/mmc/mmc-controller.yaml +1
-2@@ -24,7 +24,7 @@ properties: $nodename: pattern: "^mmc(@.*)?$" -unevaluatedProperties: true +additionalProperties: true examples: - | --2.34.1