Skip to content

Commit

Permalink
boards: arm: stm32h573 disco kit has spi instance
Browse files Browse the repository at this point in the history
Enable the spi2 instance on the stm32h573i_dk board
pin are available on the arduino connector

Signed-off-by: Francois Ramu <[email protected]>
  • Loading branch information
FRASTM authored and fabiobaltieri committed Apr 6, 2023
1 parent a639165 commit f6753e3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/arm/stm32h573i_dk/arduino_r3_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@
<21 0 &gpiob 6 0>; /* D15 */
};
};

arduino_spi: &spi2 {};
2 changes: 2 additions & 0 deletions boards/arm/stm32h573i_dk/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
7 changes: 7 additions & 0 deletions boards/arm/stm32h573i_dk/stm32h573i_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
1 change: 1 addition & 0 deletions boards/arm/stm32h573i_dk/stm32h573i_dk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ supported:
- dac
- pwm
- counter
- spi

0 comments on commit f6753e3

Please sign in to comment.