Skip to content

Commit

Permalink
samples: drivers: i2c: target_eeprom: add frdm_ke17z support
Browse files Browse the repository at this point in the history
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
ankeXiao committed Jul 5, 2024
1 parent 30c822e commit f27bf9d
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
16 changes: 16 additions & 0 deletions samples/drivers/i2c/target_eeprom/boards/frdm_ke17z.overlay
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 samples/drivers/i2c/target_eeprom/boards/frdm_ke17z512.overlay
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{};
13 changes: 13 additions & 0 deletions samples/drivers/i2c/target_eeprom/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,16 @@ tests:
platform_allow:
- lpcxpresso55s69/lpc55s69/cpu0
harness: TBD
sample.drivers.i2c.target.kinetis:
tags: i2c_target
filter: dt_nodelabel_enabled("target_eeprom")
platform_allow:
- frdm_ke17z
- frdm_ke17z512
harness: console
harness_config:

Check warning on line 17 in samples/drivers/i2c/target_eeprom/sample.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (None)

samples/drivers/i2c/target_eeprom/sample.yaml:17 syntax error: mapping values are not allowed here (syntax)
type: multi_line
regex:
- "i2c target sample"
- "i2c target driver registered"
- "i2c target driver unregistered"

0 comments on commit f27bf9d

Please sign in to comment.