Skip to content

Commit 683d597

Browse files
djiatsaf-stjhedberg
authored andcommitted
tests: drivers: i2c_target_api: boards: add support for nucleo_h753zi
- enable i2c2 node in dts - add .conf and .overlay with appropriate configurations for nucleo_h753zi. - update testcase.yaml file for CI testing Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent 17558ee commit 683d597

File tree

4 files changed

+43
-1
lines changed

4 files changed

+43
-1
lines changed

boards/st/nucleo_h753zi/nucleo_h753zi.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ zephyr_udc0: &usbotg_fs {
144144
clock-frequency = <I2C_BITRATE_FAST>;
145145
};
146146

147+
&i2c2 {
148+
pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb11>;
149+
pinctrl-names = "default";
150+
status = "okay";
151+
clock-frequency = <I2C_BITRATE_FAST>;
152+
};
153+
147154
&timers12 {
148155
st,prescaler = <10000>;
149156
status = "okay";
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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright (c) 2025 STMicroelectronics
5+
*
6+
*/
7+
8+
/* I2C bus pins are exposed on the ST morpho header.
9+
*
10+
* Bus SDA SCL
11+
* Pin Hdr Pin Hdr
12+
* i2c1 PB9 CN7:4 PB8 CN7:2
13+
* i2c2 PB11 CN10:34 PB10 CN10:32
14+
*
15+
* Short Pin PB9 to PB11, and PB8 to PB10, for the test to pass.
16+
*/
17+
18+
&i2c1 {
19+
eeprom0: eeprom@54 {
20+
compatible = "zephyr,i2c-target-eeprom";
21+
reg = <0x54>;
22+
size = <256>;
23+
};
24+
};
25+
26+
&i2c2 {
27+
eeprom1: eeprom@56 {
28+
compatible = "zephyr,i2c-target-eeprom";
29+
reg = <0x56>;
30+
size = <256>;
31+
};
32+
};

tests/drivers/i2c/i2c_target_api/testcase.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ tests:
2525
- nucleo_f401re
2626
- nucleo_f429zi
2727
- nucleo_h503rb
28-
- nucleo_wl55jc
28+
- nucleo_h753zi
2929
- nucleo_l073rz
3030
- nucleo_l152re
3131
- nucleo_u083rc
3232
- nucleo_u385rg_q
3333
- nucleo_wba55cg
3434
- nucleo_wb55rg
35+
- nucleo_wl55jc
3536
- rpi_pico
3637
- sltb010a@0
3738
- mr_canhubk3

0 commit comments

Comments
 (0)