Skip to content

Commit 7237deb

Browse files
ttmutnashif
authored andcommitted
tests: i2c: i2c_target_api: Add configuration for MAX32666EVKIT
Enable I2C target API tests for MAX32666EVKIT. Signed-off-by: Tahsin Mutlugun <[email protected]>
1 parent 01f9b9f commit 7237deb

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

boards/adi/max32666evkit/max32666evkit_max32666_cpu0.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,18 @@
8686
status = "okay";
8787
};
8888

89+
&i2c1 {
90+
status = "okay";
91+
pinctrl-0 = <&i2c1_scl_p0_14 &i2c1_sda_p0_15>;
92+
pinctrl-names = "default";
93+
};
94+
95+
&i2c2 {
96+
status = "okay";
97+
pinctrl-0 = <&i2c2_scl_p1_14 &i2c2_sda_p1_15>;
98+
pinctrl-names = "default";
99+
};
100+
89101
&trng {
90102
status = "okay";
91103
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2024 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_I2C_VIRTUAL=n
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&i2c1 {
8+
eeprom0: eeprom@54 {
9+
compatible = "zephyr,i2c-target-eeprom";
10+
reg = <0x54>;
11+
address-width = <16>;
12+
size = <1024>;
13+
};
14+
};
15+
16+
&i2c2 {
17+
dmas = <&dma0 1 MAX32_DMA_SLOT_I2C2_TX>, <&dma0 2 MAX32_DMA_SLOT_I2C2_RX>;
18+
dma-names = "tx", "rx";
19+
20+
eeprom1: eeprom@56 {
21+
compatible = "zephyr,i2c-target-eeprom";
22+
reg = <0x56>;
23+
address-width = <16>;
24+
size = <1024>;
25+
};
26+
};

0 commit comments

Comments
 (0)