]> git.baikalelectronics.ru Git - kernel.git/commit
dt-bindings: mtd: spi-nor: Add a reference to spi-peripheral-props.yaml
authorPratyush Yadav <p.yadav@ti.com>
Tue, 9 Nov 2021 18:19:11 +0000 (23:49 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 1 Dec 2021 14:15:53 +0000 (14:15 +0000)
commit66716ff58d640bc99825015c842168cddef27735
treec86d277c0d77f4bef911a3067fb873c9ecc2044f
parent8f389a26cdc8f94cd88f09ac32dbf73326965ce4
dt-bindings: mtd: spi-nor: Add a reference to spi-peripheral-props.yaml

The spi-peripheral-props.yaml schema contains peripheral-specific
properties for SPI controllers that should be present in the peripheral
node. Add a reference to that so its constraints are followed.

additionalProperties: false cannot be used since it marks the controller
properties as unknown. Use unevaluatedProperties: false instead. This
has the side effect of allowing extra properties that are not specified
in the schema. The alternative is to list all the controller properties
in this schema but that would mean every peripheral binding would have
to repeat the same set of properties for each controller.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211109181911.2251-4-p.yadav@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml