From 494d85f3a23d7cf654e522f14472385ade258c9e Mon Sep 17 00:00:00 2001 From: Neil Chen Date: Wed, 4 Dec 2024 16:39:39 +0800 Subject: [PATCH] tests: drivers: i2c: add i2c test support for frdm_mcxa156 board add i2c test support for frdm_mcxa156 board Signed-off-by: Neil Chen --- .../boards/frdm_mcxa156.overlay | 26 +++++++++++++++++++ .../drivers/i2c/i2c_target_api/testcase.yaml | 1 + 2 files changed, 27 insertions(+) create mode 100644 tests/drivers/i2c/i2c_target_api/boards/frdm_mcxa156.overlay diff --git a/tests/drivers/i2c/i2c_target_api/boards/frdm_mcxa156.overlay b/tests/drivers/i2c/i2c_target_api/boards/frdm_mcxa156.overlay new file mode 100644 index 000000000000..d82f84ab3de3 --- /dev/null +++ b/tests/drivers/i2c/i2c_target_api/boards/frdm_mcxa156.overlay @@ -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>; + }; +}; diff --git a/tests/drivers/i2c/i2c_target_api/testcase.yaml b/tests/drivers/i2c/i2c_target_api/testcase.yaml index bf931f8a08d1..d57b121582ac 100644 --- a/tests/drivers/i2c/i2c_target_api/testcase.yaml +++ b/tests/drivers/i2c/i2c_target_api/testcase.yaml @@ -45,6 +45,7 @@ tests: - mimxrt1060_evk - frdm_ke17z512 - frdm_mcxn236 + - frdm_mcxa156 - max32655evkit/max32655/m4 - max32662evkit - max32666evkit/max32666/cpu0