[1/2] dt-bindings: soc: sprd: Add Spreadtrum MCDT documentation
diff mbox series

Message ID f7edc4078b2d6f44ed5ad47c14dd58da5cc50f21.1555670768.git.baolin.wang@linaro.org
State Changes Requested
Headers show
Series
  • [1/2] dt-bindings: soc: sprd: Add Spreadtrum MCDT documentation
Related show

Checks

Context Check Description
robh/checkpatch success

Commit Message

Baolin Wang April 19, 2019, 10:54 a.m. UTC
Add documentation for Spreadtrum multi-channel data transfer controller,
which is used for sound stream transmission between audio subsystem and
other AP/CP subsystems.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
---
 .../devicetree/bindings/soc/sprd/sprd-mcdt.txt     |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/sprd/sprd-mcdt.txt

Comments

Baolin Wang April 22, 2019, 2:30 a.m. UTC | #1
Hi Mark,

On Fri, 19 Apr 2019 at 22:50, Mark Brown <broonie@kernel.org> wrote:
>
> On Fri, Apr 19, 2019 at 06:54:32PM +0800, Baolin Wang wrote:
> > On Spreadtrum platform, the audio subsystem will use the multi-channel
> > data transfer controller to transfer sound stream between audio subsystem
> > and other AP/CP subsystem.
> >
> > It can support 10 DAC channel and 10 ADC channel, and each channel has
> > 512 bytes depth data fifo. Moreover each channel can be used DMA mode
> > or interrupt mode to transfer data.
>
> Acked-by: Mark Brown <broonie@kernel.org>

Thanks for your reviewing.

>
> However if there's no non-audio users of this DSP then it's probably
> better to just move the driver into sound/soc.

Yes, only audio will use this driver. OK, I will move it into
sound/soc if no other objections. Thanks.

Patch
diff mbox series

diff --git a/Documentation/devicetree/bindings/soc/sprd/sprd-mcdt.txt b/Documentation/devicetree/bindings/soc/sprd/sprd-mcdt.txt
new file mode 100644
index 0000000..274ba0a
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/sprd/sprd-mcdt.txt
@@ -0,0 +1,19 @@ 
+Spreadtrum Multi-Channel Data Transfer Binding
+
+The Multi-channel data transfer controller is used for sound stream
+transmission between audio subsystem and other AP/CP subsystem. It
+supports 10 DAC channel and 10 ADC channel, and each channel can be
+configured with DMA mode or interrupt mode.
+
+Required properties:
+- compatible: Should be "sprd,sc9860-mcdt".
+- reg: Should contain registers address and length.
+- interrupts: Should contain one interrupt shared by all channel.
+
+Example:
+
+mcdt@41490000 {
+	compatible = "sprd,sc9860-mcdt";
+	reg = <0 0x41490000 0 0x170>;
+	interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
+};