Skip to content

Commit

Permalink
dt-bindings: mtd: microchip,mchp48l640: use spi-peripheral-props.yaml
Browse files Browse the repository at this point in the history
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]>
Reviewed-by: Tudor Ambarus <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
krzk authored and robherring committed Aug 2, 2022
1 parent 1ea78ec commit 7e7a24c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ properties:
reg:
maxItems: 1

spi-max-frequency: true

required:
- compatible
- reg

additionalProperties: false
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down

0 comments on commit 7e7a24c

Please sign in to comment.