Message ID | 20240405-cdns-qspi-mbly-v2-1-956679866d6d@bootlin.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | spi: cadence-qspi: add Mobileye EyeQ5 support | expand |
On Fri, Apr 05, 2024 at 05:02:11PM +0200, Théo Lebrun wrote: > + - if: > + properties: > + compatible: > + contains: > + const: mobileye,eyeq5-ospi > + then: > + properties: > + cdns,fifo-depth: false > + else: > + required: > + - cdns,fifo-depth My suggestions on the FIFO depth probe patch would mean this would turn into making cdns,fifo-depth optional for everything. It certainly seems like many instances of the hardware should support that anyway.
diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml index cca81f89e252..5509c126b1cf 100644 --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml @@ -61,6 +61,17 @@ allOf: cdns,fifo-depth: enum: [ 128, 256 ] default: 128 + - if: + properties: + compatible: + contains: + const: mobileye,eyeq5-ospi + then: + properties: + cdns,fifo-depth: false + else: + required: + - cdns,fifo-depth properties: compatible: @@ -68,6 +79,7 @@ properties: - items: - enum: - amd,pensando-elba-qspi + - mobileye,eyeq5-ospi - ti,k2g-qspi - ti,am654-ospi - intel,lgm-qspi @@ -145,7 +157,6 @@ required: - reg - interrupts - clocks - - cdns,fifo-depth - cdns,fifo-width - cdns,trigger-address - '#address-cells'