Skip to content

Commit 01f9b9f

Browse files
mertekrennashif
authored andcommitted
tests: drivers: i2c: Add MAX32675EVKIT overlay file
Enable I2C test for MAX32675EVKIT. Signed-off-by: Mert Ekren <[email protected]>
1 parent c33f993 commit 01f9b9f

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

boards/adi/max32675evkit/max32675evkit.dts

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

88+
&i2c2 {
89+
status = "okay";
90+
pinctrl-0 = <&i2c2a_scl_p0_18 &i2c2a_sda_p0_19>;
91+
pinctrl-names = "default";
92+
};
93+
8894
&trng {
8995
status = "okay";
9096
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Copyright (c) 2024 Analog Devices, Inc.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
CONFIG_I2C_VIRTUAL=n
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&i2c0 {
8+
status = "okay";
9+
pinctrl-0 = <&i2c0a_scl_p0_6 &i2c0a_sda_p0_7>;
10+
pinctrl-names = "default";
11+
12+
eeprom0: eeprom@54 {
13+
compatible = "zephyr,i2c-target-eeprom";
14+
reg = <0x54>;
15+
address-width = <16>;
16+
size = <1024>;
17+
};
18+
};
19+
20+
&i2c2 {
21+
dmas = <&dma0 1 MAX32_DMA_SLOT_I2C2_TX>, <&dma0 2 MAX32_DMA_SLOT_I2C2_RX>;
22+
dma-names = "tx", "rx";
23+
24+
eeprom1: eeprom@56 {
25+
compatible = "zephyr,i2c-target-eeprom";
26+
reg = <0x56>;
27+
address-width = <16>;
28+
size = <1024>;
29+
};
30+
};

0 commit comments

Comments
 (0)