Skip to content

Commit ad100bc

Browse files
committed
test: drivers/i2c: ite: it515xx_evb: Add I2C target test
Add I2C target node for it515xx_evb test. Signed-off-by: Tim Lin <[email protected]>
1 parent bd8880c commit ad100bc

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_I2C_VIRTUAL=n
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) 2025 ITE Corporation. All Rights Reserved.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* Target */
8+
&i2c0 {
9+
status = "okay";
10+
clock-frequency = <I2C_BITRATE_FAST>;
11+
pinctrl-0 = <&i2c0_clk_gpf2_default
12+
&i2c0_data_gpf3_default>;
13+
pinctrl-names = "default";
14+
15+
target-enable;
16+
target-shared-fifo-mode;
17+
18+
eeprom0: eeprom@52 {
19+
compatible = "zephyr,i2c-target-eeprom";
20+
reg = <0x52>;
21+
size = <256>;
22+
};
23+
};
24+
25+
&i2c1 {
26+
/delete-property/ fifo-enable; /* FIFO2 */
27+
};
28+
29+
/* HOST */
30+
&i2c4 {
31+
status = "okay";
32+
clock-frequency = <I2C_BITRATE_FAST>;
33+
pinctrl-0 = <&i2c4_clk_gpe0_default
34+
&i2c4_data_gpe7_default>;
35+
pinctrl-names = "default";
36+
37+
fifo-enable; /* FIFO2 */
38+
39+
eeprom1: eeprom@54 {
40+
compatible = "zephyr,i2c-target-eeprom";
41+
reg = <0x54>;
42+
size = <256>;
43+
};
44+
};

0 commit comments

Comments
 (0)