-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
3d1285b
commit b77d40d
Showing
4 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
25
tests/drivers/i2c/i2c_target_api/boards/mr_canhubk3.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters