[alsa-devel] [PATCH 2/4] dt: sound: jz4740: Add binding documentation for jz4740-i2s
Arnd Bergmann
arnd at arndb.de
Mon Jan 26 12:56:23 CET 2015
On Monday 26 January 2015 10:18:29 Zubair Lutfullah Kakakhel wrote:
> index 0000000..0e40517
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/ingenic,jz4740-i2s.txt
> @@ -0,0 +1,18 @@
> +Ingenic JZ4740 I2S controller
> +
> +Required properties:
> +- compatible : "ingenic,jz4740-i2s"
> +- reg : I2S registers location and length
> +- clocks : AIC and I2S PLL clock specifiers.
> +- clock-names: "aic" and "i2s"
> +
> +Example:
> +
> +i2s: i2s at 10020000 {
> + compatible = "ingenic,jz4740-i2s";
> + reg = <0x10020000 0x94>;
> +
> + clocks = <&cgu JZ4740_CLK_AIC>, <&cgu JZ4740_CLK_I2SPLL>;
> + clock-names = "aic", "i2s";
> +
> +};
>
I would argue that the binding should mandate "dmas" property already.
The code currently does not use it, but it will need to get changed
in order to allow the dmaengine driver for this platform to be
converted. You should require only one argument for the channel ID,
so something like
dmas = <&dma 24>, <&dma 25>;
dma-names = "tx", "rx";
would be enough for the binding. Unfortunately that also requires
having a device node for the dma engine, but you can cheat there
and not call of_dma_controller_register() in the first step.
Arnd
More information about the Alsa-devel
mailing list