File tree 2 files changed +45
-0
lines changed
tests/drivers/i2c/i2c_target_api/boards
2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ CONFIG_I2C_VIRTUAL=n
Original file line number Diff line number Diff line change
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
+ };
You can’t perform that action at this time.
0 commit comments