Skip to content

Commit f74f19e

Browse files
Ajay Neelinashif
authored andcommitted
tests: i2c: i2c_target_api: Add support for kv260
Add overlay for kv260_r5 board in i2c_target_api test case. For running this test, I2C0 and I2C1 are to be connected on same bus. Signed-off-by: Ajay Neeli <[email protected]>
1 parent 5296e74 commit f74f19e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2025 Advanced Micro Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* Note: To test this sample, connect SCL, SDA pins of I2C0 and I2C1 in loopback */
8+
9+
#include <zephyr/dt-bindings/i2c/i2c.h>
10+
11+
/delete-node/ &eeprom0;
12+
/delete-node/ &eeprom1;
13+
14+
&i2c0 {
15+
status = "okay";
16+
clocks = <&i2c_ref_clk>;
17+
clock-frequency = <I2C_BITRATE_FAST>;
18+
19+
eeprom0: eeprom@54 {
20+
compatible = "zephyr,i2c-target-eeprom";
21+
reg = <0x54>;
22+
size = <256>;
23+
};
24+
};
25+
26+
&i2c1 {
27+
eeprom1: eeprom@56 {
28+
compatible = "zephyr,i2c-target-eeprom";
29+
reg = <0x56>;
30+
size = <256>;
31+
};
32+
};

0 commit comments

Comments
 (0)