diff --git a/boards/st/nucleo_h745zi_q/doc/index.rst b/boards/st/nucleo_h745zi_q/doc/index.rst index b1593b5e484..a77ac60e3f5 100644 --- a/boards/st/nucleo_h745zi_q/doc/index.rst +++ b/boards/st/nucleo_h745zi_q/doc/index.rst @@ -117,6 +117,8 @@ features: +-------------+------------+-------------------------------------+ | USB OTG FS | on-chip | USB device | +-------------+------------+-------------------------------------+ +| SPI | on-chip | spi | ++-------------+------------+-------------------------------------+ 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 - LD3 : PB14 - I2C : PB8, PB9 +- SPI : PA5, PA6, PB5, PD14 System Clock ------------ diff --git a/boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m4.dts b/boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m4.dts index d4de60053ac..bca4302e2ff 100644 --- a/boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m4.dts +++ b/boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m4.dts @@ -35,3 +35,11 @@ &rcc { clock-frequency = ; }; + +&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"; +}; diff --git a/boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m7.dts b/boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m7.dts index d3ed100f74a..a09d693b029 100644 --- a/boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m7.dts +++ b/boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m7.dts @@ -132,6 +132,13 @@ 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 { pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>; pinctrl-names = "default"; diff --git a/tests/drivers/spi/spi_loopback/testcase.yaml b/tests/drivers/spi/spi_loopback/testcase.yaml index 5a00e2747c5..1cdb46beca6 100644 --- a/tests/drivers/spi/spi_loopback/testcase.yaml +++ b/tests/drivers/spi/spi_loopback/testcase.yaml @@ -56,6 +56,8 @@ tests: platform_allow: - nucleo_h743zi - nucleo_h753zi + - nucleo_h745zi_q/stm32h745xx/m4 + - nucleo_h745zi_q/stm32h745xx/m7 drivers.spi.stm32_spi_dma.loopback: extra_args: OVERLAY_CONFIG="overlay-stm32-spi-dma.conf" filter: CONFIG_SOC_FAMILY_STM32 @@ -71,6 +73,8 @@ tests: - nucleo_wl55jc - nucleo_h743zi - nucleo_h753zi + - nucleo_h745zi_q/stm32h745xx/m4 + - nucleo_h745zi_q/stm32h745xx/m7 - stm32h573i_dk integration_platforms: - nucleo_g474re @@ -83,6 +87,8 @@ tests: platform_allow: - nucleo_h743zi - nucleo_h753zi + - nucleo_h745zi_q/stm32h745xx/m4 + - nucleo_h745zi_q/stm32h745xx/m7 drivers.spi.stm32_spi_16bits_frames_dma.loopback: extra_args: - OVERLAY_CONFIG="overlay-stm32-spi-16bits-dma.conf" @@ -91,6 +97,8 @@ tests: platform_allow: - nucleo_h743zi - nucleo_h753zi + - nucleo_h745zi_q/stm32h745xx/m4 + - nucleo_h745zi_q/stm32h745xx/m7 drivers.spi.stm32_spi_16bits_frames_dma_dt_nocache_mem.loopback: extra_args: - OVERLAY_CONFIG="overlay-stm32-spi-16bits-dma-dt-nocache-mem.conf" @@ -99,6 +107,8 @@ tests: platform_allow: - nucleo_h743zi - nucleo_h753zi + - nucleo_h745zi_q/stm32h745xx/m4 + - nucleo_h745zi_q/stm32h745xx/m7 drivers.spi.stm32_spi_interrupt.loopback: extra_args: OVERLAY_CONFIG="overlay-stm32-spi-interrupt.conf" filter: CONFIG_SOC_FAMILY_STM32 @@ -111,6 +121,8 @@ tests: - nucleo_g474re - nucleo_h743zi - nucleo_h753zi + - nucleo_h745zi_q/stm32h745xx/m4 + - nucleo_h745zi_q/stm32h745xx/m7 - nucleo_l152re - nucleo_wb55rg - nucleo_wl55jc