未验证 提交 e9d7c323 编写于 作者: P Pratyush Yadav 提交者: Mark Brown

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: NPratyush Yadav <p.yadav@ti.com>
Reviewed-by: NRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211109181911.2251-4-p.yadav@ti.comSigned-off-by: NMark Brown <broonie@kernel.org>
上级 b6bdc6e0
...@@ -11,6 +11,7 @@ maintainers: ...@@ -11,6 +11,7 @@ maintainers:
allOf: allOf:
- $ref: "mtd.yaml#" - $ref: "mtd.yaml#"
- $ref: /schemas/spi/spi-peripheral-props.yaml#
properties: properties:
compatible: compatible:
...@@ -88,7 +89,7 @@ patternProperties: ...@@ -88,7 +89,7 @@ patternProperties:
"^otp(-[0-9]+)?$": "^otp(-[0-9]+)?$":
type: object type: object
additionalProperties: false unevaluatedProperties: false
examples: examples:
- | - |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册