tests: drivers: i2c: i2c_target_api: update i2c_target_api

- add overlays and kconfigs files for nucleo_u083rc and
stm32u083c_dk boards.
- update testcase.yaml for CI

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
This commit is contained in:
Fabrice DJIATSA 2024-09-10 15:24:23 +02:00 committed by Anas Nashif
parent 688c9d3101
commit 456992ba9a
5 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,2 @@
CONFIG_I2C_STM32_INTERRUPT=y
CONFIG_I2C_VIRTUAL=n

View File

@ -0,0 +1,30 @@
/*
* Copyright (c) 2024 STMicroelectronics
* SPDX-License-Identifier: Apache-2.0
*/
/* I2C bus pins are exposed on the ST morpho header.
*
* Bus SDA SCL
* Pin Hdr Pin Hdr
* i2c1 PB9 CN5:9 PB8 CN5:10
* i2c2 PA6 CN5:5 PA7 CN5:4
*
* Short Pin PB9 to PA6, and PB8 to PA7, for the test to pass.
*/
&i2c1 {
eeprom0: eeprom@54 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>;
size = <256>;
};
};
&i2c2 {
eeprom1: eeprom@56 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x56>;
size = <256>;
};
};

View File

@ -0,0 +1,2 @@
CONFIG_I2C_STM32_INTERRUPT=y
CONFIG_I2C_VIRTUAL=n

View File

@ -0,0 +1,31 @@
/*
* Copyright (c) 2024 STMicroelectronics
* SPDX-License-Identifier: Apache-2.0
*/
/* I2C bus pins are exposed on the ST morpho header.
*
* Bus SDA SCL
* Pin Hdr Pin Hdr
* i2c1 PA10 CN10:2 PA9 CN7:23
* i2c2 PA6 CN10:15 PA7 CN10:17
*
* Short Pin PA10 to PA6, and PA9 to PA7, for the test to pass.
*/
&i2c1 {
eeprom0: eeprom@54 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>;
size = <256>;
};
};
&i2c2 {
eeprom1: eeprom@56 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x56>;
size = <256>;
};
};

View File

@ -17,6 +17,7 @@ tests:
- stm32f072b_disco
- stm32f3_disco
- stm32h573i_dk
- stm32u083c_dk
- nucleo_g071rb
- nucleo_f207zg
- nucleo_f401re
@ -24,6 +25,7 @@ tests:
- nucleo_wl55jc
- nucleo_l073rz
- nucleo_l152re
- nucleo_u083rc
- nucleo_wb55rg
- rpi_pico
- sltb010a@0