Skip to content

Commit abed2ba

Browse files
krzkbroonie
authored andcommitted
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: Krzysztof Kozlowski <[email protected]> Acked-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d7bffbe commit abed2ba

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Documentation/devicetree/bindings/sound/adi,adau1977.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ properties:
3232
reset-gpios:
3333
maxItems: 1
3434

35-
spi-max-frequency: true
36-
3735
AVDD-supply:
3836
description: Analog power support for the device.
3937

@@ -52,7 +50,10 @@ required:
5250
- compatible
5351
- AVDD-supply
5452

55-
additionalProperties: false
53+
allOf:
54+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
55+
56+
unevaluatedProperties: false
5657

5758
examples:
5859
- |

Documentation/devicetree/bindings/sound/wlf,wm8731.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ properties:
5252
DCVDD-supply:
5353
description: Digital core supply regulator for the DCVDD pin.
5454

55-
spi-max-frequency: true
56-
57-
additionalProperties: false
58-
5955
required:
6056
- reg
6157
- compatible
@@ -64,6 +60,11 @@ required:
6460
- DBVDD-supply
6561
- DCVDD-supply
6662

63+
allOf:
64+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
65+
66+
unevaluatedProperties: false
67+
6768
examples:
6869
- |
6970
spi {

0 commit comments

Comments
 (0)