tests: drivers: enable tests eeprom and i2c for mr_canhubk3
Enable tests: tests/drivers/eeprom/api, tests/drivers/i2c/i2c_target_api. Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
This commit is contained in:
parent
3d1285bc40
commit
b77d40d1fe
4 changed files with 52 additions and 1 deletions
25
tests/drivers/eeprom/api/boards/mr_canhubk3.overlay
Normal file
25
tests/drivers/eeprom/api/boards/mr_canhubk3.overlay
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2023 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Connect I2C0 (connector P4) to the external eeprom Microchip AT24C01C-XHM */
|
||||||
|
|
||||||
|
/ {
|
||||||
|
aliases {
|
||||||
|
eeprom-0 = &eeprom0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&lpi2c0 {
|
||||||
|
status = "okay";
|
||||||
|
eeprom0: eeprom@50 {
|
||||||
|
compatible = "atmel,at24";
|
||||||
|
reg = <0x50>;
|
||||||
|
size = <128>;
|
||||||
|
pagesize = <8>;
|
||||||
|
address-width = <8>;
|
||||||
|
timeout = <5>;
|
||||||
|
};
|
||||||
|
};
|
25
tests/drivers/i2c/i2c_target_api/boards/mr_canhubk3.overlay
Normal file
25
tests/drivers/i2c/i2c_target_api/boards/mr_canhubk3.overlay
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2023 NXP
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Connect P3.2 <-> P4.3 and P3.3 <-> P4.4 */
|
||||||
|
|
||||||
|
&lpi2c0 {
|
||||||
|
status = "okay";
|
||||||
|
eeprom0: eeprom@54 {
|
||||||
|
compatible = "zephyr,i2c-target-eeprom";
|
||||||
|
reg = <0x54>;
|
||||||
|
size = <1024>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&lpi2c1 {
|
||||||
|
status = "okay";
|
||||||
|
eeprom1: eeprom@56 {
|
||||||
|
compatible = "zephyr,i2c-target-eeprom";
|
||||||
|
reg = <0x56>;
|
||||||
|
size = <1024>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -20,6 +20,7 @@ tests:
|
||||||
- nucleo_l073rz
|
- nucleo_l073rz
|
||||||
- rpi_pico
|
- rpi_pico
|
||||||
- efr32bg22_brd4184a
|
- efr32bg22_brd4184a
|
||||||
|
- mr_canhubk3
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- nucleo_f091rc
|
- nucleo_f091rc
|
||||||
extra_configs:
|
extra_configs:
|
||||||
|
|
2
west.yml
2
west.yml
|
@ -183,7 +183,7 @@ manifest:
|
||||||
groups:
|
groups:
|
||||||
- hal
|
- hal
|
||||||
- name: hal_nxp
|
- name: hal_nxp
|
||||||
revision: 9fb917ffde77b6ad7e9bfac35b0cb4012709e68c
|
revision: 3aed18634b19102cc0f9e56fcff88bd04edba6ec
|
||||||
path: modules/hal/nxp
|
path: modules/hal/nxp
|
||||||
groups:
|
groups:
|
||||||
- hal
|
- hal
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue