Skip to content

Commit f215698

Browse files
blarson866broonie
authored andcommitted
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
1 parent f5c2f9f commit f215698

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,28 @@ allOf:
4646
maxItems: 2
4747
items:
4848
enum: [ qspi, qspi-ocp ]
49+
- if:
50+
properties:
51+
compatible:
52+
contains:
53+
const: amd,pensando-elba-qspi
54+
then:
55+
properties:
56+
cdns,fifo-depth:
57+
enum: [ 128, 256, 1024 ]
58+
default: 1024
59+
else:
60+
properties:
61+
cdns,fifo-depth:
62+
enum: [ 128, 256 ]
63+
default: 128
4964

5065
properties:
5166
compatible:
5267
oneOf:
5368
- items:
5469
- enum:
70+
- amd,pensando-elba-qspi
5571
- ti,k2g-qspi
5672
- ti,am654-ospi
5773
- intel,lgm-qspi
@@ -76,8 +92,6 @@ properties:
7692
description:
7793
Size of the data FIFO in words.
7894
$ref: /schemas/types.yaml#/definitions/uint32
79-
enum: [ 128, 256 ]
80-
default: 128
8195

8296
cdns,fifo-width:
8397
$ref: /schemas/types.yaml#/definitions/uint32

0 commit comments

Comments
 (0)