diff --git a/boards/arm/stm32h573i_dk/arduino_r3_connector.dtsi b/boards/arm/stm32h573i_dk/arduino_r3_connector.dtsi index 386d6ad603c085..87f3e6332dff33 100644 --- a/boards/arm/stm32h573i_dk/arduino_r3_connector.dtsi +++ b/boards/arm/stm32h573i_dk/arduino_r3_connector.dtsi @@ -34,3 +34,5 @@ <21 0 &gpiob 6 0>; /* D15 */ }; }; + +arduino_spi: &spi2 {}; diff --git a/boards/arm/stm32h573i_dk/doc/index.rst b/boards/arm/stm32h573i_dk/doc/index.rst index 17607489176d46..65b868eb12136b 100644 --- a/boards/arm/stm32h573i_dk/doc/index.rst +++ b/boards/arm/stm32h573i_dk/doc/index.rst @@ -183,6 +183,8 @@ hardware features: +-----------+------------+-------------------------------------+ | RTC | on-chip | Real Time Clock | +-----------+------------+-------------------------------------+ +| SPI | on-chip | spi bus | ++-----------+------------+-------------------------------------+ Other hardware features are not yet supported on this Zephyr port. diff --git a/boards/arm/stm32h573i_dk/stm32h573i_dk.dts b/boards/arm/stm32h573i_dk/stm32h573i_dk.dts index 7859f321254891..53a46809cc8b8a 100644 --- a/boards/arm/stm32h573i_dk/stm32h573i_dk.dts +++ b/boards/arm/stm32h573i_dk/stm32h573i_dk.dts @@ -183,3 +183,10 @@ pinctrl-names = "default"; status = "okay"; }; + +&spi2 { + pinctrl-0 = <&spi2_nss_pa3 &spi2_sck_pi1 + &spi2_miso_pi2 &spi2_mosi_pb15>; + pinctrl-names = "default"; + status = "okay"; +}; diff --git a/boards/arm/stm32h573i_dk/stm32h573i_dk.yaml b/boards/arm/stm32h573i_dk/stm32h573i_dk.yaml index 3eb2cb9719a0fc..97d1b7d50b402b 100644 --- a/boards/arm/stm32h573i_dk/stm32h573i_dk.yaml +++ b/boards/arm/stm32h573i_dk/stm32h573i_dk.yaml @@ -17,3 +17,4 @@ supported: - dac - pwm - counter + - spi