From: Dang Huynh <dang.hu...@mainlining.org> The Intelligent Flow Controller (IFC) is a scatter/gather DMA controller.
Signed-off-by: Dang Huynh <dang.hu...@mainlining.org> --- Documentation/devicetree/bindings/dma/rda,ifc.yaml | 42 ++++++++++++++++++++++ include/dt-bindings/dma/rda-ifc.h | 28 +++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/rda,ifc.yaml b/Documentation/devicetree/bindings/dma/rda,ifc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3bb5932e8ff9404e3980eaef607efceb6d883bda --- /dev/null +++ b/Documentation/devicetree/bindings/dma/rda,ifc.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/rda,ifc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RDA Intelligent Flow Controller (IFC) + +maintainers: + - Dang Huynh <dang.hu...@mainlining.org> + +description: | + RDA IFC is a DMA controller, it only supports scatter/gather lists. + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + const: rda,8810pl-ifc + + reg: + maxItems: 1 + + "#dma-cells": + const: 1 + description: + The cell corresponding to DMA request ID + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + ifc: dma-controller@f0000 { + compatible = "rda,8810pl-ifc"; + reg = <0xf0000 0x1000>; + #dma-cells = <1>; + }; diff --git a/include/dt-bindings/dma/rda-ifc.h b/include/dt-bindings/dma/rda-ifc.h new file mode 100644 index 0000000000000000000000000000000000000000..e075fe26158e834d1ae87b6dce61e41fb931add3 --- /dev/null +++ b/include/dt-bindings/dma/rda-ifc.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ + +#ifndef __DT_BINDINGS_DMA_RDA_IFC_H__ +#define __DT_BINDINGS_DMA_RDA_IFC_H__ + +#define IFC_UART1_TX 0 +#define IFC_UART1_RX 1 +#define IFC_UART2_TX 2 +#define IFC_UART2_RX 3 +#define IFC_SPI1_TX 4 +#define IFC_SPI1_RX 5 +#define IFC_SPI2_TX 6 +#define IFC_SPI2_RX 7 +#define IFC_SPI3_TX 8 +#define IFC_SPI3_RX 9 +#define IFC_SDMMC1_TX 10 +#define IFC_SDMMC1_RX 11 +#define IFC_SDMMC2_TX 12 +#define IFC_SDMMC2_RX 13 +#define IFC_SDMMC3_TX 14 +#define IFC_SDMMC3_RX 15 +#define IFC_NFSC_TX 16 +#define IFC_NFSC_RX 17 +#define IFC_UART3_TX 18 +#define IFC_UART3_RX 19 +#define IFC_NO_REQUEST 20 + +#endif /* __DT_BINDINGS_DMA_RDA_IFC_H__ */ -- 2.51.0