-
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.
samples: drivers: i2c: target_eeprom: add frdm_ke17z support
Added i2c configuration to test target_eeprom case for frdm_ke17z Added `sample.drivers.i2c.target.kinetis` in sample.yaml for frdm_ke17z and frdm_ke17z512 automatically run the tests Signed-off-by: Anke Xiao <[email protected]>
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
samples/drivers/i2c/target_eeprom/boards/frdm_ke17z.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,16 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&lpi2c0 { | ||
eeprom0: eeprom@54 { | ||
reg = <0x54>; | ||
size = <256>; | ||
compatible = "zephyr,i2c-target-eeprom"; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
target_eeprom: &eeprom0{}; |
16 changes: 16 additions & 0 deletions
16
samples/drivers/i2c/target_eeprom/boards/frdm_ke17z512.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,16 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&lpi2c0 { | ||
eeprom0: eeprom@54 { | ||
reg = <0x54>; | ||
size = <256>; | ||
compatible = "zephyr,i2c-target-eeprom"; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
target_eeprom: &eeprom0{}; |
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