Skip to content

Commit

Permalink
boards: stm32h573i_dk: Enable I2C
Browse files Browse the repository at this point in the history
Enable i2c1 on stm32h573i_dk (arduino_i2c).
Additionally provide a test configuration for i2c_target_api.

Signed-off-by: Erwan Gouriou <[email protected]>
  • Loading branch information
erwango authored and aescolar committed Mar 12, 2024
1 parent 456183f commit 749c0e4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
1 change: 1 addition & 0 deletions boards/st/stm32h573i_dk/arduino_r3_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@
};

arduino_spi: &spi2 {};
arduino_i2c: &i2c1 {};
16 changes: 2 additions & 14 deletions boards/st/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 |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c bus |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi bus |
+-----------+------------+-------------------------------------+
| OCTOSPI | on-chip | octospi |
Expand All @@ -203,20 +205,6 @@ The default configuration can be found in the defconfig and dts files:
- :zephyr_file:`boards/st/stm32h573i_dk/stm32h573i_dk_defconfig`
- :zephyr_file:`boards/st/stm32h573i_dk/stm32h573i_dk.dts`

Zephyr board options
====================

The STM32H573 is an SoC with Cortex-M33 architecture. Zephyr provides support
for building for Secure firmware.

The BOARD options are summarized below:

+----------------------+-----------------------------------------------+
| BOARD | Description |
+======================+===============================================+
| stm32h573i_dk | For building Secure firmware |
+----------------------+-----------------------------------------------+

Connections and IOs
===================

Expand Down
7 changes: 7 additions & 0 deletions boards/st/stm32h573i_dk/stm32h573i_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@
apb3-prescaler = <1>;
};

&i2c1 {
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
pinctrl-names = "default";
clock-frequency = <I2C_BITRATE_FAST>;
status = "okay";
};

&usart1 {
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
pinctrl-names = "default";
Expand Down
1 change: 1 addition & 0 deletions boards/st/stm32h573i_dk/stm32h573i_dk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ supported:
- can
- usb_device
- usb
- i2c
vendor: st

0 comments on commit 749c0e4

Please sign in to comment.