Skip to content

Commit 94a6ed6

Browse files
djiatsaf-stnashif
authored andcommitted
dts: arm: st: c0: add spi node in dtsi file
- stm32cO11/31 share the same spi peripheral - include stm32_dma header to be able to configure spi with dma config macros (STM32_DMA_PERIPH_TX,...) in dts Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent 6098b2f commit 94a6ed6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dts/arm/st/c0/stm32c0.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <zephyr/dt-bindings/adc/adc.h>
1010
#include <zephyr/dt-bindings/clock/stm32c0_clock.h>
1111
#include <zephyr/dt-bindings/gpio/gpio.h>
12+
#include <zephyr/dt-bindings/dma/stm32_dma.h>
1213
#include <zephyr/dt-bindings/i2c/i2c.h>
1314
#include <zephyr/dt-bindings/pwm/pwm.h>
1415
#include <zephyr/dt-bindings/pwm/stm32_pwm.h>
@@ -301,6 +302,16 @@
301302
status = "disabled";
302303
};
303304

305+
spi1: spi@40013000 {
306+
compatible = "st,stm32-spi-fifo", "st,stm32-spi";
307+
#address-cells = <1>;
308+
#size-cells = <0>;
309+
reg = <0x40013000 0x400>;
310+
clocks = <&rcc STM32_CLOCK(APB1_2, 12U)>;
311+
interrupts = <25 0>;
312+
status = "disabled";
313+
};
314+
304315
adc1: adc@40012400 {
305316
compatible = "st,stm32-adc";
306317
reg = <0x40012400 0x400>;

0 commit comments

Comments
 (0)