tests: drivers: i2c: slave: added Raspberry Pi Pico board

added Raspberry Pi Pico for testing it as I2C slave

Signed-off-by: Andrei-Edward Popa <andrei_edward.popa@upb.ro>
This commit is contained in:
Andrei-Edward Popa 2022-02-06 23:38:00 +02:00 committed by Anas Nashif
commit 34d921b00b
3 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1,2 @@
CONFIG_I2C=y
CONFIG_I2C_SLAVE=y

View file

@ -0,0 +1,29 @@
/*
* Copyright (c) 2022 Andrei-Edward Popa
*
* SPDX-License-Identifier: Apache-2.0
*/
&i2c0 {
eeprom0: eeprom@54 {
compatible = "atmel,at24";
reg = <0x54>;
label = "EEPROM_0";
size = <1024>;
pagesize = <16>;
address-width = <8>;
timeout = <5>;
};
};
&i2c1 {
eeprom1: eeprom@56 {
compatible = "atmel,at24";
reg = <0x56>;
label = "EEPROM_1";
size = <1024>;
pagesize = <16>;
address-width = <8>;
timeout = <5>;
};
};

View file

@ -7,6 +7,6 @@ common:
tests:
drivers.i2c_slave.dual_role:
platform_allow: nucleo_f091rc stm32f072b_disco nucleo_g071rb
platform_allow: nucleo_f091rc stm32f072b_disco nucleo_g071rb rpi_pico
extra_configs:
- CONFIG_APP_DUAL_ROLE_I2C=y