Commit f2156989 authored by Brad Larson's avatar Brad Larson Committed by Mark Brown

spi: cdns: Add compatible for AMD Pensando Elba SoC

Document the cadence qspi controller compatible for AMD Pensando
Elba SoC boards.  The Elba qspi fifo size is 1024.

Signed-off-by: Brad Larson <blarson@amd.com
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org
Link: https://lore.kernel.org/r/20230515181606.65953-3-blarson@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org
parent f5c2f9f9
...@@ -46,12 +46,28 @@ allOf: ...@@ -46,12 +46,28 @@ allOf:
maxItems: 2 maxItems: 2
items: items:
enum: [ qspi, qspi-ocp ] enum: [ qspi, qspi-ocp ]
- if:
properties:
compatible:
contains:
const: amd,pensando-elba-qspi
then:
properties:
cdns,fifo-depth:
enum: [ 128, 256, 1024 ]
default: 1024
else:
properties:
cdns,fifo-depth:
enum: [ 128, 256 ]
default: 128
properties: properties:
compatible: compatible:
oneOf: oneOf:
- items: - items:
- enum: - enum:
- amd,pensando-elba-qspi
- ti,k2g-qspi - ti,k2g-qspi
- ti,am654-ospi - ti,am654-ospi
- intel,lgm-qspi - intel,lgm-qspi
...@@ -76,8 +92,6 @@ properties: ...@@ -76,8 +92,6 @@ properties:
description: description:
Size of the data FIFO in words. Size of the data FIFO in words.
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
enum: [ 128, 256 ]
default: 128
cdns,fifo-width: cdns,fifo-width:
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
......
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