Skip to content

Commit

Permalink
tests: drivers: enable tests eeprom and i2c for mr_canhubk3
Browse files Browse the repository at this point in the history
Enable tests: tests/drivers/eeprom/api,
tests/drivers/i2c/i2c_target_api.

Signed-off-by: Cong Nguyen Huu <[email protected]>
  • Loading branch information
congnguyenhuu authored and mmahadevan108 committed Jul 27, 2023
1 parent 3d1285b commit b77d40d
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
25 changes: 25 additions & 0 deletions tests/drivers/eeprom/api/boards/mr_canhubk3.overlay
Original file line number Diff line number Diff line change
@@ -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 changes: 25 additions & 0 deletions tests/drivers/i2c/i2c_target_api/boards/mr_canhubk3.overlay
Original file line number Diff line number Diff line change
@@ -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>;
};
};
1 change: 1 addition & 0 deletions tests/drivers/i2c/i2c_target_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ tests:
- nucleo_l073rz
- rpi_pico
- efr32bg22_brd4184a
- mr_canhubk3
integration_platforms:
- nucleo_f091rc
extra_configs:
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ manifest:
groups:
- hal
- name: hal_nxp
revision: 9fb917ffde77b6ad7e9bfac35b0cb4012709e68c
revision: 3aed18634b19102cc0f9e56fcff88bd04edba6ec
path: modules/hal/nxp
groups:
- hal
Expand Down

0 comments on commit b77d40d

Please sign in to comment.