Skip to content

Commit 3c63f17

Browse files
khoa-nguyen-18kartben
authored andcommitted
tests: drivers: i2c: Add support i2c_api for ek_ra8p1 cm33
Add support test app ``i2c_api`` for Renesas ek_ra8p1 cm33 Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 3a6f867 commit 3c63f17

File tree

5 files changed

+46
-0
lines changed

5 files changed

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

tests/drivers/i2c/i2c_api/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ tests:
2626
filter: dt_alias_exists("gy271") and CONFIG_I2C_RENESAS_RA_SCI_B
2727
platform_allow:
2828
- ek_ra8p1/r7ka8p1kflcac/cm85
29+
- ek_ra8p1/r7ka8p1kflcac/cm33
2930
extra_args:
3031
- DTC_OVERLAY_FILE="./boards/${BOARD}${NORMALIZED_BOARD_QUALIFIERS}_sci_b_i2c.overlay"
3132
- CONF_FILE="./prj.conf ./boards/${BOARD}${NORMALIZED_BOARD_QUALIFIERS}_sci_b_i2c.conf"

0 commit comments

Comments
 (0)