Skip to content

Commit 8ebd12a

Browse files
djiatsaf-stkartben
authored andcommitted
tests: drivers: i2c: i2c_target_api: update i2c_target_api test
- add overlays and kconfig files for nucleo_c071rb board. - update testcase.yaml for CI integration. Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
1 parent e9939aa commit 8ebd12a

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_I2C_STM32_INTERRUPT=y
2+
CONFIG_I2C_VIRTUAL=n
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/* I2C bus pins are exposed on the ST morpho header.
7+
*
8+
* Bus SDA SCL
9+
* Pin Hdr Pin Hdr
10+
* i2c1 PB9 CN5:9 PB8 CN5:10
11+
* i2c2 PA6 CN5:5 PA7 CN5:4
12+
*
13+
* Short Pin PB9 to PA6, and PB8 to PA7, for the test to pass.
14+
*/
15+
16+
&i2c1 {
17+
eeprom0: eeprom@54 {
18+
compatible = "zephyr,i2c-target-eeprom";
19+
reg = <0x54>;
20+
size = <256>;
21+
};
22+
};
23+
24+
&i2c2 {
25+
eeprom1: eeprom@56 {
26+
compatible = "zephyr,i2c-target-eeprom";
27+
reg = <0x56>;
28+
size = <256>;
29+
};
30+
};

tests/drivers/i2c/i2c_target_api/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ tests:
1818
- stm32f3_disco
1919
- stm32h573i_dk
2020
- stm32u083c_dk
21+
- nucleo_c071rb
2122
- nucleo_g071rb
2223
- nucleo_f207zg
2324
- nucleo_f401re

0 commit comments

Comments
 (0)