Skip to content

Commit 13a3671

Browse files
hfakkizfabiobaltieri
authored andcommitted
tests: drivers: Enable new test for MAX32650 boards
This commit enables following tests for MAX32650EVKIT and MAX32650FTHR: - counter/counter_basic_api - dma/chan_blen_transfer - dma/loop_transfer - i2c/i2c_target_api (only for MAX32650EVKIT) - spi/spi_loopback Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com> Signed-off-by: Burak Babaoglu <burak.babaoglu@analog.com>
1 parent 02d91a6 commit 13a3671

File tree

14 files changed

+236
-0
lines changed

14 files changed

+236
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&timer0 {
8+
status = "okay";
9+
prescaler = <2>;
10+
counter {
11+
status = "okay";
12+
};
13+
};
14+
15+
&timer1 {
16+
status = "okay";
17+
prescaler = <2>;
18+
counter {
19+
status = "okay";
20+
};
21+
};
22+
23+
&timer2 {
24+
status = "okay";
25+
prescaler = <2>;
26+
counter {
27+
status = "okay";
28+
};
29+
};
30+
31+
&timer3 {
32+
status = "okay";
33+
prescaler = <2>;
34+
counter {
35+
status = "okay";
36+
};
37+
};
38+
39+
&timer4 {
40+
status = "okay";
41+
prescaler = <2>;
42+
counter {
43+
status = "okay";
44+
};
45+
};
46+
47+
&timer5 {
48+
status = "okay";
49+
prescaler = <2>;
50+
counter {
51+
status = "okay";
52+
};
53+
};
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&timer0 {
8+
status = "okay";
9+
prescaler = <2>;
10+
counter {
11+
status = "okay";
12+
};
13+
};
14+
15+
&timer1 {
16+
status = "okay";
17+
prescaler = <2>;
18+
counter {
19+
status = "okay";
20+
};
21+
};
22+
23+
&timer2 {
24+
status = "okay";
25+
prescaler = <2>;
26+
counter {
27+
status = "okay";
28+
};
29+
};
30+
31+
&timer3 {
32+
status = "okay";
33+
prescaler = <2>;
34+
counter {
35+
status = "okay";
36+
};
37+
};
38+
39+
&timer4 {
40+
status = "okay";
41+
prescaler = <2>;
42+
counter {
43+
status = "okay";
44+
};
45+
};
46+
47+
&timer5 {
48+
status = "okay";
49+
prescaler = <2>;
50+
counter {
51+
status = "okay";
52+
};
53+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2025 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_CODE_DATA_RELOCATION=y
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
tst_dma0: &dma0 { };
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2025 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_CODE_DATA_RELOCATION=y
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
tst_dma0: &dma0 { };
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
tst_dma0: &dma0 { };
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
tst_dma0: &dma0 { };
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_I2C_VIRTUAL=n
5+
CONFIG_I2C_MAX32_DMA=y
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&i2c0 {
8+
dmas = <&dma0 0 MAX32_DMA_SLOT_I2C0_TX>, <&dma0 1 MAX32_DMA_SLOT_I2C0_RX>;
9+
dma-names = "tx", "rx";
10+
11+
eeprom0: eeprom@54 {
12+
compatible = "zephyr,i2c-target-eeprom";
13+
reg = <0x54>;
14+
address-width = <16>;
15+
size = <1024>;
16+
};
17+
};
18+
19+
&i2c1 {
20+
status = "okay";
21+
pinctrl-0 = <&i2c1_scl_p2_18 &i2c1_sda_p2_17>;
22+
pinctrl-names = "default";
23+
24+
dmas = <&dma0 2 MAX32_DMA_SLOT_I2C1_TX>, <&dma0 3 MAX32_DMA_SLOT_I2C1_RX>;
25+
dma-names = "tx", "rx";
26+
27+
eeprom1: eeprom@56 {
28+
compatible = "zephyr,i2c-target-eeprom";
29+
reg = <0x56>;
30+
address-width = <16>;
31+
size = <1024>;
32+
};
33+
};

0 commit comments

Comments
 (0)