tests: i2c: i2c_target_api: added single mode testcase

Some drivers do not support dual mode testcase. It would be great to test
both signle and dual mode, even when the drivers do support this feature.

Signed-off-by: Krystof Sadlik <krystof.sadlik@nxp.com>
This commit is contained in:
Krystof Sadlik 2024-05-29 16:14:14 +02:00 committed by Henrik Brix Andersen
commit d05cad1784
8 changed files with 12 additions and 8 deletions

View file

@ -15,23 +15,17 @@
&lpi2c1 { &lpi2c1 {
status = "okay"; status = "okay";
eeprom0: eeprom@54 { eeprom0: eeprom@54 {
compatible = "atmel,at24"; compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>; reg = <0x54>;
size = <1024>; size = <1024>;
pagesize = <16>;
address-width = <8>;
timeout = <5>;
}; };
}; };
&lpi2c3 { &lpi2c3 {
status = "okay"; status = "okay";
eeprom1: eeprom@56 { eeprom1: eeprom@56 {
compatible = "atmel,at24"; compatible = "zephyr,i2c-target-eeprom";
reg = <0x56>; reg = <0x56>;
size = <1024>; size = <1024>;
pagesize = <16>;
address-width = <8>;
timeout = <5>;
}; };
}; };

View file

@ -0,0 +1 @@
CONFIG_I2C_VIRTUAL=n

View file

@ -0,0 +1 @@
CONFIG_I2C_VIRTUAL=n

View file

@ -0,0 +1 @@
CONFIG_I2C_VIRTUAL=n

View file

@ -32,3 +32,10 @@ tests:
- nucleo_f091rc - nucleo_f091rc
extra_configs: extra_configs:
- CONFIG_APP_DUAL_ROLE_I2C=y - CONFIG_APP_DUAL_ROLE_I2C=y
drivers.i2c.target_api.single_role:
platform_allow:
- frdm_mcxn947/mcxn947/cpu0
- mimxrt1170_evk@B/mimxrt1176/cm7
- mimxrt1170_evk/mimxrt1176/cm7
- mimxrt1040_evk
- mimxrt1060_evk