tests: drivers: i2c: i2c_target_api: add stm32h573i_dk

Add necessary overlay and stm32h573i_dk in i2c_target_api test case
to enable the board.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
diff --git a/boards/st/stm32h573i_dk/stm32h573i_dk.dts b/boards/st/stm32h573i_dk/stm32h573i_dk.dts
index 78a687c..a4d0b5b 100644
--- a/boards/st/stm32h573i_dk/stm32h573i_dk.dts
+++ b/boards/st/stm32h573i_dk/stm32h573i_dk.dts
@@ -103,6 +103,13 @@
 	status = "okay";
 };
 
+&i2c2 {
+	pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb11>;
+	pinctrl-names = "default";
+	clock-frequency = <I2C_BITRATE_FAST>;
+	status = "okay";
+};
+
 &usart1 {
 	pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
 	pinctrl-names = "default";
diff --git a/tests/drivers/i2c/i2c_target_api/boards/stm32h573i_dk.conf b/tests/drivers/i2c/i2c_target_api/boards/stm32h573i_dk.conf
new file mode 100644
index 0000000..34b2571
--- /dev/null
+++ b/tests/drivers/i2c/i2c_target_api/boards/stm32h573i_dk.conf
@@ -0,0 +1,2 @@
+CONFIG_I2C_STM32_INTERRUPT=y
+CONFIG_I2C_VIRTUAL=n
diff --git a/tests/drivers/i2c/i2c_target_api/boards/stm32h573i_dk.overlay b/tests/drivers/i2c/i2c_target_api/boards/stm32h573i_dk.overlay
new file mode 100644
index 0000000..804f97c
--- /dev/null
+++ b/tests/drivers/i2c/i2c_target_api/boards/stm32h573i_dk.overlay
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2024 Nordic Semiconductor ASA
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+/* I2C bus pins are exposed on the ST morpho header.
+ *
+ *  Bus        SDA               SCL
+ *          Pin   Hdr         Pin   Hdr
+ *  i2c1    PB7   CN13:9      PB6   CN13:10
+ *  i2c2    PB11  CN15:1      PB10  CN15:2
+ *
+ * Short Pin PB7 to PB11, and PB6 to PB10, for the test to pass.
+ */
+
+&i2c1 {
+	eeprom0: eeprom@54 {
+		compatible = "zephyr,i2c-target-eeprom";
+		reg = <0x54>;
+		size = <1024>;
+	};
+};
+
+&i2c2 {
+	eeprom1: eeprom@56 {
+		compatible = "zephyr,i2c-target-eeprom";
+		reg = <0x56>;
+		size = <1024>;
+	};
+};
diff --git a/tests/drivers/i2c/i2c_target_api/testcase.yaml b/tests/drivers/i2c/i2c_target_api/testcase.yaml
index 0f14bff..f3883c0 100644
--- a/tests/drivers/i2c/i2c_target_api/testcase.yaml
+++ b/tests/drivers/i2c/i2c_target_api/testcase.yaml
@@ -16,6 +16,7 @@
       - nucleo_f091rc
       - stm32f072b_disco
       - stm32f3_disco
+      - stm32h573i_dk
       - nucleo_g071rb
       - nucleo_f207zg
       - nucleo_f401re