Skip to content

Commit 26a9294

Browse files
Khoa Tranthaoluonguw
Khoa Tran
authored andcommitted
tests: i2c: add support for i2c sci-b on Renesas RA boards
Add Renesas RA board support for i2c test use sci_b_i2c: - tests/drivers/i2c/i2c_api Example for i2c use sci_b_i2c: west build -b ek_ra8m1 tests/drivers/i2c/i2c_api/ -p always \ -DDTC_OVERLAY_FILE=boards/ek_ra8m1_sci_b_i2c.overlay \ -DCONF_FILE="boards/ek_ra8m1_sci_b_i2c.conf" Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
1 parent 9e2078e commit 26a9294

7 files changed

+81
-0
lines changed
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
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 = &i2c4;
9+
gy271 = &i2c4;
10+
};
11+
};
12+
13+
&sci4 {
14+
status = "okay";
15+
16+
i2c4: i2c {
17+
status = "okay";
18+
};
19+
};
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
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 = &i2c1;
9+
gy271 = &i2c1;
10+
};
11+
};
12+
13+
&sci1 {
14+
status = "okay";
15+
16+
i2c1: i2c {
17+
status = "okay";
18+
};
19+
};
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
i2c-0 = &i2c9;
9+
gy271 = &i2c9;
10+
11+
};
12+
};
13+
14+
&sci9 {
15+
status = "okay";
16+
17+
i2c9: i2c {
18+
status = "okay";
19+
sda-output-delay = <250>;
20+
};
21+
};

tests/drivers/i2c/i2c_api/testcase.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,16 @@ tests:
55
- drivers
66
- i2c
77
filter: dt_alias_exists("gy271")
8+
drivers.i2c.renesas_sci_b_i2c.api:
9+
depends_on: i2c
10+
tags:
11+
- drivers
12+
- i2c
13+
filter: dt_alias_exists("gy271") and CONFIG_I2C_RENESAS_RA_SCI_B
14+
platform_allow:
15+
- ek_ra8m1
16+
- ek_ra8d1
17+
- mck_ra8t1
18+
extra_args:
19+
- DTC_OVERLAY_FILE="./boards/${BOARD}_sci_b_i2c.overlay"
20+
- CONF_FILE="./prj.conf ./boards/${BOARD}_sci_b_i2c.conf"

0 commit comments

Comments
 (0)