Commit abed2baf authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown

ASoC: dt-bindings: use spi-peripheral-props.yaml

Instead of listing directly properties typical for SPI peripherals,
reference the spi-peripheral-props.yaml schema.  This allows using all
properties typical for SPI-connected devices, even these which device
bindings author did not tried yet.

Remove the spi-* properties which now come via spi-peripheral-props.yaml
schema, except for the cases when device schema adds some constraints
like maximum frequency.

While changing additionalProperties->unevaluatedProperties, put it in
typical place, just before example DTS.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220727164050.385241-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent d7bffbe9
...@@ -32,8 +32,6 @@ properties: ...@@ -32,8 +32,6 @@ properties:
reset-gpios: reset-gpios:
maxItems: 1 maxItems: 1
spi-max-frequency: true
AVDD-supply: AVDD-supply:
description: Analog power support for the device. description: Analog power support for the device.
...@@ -52,7 +50,10 @@ required: ...@@ -52,7 +50,10 @@ required:
- compatible - compatible
- AVDD-supply - AVDD-supply
additionalProperties: false allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -52,10 +52,6 @@ properties: ...@@ -52,10 +52,6 @@ properties:
DCVDD-supply: DCVDD-supply:
description: Digital core supply regulator for the DCVDD pin. description: Digital core supply regulator for the DCVDD pin.
spi-max-frequency: true
additionalProperties: false
required: required:
- reg - reg
- compatible - compatible
...@@ -64,6 +60,11 @@ required: ...@@ -64,6 +60,11 @@ required:
- DBVDD-supply - DBVDD-supply
- DCVDD-supply - DCVDD-supply
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
unevaluatedProperties: false
examples: examples:
- | - |
spi { spi {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment