dt-bindings: eeprom: at25: 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 <krzysztof.kozlowski@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220727164424.386499-1-krzysztof.kozlowski@linaro.org
This commit is contained in:
parent
944ad762bb
commit
532b04d846
|
@ -44,8 +44,6 @@ properties:
|
||||||
reg:
|
reg:
|
||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
spi-max-frequency: true
|
|
||||||
|
|
||||||
pagesize:
|
pagesize:
|
||||||
$ref: /schemas/types.yaml#/definitions/uint32
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
enum: [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072]
|
enum: [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072]
|
||||||
|
@ -105,6 +103,7 @@ required:
|
||||||
- spi-max-frequency
|
- spi-max-frequency
|
||||||
|
|
||||||
allOf:
|
allOf:
|
||||||
|
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
||||||
- if:
|
- if:
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
|
@ -117,7 +116,7 @@ allOf:
|
||||||
- size
|
- size
|
||||||
- address-width
|
- address-width
|
||||||
|
|
||||||
additionalProperties: false
|
unevaluatedProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- |
|
- |
|
||||||
|
|
|
@ -28,9 +28,6 @@ properties:
|
||||||
description: chip select of EEPROM
|
description: chip select of EEPROM
|
||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
spi-max-frequency: true
|
|
||||||
spi-cs-high: true
|
|
||||||
|
|
||||||
read-only:
|
read-only:
|
||||||
description:
|
description:
|
||||||
parameter-less property which disables writes to the EEPROM
|
parameter-less property which disables writes to the EEPROM
|
||||||
|
@ -42,14 +39,16 @@ properties:
|
||||||
of EEPROM (e.g. for SPI bus multiplexing)
|
of EEPROM (e.g. for SPI bus multiplexing)
|
||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
- reg
|
- reg
|
||||||
- data-size
|
- data-size
|
||||||
- spi-max-frequency
|
- spi-max-frequency
|
||||||
|
|
||||||
additionalProperties: false
|
allOf:
|
||||||
|
- $ref: /schemas/spi/spi-peripheral-props.yaml#
|
||||||
|
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- |
|
- |
|
||||||
|
|
Loading…
Reference in New Issue