1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/spi/st,stm32-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: STMicroelectronics STM32 SPI Controller bindings
10 The STM32 SPI controller is used to communicate with external devices using
11 the Serial Peripheral Interface. It supports full-duplex, half-duplex and
12 simplex synchronous serial communication with external devices. It supports
13 from 4 to 32-bit data size.
16 - Erwan Leray <erwan.leray@st.com>
17 - Fabrice Gasnier <fabrice.gasnier@st.com>
20 - $ref: "spi-controller.yaml#"
51 DMA specifiers for tx and rx dma. DMA fifo mode must be used. See
52 the STM32 DMA bindings Documentation/devicetree/bindings/dma/stm32-dma.txt.
54 - description: rx DMA channel
55 - description: tx DMA channel
63 "^[a-zA-Z][a-zA-Z0-9,+\\-._]{0,63}@[0-9a-f]+$":
65 # SPI slave nodes must be children of the SPI master node and can
66 # contain the following properties.
70 Only for STM32H7, (Master Inter-Data Idleness) minimum time
71 delay in nanoseconds inserted between two consecutive data frames.
81 #include <dt-bindings/interrupt-controller/arm-gic.h>
82 #include <dt-bindings/clock/stm32mp1-clks.h>
83 #include <dt-bindings/reset/stm32mp1-resets.h>
87 compatible = "st,stm32h7-spi";
88 reg = <0x4000b000 0x400>;
89 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
90 clocks = <&rcc SPI2_K>;
91 resets = <&rcc SPI2_R>;
92 dmas = <&dmamux1 0 39 0x400 0x05>,
93 <&dmamux1 1 40 0x400 0x05>;
94 dma-names = "rx", "tx";
95 cs-gpios = <&gpioa 11 0>;
98 compatible = "totalphase,aardvark";
100 spi-max-frequency = <4000000>;
101 st,spi-midi-ns = <4000>;