[PATCH 1/4] spi: dt-bindings: brcm,bcm2835-spi: Add dmas and dma-names
Kryštof Černý via B4 Relay
devnull+cleverline1mc.gmail.com at kernel.org
Fri Nov 27 07:21:06 PST 2026
From: Kryštof Černý <cleverline1mc at gmail.com>
The driver requests optional "tx" and "rx" DMA channels, and
bcm2835-common.dtsi has set them on the SPI node since commit
cbbe88333062 ("ARM: bcm283x: Enable DMA support for SPI controller"),
but the schema from the conversion to dtschema does not allow them.
dtbs_check is silent only because no in-tree board enables the node;
with spi0 enabled on a BCM2837 board it reports:
spi at 7e204000 (brcm,bcm2835-spi): Unevaluated properties are not allowed ('dma-names', 'dmas' were unexpected)
Document both properties.
Fixes: 85ce0dc28ffd ("spi: dt-bindings: brcm,bcm2835-spi: convert to dtschema")
Signed-off-by: Kryštof Černý <cleverline1mc at gmail.com>
---
Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml b/Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml
index 94da68792194..8d2919ce6096 100644
--- a/Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml
+++ b/Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml
@@ -30,6 +30,16 @@ properties:
clocks:
maxItems: 1
+ dmas:
+ items:
+ - description: TX DMA channel
+ - description: RX DMA channel
+
+ dma-names:
+ items:
+ - const: tx
+ - const: rx
+
required:
- compatible
- reg
@@ -45,6 +55,8 @@ examples:
reg = <0x7e204000 0x1000>;
interrupts = <2 22>;
clocks = <&clk_spi>;
+ dmas = <&dma 6>, <&dma 7>;
+ dma-names = "tx", "rx";
#address-cells = <1>;
#size-cells = <0>;
};
--
2.47.3
More information about the linux-arm-kernel
mailing list