Skip to content

Commit b737861

Browse files
khaicaorvcduynguyenxa
authored andcommitted
tests: i2c: add support for i2c sci on Renesas RA boards
Add board support for EK_RA6M5, EK_RA6M4 i2c test use sci_i2c: - tests/drivers/i2c/i2c_api Example for i2c use sci_i2c: west build -b ek_ra6m5 tests/drivers/i2c/i2c_api/ -p always \ -DDTC_OVERLAY_FILE=boards/ek_ra6m5_sci_i2c.overlay \ -DCONF_FILE="boards/ek_ra6m5_sci_i2c.conf" Signed-off-by: Khai Cao <[email protected]>
1 parent f2dc114 commit b737861

File tree

5 files changed

+56
-0
lines changed

5 files changed

+56
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_I2C=y
2+
CONFIG_ZTEST=y
3+
CONFIG_SENSOR_GY271_QMC=y
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
i2c-0 = &i2c2;
9+
gy271 = &i2c2;
10+
};
11+
};
12+
13+
&sci2 {
14+
status = "okay";
15+
16+
i2c2: i2c {
17+
status = "okay";
18+
};
19+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_I2C=y
2+
CONFIG_ZTEST=y
3+
CONFIG_SENSOR_GY271_QMC=y
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
i2c-0 = &i2c2;
9+
gy271 = &i2c2;
10+
};
11+
};
12+
13+
&sci2 {
14+
status = "okay";
15+
16+
i2c2: i2c {
17+
status = "okay";
18+
};
19+
};

tests/drivers/i2c/i2c_api/testcase.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ tests:
3131
extra_args:
3232
- DTC_OVERLAY_FILE="./boards/${BOARD}${NORMALIZED_BOARD_QUALIFIERS}_sci_b_i2c.overlay"
3333
- CONF_FILE="./prj.conf ./boards/${BOARD}${NORMALIZED_BOARD_QUALIFIERS}_sci_b_i2c.conf"
34+
drivers.i2c.renesas_sci_i2c.api:
35+
depends_on: i2c
36+
tags:
37+
- drivers
38+
- i2c
39+
filter: dt_alias_exists("gy271") and CONFIG_I2C_RENESAS_RA_SCI
40+
platform_allow:
41+
- ek_ra6m5
42+
- ek_ra6m4
43+
extra_args:
44+
- DTC_OVERLAY_FILE="./boards/${BOARD}${NORMALIZED_BOARD_QUALIFIERS}_sci_i2c.overlay"
45+
- CONF_FILE="./prj.conf ./boards/${BOARD}${NORMALIZED_BOARD_QUALIFIERS}_sci_i2c.conf"
3446
drivers.i2c.stm32.interrupt_disabled:
3547
depends_on:
3648
- i2c

0 commit comments

Comments
 (0)