Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: dmaengine: Add X1830 bindings.

Add the dmaengine bindings for the X1830 Soc from Ingenic.

Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Link: https://lore.kernel.org/r/1576591140-125668-3-git-send-email-zhouyanjie@wanyeetech.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

周琰杰 (Zhou Yanjie) and committed by
Vinod Koul
b9890054 ed5a0ab4

+43 -2
+4 -2
Documentation/devicetree/bindings/dma/jz4780-dma.txt
··· 1 - * Ingenic JZ4780 DMA Controller 1 + * Ingenic XBurst DMA Controller 2 2 3 3 Required properties: 4 4 ··· 8 8 * ingenic,jz4770-dma 9 9 * ingenic,jz4780-dma 10 10 * ingenic,x1000-dma 11 + * ingenic,x1830-dma 11 12 - reg: Should contain the DMA channel registers location and length, followed 12 13 by the DMA controller registers location and length. 13 14 - interrupts: Should contain the interrupt specifier of the DMA controller. 14 - - clocks: Should contain a clock specifier for the JZ4780/X1000 PDMA clock. 15 + - clocks: Should contain a clock specifier for the JZ4780/X1000/X1830 PDMA 16 + clock. 15 17 - #dma-cells: Must be <2>. Number of integer cells in the dmas property of 16 18 DMA clients (see below). 17 19
+39
include/dt-bindings/dma/x1830-dma.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + /* 3 + * This header provides macros for X1830 DMA bindings. 4 + * 5 + * Copyright (c) 2019 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com> 6 + */ 7 + 8 + #ifndef __DT_BINDINGS_DMA_X1830_DMA_H__ 9 + #define __DT_BINDINGS_DMA_X1830_DMA_H__ 10 + 11 + /* 12 + * Request type numbers for the X1830 DMA controller (written to the DRTn 13 + * register for the channel). 14 + */ 15 + #define X1830_DMA_I2S0_TX 0x6 16 + #define X1830_DMA_I2S0_RX 0x7 17 + #define X1830_DMA_AUTO 0x8 18 + #define X1830_DMA_SADC_RX 0x9 19 + #define X1830_DMA_UART1_TX 0x12 20 + #define X1830_DMA_UART1_RX 0x13 21 + #define X1830_DMA_UART0_TX 0x14 22 + #define X1830_DMA_UART0_RX 0x15 23 + #define X1830_DMA_SSI0_TX 0x16 24 + #define X1830_DMA_SSI0_RX 0x17 25 + #define X1830_DMA_SSI1_TX 0x18 26 + #define X1830_DMA_SSI1_RX 0x19 27 + #define X1830_DMA_MSC0_TX 0x1a 28 + #define X1830_DMA_MSC0_RX 0x1b 29 + #define X1830_DMA_MSC1_TX 0x1c 30 + #define X1830_DMA_MSC1_RX 0x1d 31 + #define X1830_DMA_DMIC_RX 0x21 32 + #define X1830_DMA_SMB0_TX 0x24 33 + #define X1830_DMA_SMB0_RX 0x25 34 + #define X1830_DMA_SMB1_TX 0x26 35 + #define X1830_DMA_SMB1_RX 0x27 36 + #define X1830_DMA_DES_TX 0x2e 37 + #define X1830_DMA_DES_RX 0x2f 38 + 39 + #endif /* __DT_BINDINGS_DMA_X1830_DMA_H__ */