Skip to content

Commit c62606d

Browse files
yasin-ADIkartben
authored andcommitted
include: zephyr: dt-bindings: Add MAX32660 DMA binding
This commit adds binding file for DMA slots Signed-off-by: Yasin Ustuner <[email protected]>
1 parent de9f48e commit c62606d

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

dts/arm/adi/max32/max32660.dtsi

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <arm/armv7-m.dtsi>
88
#include <adi/max32/max32xxx.dtsi>
9+
#include <zephyr/dt-bindings/dma/max32660_dma.h>
910

1011
&clk_ipo {
1112
clock-frequency = <DT_FREQ_M(96)>;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DMA_MAX32660_DMA_H_
8+
#define ZEPHYR_INCLUDE_DT_BINDINGS_DMA_MAX32660_DMA_H_
9+
10+
#define MAX32_DMA_SLOT_MEMTOMEM 0x00U
11+
#define MAX32_DMA_SLOT_SPI0_RX 0x01U
12+
#define MAX32_DMA_SLOT_SPI1_RX 0x02U
13+
#define MAX32_DMA_SLOT_UART0_RX 0x04U
14+
#define MAX32_DMA_SLOT_UART1_RX 0x05U
15+
#define MAX32_DMA_SLOT_I2C0_RX 0x07U
16+
#define MAX32_DMA_SLOT_I2C1_RX 0x08U
17+
#define MAX32_DMA_SLOT_SPI0_TX 0x21U
18+
#define MAX32_DMA_SLOT_SPI1_TX 0x22U
19+
#define MAX32_DMA_SLOT_UART0_TX 0x24U
20+
#define MAX32_DMA_SLOT_UART1_TX 0x25U
21+
#define MAX32_DMA_SLOT_I2C0_TX 0x27U
22+
#define MAX32_DMA_SLOT_I2C1_TX 0x28U
23+
24+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DMA_MAX32660_DMA_H_ */

0 commit comments

Comments
 (0)