test: drivers: i2c_target_api: Add I2C target mode support for it8xxx2

Add I2C target mode support for it8xxx2 I2C driver. Verified with
i2c_target_api test on it8xxx2_evb.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
This commit is contained in:
Tim Lin 2023-06-02 11:19:08 +08:00 committed by Carles Cufí
commit cc5c141fb1
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_I2C_VIRTUAL=n

View file

@ -0,0 +1,33 @@
/*
* Copyright (c) 2023 ITE Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
&i2c4 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
pinctrl-0 = <&i2c4_clk_gpe0_default
&i2c4_data_gpe7_default>;
pinctrl-names = "default";
eeprom1: eeprom@54 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>;
size = <256>;
};
};
&i2c5 {
status = "okay";
pinctrl-0 = <&i2c5_clk_gpa4_default
&i2c5_data_gpa5_default>;
pinctrl-names = "default";
target-enable;
eeprom0: eeprom@52 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x52>;
size = <256>;
};
};