Skip to content

Commit df7d9ba

Browse files
kbidanikartben
authored andcommitted
boards: st: stm32u3: enable spi for stm32u3 boards
Enable SPI for Nucleo U385RG_Q board. Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
1 parent 29c7500 commit df7d9ba

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

boards/st/nucleo_u385rg_q/arduino_r3_connector.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@
3636
};
3737

3838
arduino_i2c: &i2c1 {};
39+
arduino_spi: &spi3 {};
3940
arduino_serial: &lpuart1 {};

boards/st/nucleo_u385rg_q/doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ Default Zephyr Peripheral Mapping:
190190
- LD4 : PA5
191191
- LPUART_1_TX : PA2
192192
- LPUART_1_RX : PA3
193+
- SPI3 NSS/SCK/MISO/MOSI : PA15/PB3/PB4/PB5 (Arduino SPI)
193194
- UART_1_TX : PA9
194195
- UART_1_RX : PA10
195196
- UART_3_TX : PC10

boards/st/nucleo_u385rg_q/nucleo_u385rg_q.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,10 @@
127127
&rng {
128128
status = "okay";
129129
};
130+
131+
&spi3 {
132+
pinctrl-0 = <&spi3_nss_pa15 &spi3_sck_pb3
133+
&spi3_miso_pb4 &spi3_mosi_pb5>;
134+
pinctrl-names = "default";
135+
status = "okay";
136+
};

boards/st/nucleo_u385rg_q/nucleo_u385rg_q.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ supported:
88
- arduino_gpio
99
- dac
1010
- adc
11+
- arduino_spi
1112
- dma
1213
- arduino_i2c
1314
- gpio
1415
- i2c
16+
- spi
1517
- usart
1618
ram: 256
1719
flash: 1024

0 commit comments

Comments
 (0)