On Sun, Jun 22, 2014 at 12:36 PM, Chen-Yu Tsai <[email protected]> wrote:
> On Sun, Jun 22, 2014 at 11:48 PM, [email protected] <[email protected]> 
> wrote:
>> Why is the channel for TX one less than RX? In the manual both of the
>> DRQs are 27.
>
> If you looked at the bindings in the patch, you would see that
>
>     <&dma 1 xx>
>
> specifies dedicated DMA, which indeed has separate channels for TX and RX.
>

I think I see my mistake. I am trying to put in NDMA numbers when it
wants DDMA ones. When the first field is 1, it is dedicated DDMA.

So for my audio codec I want this? When the first field is zero, then
second field is NDMA?

codec: codec@1c22c00 {
#sound-dai-cells = <0>;
compatible = "allwinner,sun7i-a20-codec";
reg = <0x01C22c00 0x40>;
interrupts = <0 30 4>;
clocks = <&pll2>, <&apb0_gates 0>, <&codec_clk>;
clock-names = "pll2", "apb", "codec";
dmas = <&dma 0 19>, <&dma 0 19>;
dma-names = "rx", "tx";
};


>> spi0: spi@01c05000 {
>> compatible = "allwinner,sun4i-a10-spi";
>> reg = <0x01c05000 0x1000>;
>> interrupts = <0 10 4>;
>> clocks = <&ahb_gates 20>, <&spi0_clk>;
>> clock-names = "ahb", "mod";
>> dmas = <&dma 1 27>, <&dma 1 26>;
>> dma-names = "rx", "tx";
>> status = "disabled";
>> #address-cells = <1>;
>> #size-cells = <0>;
>> };



-- 
Jon Smirl
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to