[PATCH 11/25] dt-bindings: spi: andestech,ae350-spi: make DMA and interrupts optional

Benoît Monin benoit.monin at bootlin.com
Fri Nov 6 01:30:08 PST 2026


The ATCSPI200 controller can be used in PIO mode, without DMA, and PIO
transfers can optionally use the controller's interrupt. Make dmas,
dma-names and interrupts optional, and require dma-names if dmas is
specified.

Originally-by: Jun Chang <jun.chang at metanoia-comm.com>
Signed-off-by: Benoît Monin <benoit.monin at bootlin.com>
---
 Documentation/devicetree/bindings/spi/andestech,ae350-spi.yaml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/spi/andestech,ae350-spi.yaml b/Documentation/devicetree/bindings/spi/andestech,ae350-spi.yaml
index 381042e07fd0..91e04f5d354a 100644
--- a/Documentation/devicetree/bindings/spi/andestech,ae350-spi.yaml
+++ b/Documentation/devicetree/bindings/spi/andestech,ae350-spi.yaml
@@ -24,6 +24,9 @@ properties:
   clocks:
     maxItems: 1
 
+  interrupts:
+    maxItems: 1
+
   dmas:
     items:
       - description: Transmit FIFO DMA channel
@@ -34,6 +37,9 @@ properties:
       - const: tx
       - const: rx
 
+dependencies:
+  dmas: [ dma-names ]
+
 patternProperties:
   "@[0-9a-f]+$":
     type: object
@@ -55,8 +61,6 @@ required:
   - compatible
   - reg
   - clocks
-  - dmas
-  - dma-names
 
 unevaluatedProperties: false
 

-- 
2.56.0




More information about the linux-riscv mailing list