Skip to content

Commit c33f993

Browse files
hfakkiznashif
authored andcommitted
tests: drivers: i2c: Enable i2c driver tests for max32662evkit board
Enable I2C test for MAX32662EVKIT. Signed-off-by: Furkan Akkiz <[email protected]>
1 parent aa394e0 commit c33f993

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

boards/adi/max32662evkit/max32662evkit.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@
7070
status = "okay";
7171
};
7272

73+
&i2c1 {
74+
status = "okay";
75+
pinctrl-0 = <&i2c1a_scl_p0_6 &i2c1a_sda_p0_9>;
76+
pinctrl-names = "default";
77+
};
78+
7379
&trng {
7480
status = "okay";
7581
};
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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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_12 &i2c0a_sda_p0_13>;
10+
pinctrl-names = "default";
11+
12+
eeprom0: eeprom@54 {
13+
compatible = "zephyr,i2c-target-eeprom";
14+
reg = <0x54>;
15+
size = <256>;
16+
};
17+
};
18+
19+
&i2c1 {
20+
dmas = <&dma0 1 MAX32_DMA_SLOT_I2C1_TX>, <&dma0 2 MAX32_DMA_SLOT_I2C1_RX>;
21+
dma-names = "tx", "rx";
22+
23+
eeprom1: eeprom@56 {
24+
compatible = "zephyr,i2c-target-eeprom";
25+
reg = <0x56>;
26+
size = <256>;
27+
};
28+
};

0 commit comments

Comments
 (0)