El 13/06/14 13:22, jonsm...@gmail.com escribió:
What should the clocks be?
Why are there three I2S devices?
Did I get interrupt and DMA values right?
spdif@1c21000 {
compatible = "allwinner,sun7i-a20-spdif";
reg = <0x01C21000 0x20>;
interrupts = <0 13 4>;
clocks = <&apb1_gates 16>;
dmas = <&dma 0 2>, <&dma 0 2>;
dma-names = "rx", "tx";
matches user manual
status = "disabled";
}
ac97@1c21400 {
compatible = "allwinner,sun7i-a20-ac97";
reg = <0x01C21400 0x20>;
interrupts = <0 15 4>;
Shouldn't this be 14? It's the next one after the SPDIF one according to
the manual.
clocks = <&apb1_gates 16>;
dmas = <&dma 0 5>, <&dma 0 5>;
dma-names = "rx", "tx";
matches user manual
status = "disabled";
}
i2s0: i2s@1c22000 {
compatible = "allwinner,sun7i-a20-i2s";
reg = <0x01C22000 0x20>;
interrupts = <0 16 4>;
clocks = <&apb1_gates 16>;
dmas = <&dma 0 2>, <&dma 0 3>;
2 looks like a typo. 3 is IIS0 according to user manual
dma-names = "rx", "tx";
status = "disabled";
}
i2s1: i2s@1c22400 {
compatible = "allwinner,sun7i-a20-i2s";
reg = <0x01C22400 0x20>;
interrupts = <0 87 4>;
clocks = <&apb1_gates 16>;
dmas = <&dma 0 4>, <&dma 0 4>;
dma-names = "rx", "tx";
matches user manual, assuming this is IIS1
status = "disabled";
}
i2s2: i2s@1c24400 {
compatible = "allwinner,sun7i-a20-i2s";
reg = <0x01C24400 0x20>;
interrupts = <0 90 4>;
clocks = <&apb1_gates 16>;
dmas = <&dma 0 6>, <&dma 0 6>;
ditto, assuming it's IIS2
dma-names = "rx", "tx";
status = "disabled";
}
codec@1c22c00 {
compatible = "allwinner,sun7i-a20-codec";
reg = <0x01C22c00 0x20>;
interrupts = <0 30 4>;
clocks = <&apb1_gates 16>;
dmas = <&dma 0 19>, <&dma 0 19>;
dma-names = "rx", "tx";
matches
status = "disabled";
}
As for the clocks, you seem to have used <&apb1_gates 16> on all, but
that's UART0's gate according to the manual. Note that most if not all
of the audio clocks, most importantly PLL2, AC97 and IISx clocks are not
supported on our clock driver yet, as there were no users for them.
--
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 linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.