]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dt-bindings: mmc: Change to additionalProperties to fix fail detect Unevaluated property
authorFrank Li <Frank.Li@nxp.com>
Thu, 20 Feb 2025 16:46:54 +0000 (11:46 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 11 Mar 2025 17:44:49 +0000 (18:44 +0100)
commit7597794706952db4adada29b2a6593251cddcd85
tree534d4aafe70e56fcb2151b44195fd80506ffaaa0
parent7cbe799ac10fd8be85af5e0615c4337f81e575f3
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>
Documentation/devicetree/bindings/mmc/mmc-controller.yaml