boards: st: nucleo_h745zi_q: Enable SPI on Arduino extention

The board is capable to serve SPI on the Arduino extention header.
Configure and enable SPI to work on the extention.

Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de>
This commit is contained in:
Benedikt Spranger 2024-08-12 19:13:42 +02:00 committed by Alberto Escolar
commit 205e971f29
4 changed files with 30 additions and 0 deletions

View file

@ -117,6 +117,8 @@ features:
+-------------+------------+-------------------------------------+ +-------------+------------+-------------------------------------+
| USB OTG FS | on-chip | USB device | | USB OTG FS | on-chip | USB device |
+-------------+------------+-------------------------------------+ +-------------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-------------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port. Other hardware features are not yet supported on this Zephyr port.
@ -138,6 +140,7 @@ and a ST morpho connector. Board is configured as follows:
- LD2 : PB7 - LD2 : PB7
- LD3 : PB14 - LD3 : PB14
- I2C : PB8, PB9 - I2C : PB8, PB9
- SPI : PA5, PA6, PB5, PD14
System Clock System Clock
------------ ------------

View file

@ -35,3 +35,11 @@
&rcc { &rcc {
clock-frequency = <DT_FREQ_M(240)>; clock-frequency = <DT_FREQ_M(240)>;
}; };
&spi1 {
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pb5>;
pinctrl-names = "default";
cs-gpios = <&gpiod 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "okay";
};

View file

@ -132,6 +132,13 @@
status = "okay"; status = "okay";
}; };
&spi1 {
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pb5>;
pinctrl-names = "default";
cs-gpios = <&gpiod 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "okay";
};
zephyr_udc0: &usbotg_fs { zephyr_udc0: &usbotg_fs {
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>; pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
pinctrl-names = "default"; pinctrl-names = "default";

View file

@ -56,6 +56,8 @@ tests:
platform_allow: platform_allow:
- nucleo_h743zi - nucleo_h743zi
- nucleo_h753zi - nucleo_h753zi
- nucleo_h745zi_q/stm32h745xx/m4
- nucleo_h745zi_q/stm32h745xx/m7
drivers.spi.stm32_spi_dma.loopback: drivers.spi.stm32_spi_dma.loopback:
extra_args: OVERLAY_CONFIG="overlay-stm32-spi-dma.conf" extra_args: OVERLAY_CONFIG="overlay-stm32-spi-dma.conf"
filter: CONFIG_SOC_FAMILY_STM32 filter: CONFIG_SOC_FAMILY_STM32
@ -71,6 +73,8 @@ tests:
- nucleo_wl55jc - nucleo_wl55jc
- nucleo_h743zi - nucleo_h743zi
- nucleo_h753zi - nucleo_h753zi
- nucleo_h745zi_q/stm32h745xx/m4
- nucleo_h745zi_q/stm32h745xx/m7
- stm32h573i_dk - stm32h573i_dk
integration_platforms: integration_platforms:
- nucleo_g474re - nucleo_g474re
@ -83,6 +87,8 @@ tests:
platform_allow: platform_allow:
- nucleo_h743zi - nucleo_h743zi
- nucleo_h753zi - nucleo_h753zi
- nucleo_h745zi_q/stm32h745xx/m4
- nucleo_h745zi_q/stm32h745xx/m7
drivers.spi.stm32_spi_16bits_frames_dma.loopback: drivers.spi.stm32_spi_16bits_frames_dma.loopback:
extra_args: extra_args:
- OVERLAY_CONFIG="overlay-stm32-spi-16bits-dma.conf" - OVERLAY_CONFIG="overlay-stm32-spi-16bits-dma.conf"
@ -91,6 +97,8 @@ tests:
platform_allow: platform_allow:
- nucleo_h743zi - nucleo_h743zi
- nucleo_h753zi - nucleo_h753zi
- nucleo_h745zi_q/stm32h745xx/m4
- nucleo_h745zi_q/stm32h745xx/m7
drivers.spi.stm32_spi_16bits_frames_dma_dt_nocache_mem.loopback: drivers.spi.stm32_spi_16bits_frames_dma_dt_nocache_mem.loopback:
extra_args: extra_args:
- OVERLAY_CONFIG="overlay-stm32-spi-16bits-dma-dt-nocache-mem.conf" - OVERLAY_CONFIG="overlay-stm32-spi-16bits-dma-dt-nocache-mem.conf"
@ -99,6 +107,8 @@ tests:
platform_allow: platform_allow:
- nucleo_h743zi - nucleo_h743zi
- nucleo_h753zi - nucleo_h753zi
- nucleo_h745zi_q/stm32h745xx/m4
- nucleo_h745zi_q/stm32h745xx/m7
drivers.spi.stm32_spi_interrupt.loopback: drivers.spi.stm32_spi_interrupt.loopback:
extra_args: OVERLAY_CONFIG="overlay-stm32-spi-interrupt.conf" extra_args: OVERLAY_CONFIG="overlay-stm32-spi-interrupt.conf"
filter: CONFIG_SOC_FAMILY_STM32 filter: CONFIG_SOC_FAMILY_STM32
@ -111,6 +121,8 @@ tests:
- nucleo_g474re - nucleo_g474re
- nucleo_h743zi - nucleo_h743zi
- nucleo_h753zi - nucleo_h753zi
- nucleo_h745zi_q/stm32h745xx/m4
- nucleo_h745zi_q/stm32h745xx/m7
- nucleo_l152re - nucleo_l152re
- nucleo_wb55rg - nucleo_wb55rg
- nucleo_wl55jc - nucleo_wl55jc