Skip to content

Commit

Permalink
tests: drivers: i2c: add i2c test support for frdm_mcxa156 board
Browse files Browse the repository at this point in the history
add i2c test support for frdm_mcxa156 board

Signed-off-by: Neil Chen <[email protected]>
  • Loading branch information
NeilChen93 committed Dec 10, 2024
1 parent 2bdeb22 commit 2de30fe
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/drivers/i2c/i2c_target_api/boards/frdm_mcxa156.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/* To test this sample, connect
* LPI2C0 SCL(J2-20) --> LPI2C3 SCL(J5-5)
* LPI2C0 SDA(J2-18) --> LPI2C3 SDA(J5-6)
*/

&lpi2c0 {
eeprom0: eeprom@54 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>;
size = <256>;
};
};

&lpi2c3 {
eeprom1: eeprom@56 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x56>;
size = <256>;
};
};
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 @@ -45,6 +45,7 @@ tests:
- mimxrt1060_evk
- frdm_ke17z512
- frdm_mcxn236
- frdm_mcxa156
- max32655evkit/max32655/m4
- max32662evkit
- max32666evkit/max32666/cpu0
Expand Down

0 comments on commit 2de30fe

Please sign in to comment.