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

Configure Feed

Select the types of activity you want to include in your feed.

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)

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250220164655.2081224-1-Frank.Li@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Frank Li and committed by
Ulf Hansson
75977947 7cbe799a

+1 -1
+1 -1
Documentation/devicetree/bindings/mmc/mmc-controller.yaml
··· 24 24 $nodename: 25 25 pattern: "^mmc(@.*)?$" 26 26 27 - unevaluatedProperties: true 27 + additionalProperties: true 28 28 29 29 examples: 30 30 - |