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:
parent
0960bb3066
commit
cc5c141fb1
2 changed files with 34 additions and 0 deletions
1
tests/drivers/i2c/i2c_target_api/boards/it8xxx2_evb.conf
Normal file
1
tests/drivers/i2c/i2c_target_api/boards/it8xxx2_evb.conf
Normal file
|
@ -0,0 +1 @@
|
|||
CONFIG_I2C_VIRTUAL=n
|
33
tests/drivers/i2c/i2c_target_api/boards/it8xxx2_evb.overlay
Normal file
33
tests/drivers/i2c/i2c_target_api/boards/it8xxx2_evb.overlay
Normal 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>;
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue