2016-06-16 05:11:20 +08:00
|
|
|
* Allwinner A10 I2S controller
|
|
|
|
|
|
|
|
The I2S bus (Inter-IC sound bus) is a serial link for digital
|
|
|
|
audio data transfer between devices in the system.
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
|
2017-02-28 06:29:56 +08:00
|
|
|
- compatible: should be one of the following:
|
2016-06-16 05:11:20 +08:00
|
|
|
- "allwinner,sun4i-a10-i2s"
|
2017-02-10 18:00:46 +08:00
|
|
|
- "allwinner,sun6i-a31-i2s"
|
2017-08-19 20:48:39 +08:00
|
|
|
- "allwinner,sun8i-h3-i2s"
|
2016-06-16 05:11:20 +08:00
|
|
|
- reg: physical base address of the controller and length of memory mapped
|
|
|
|
region.
|
|
|
|
- interrupts: should contain the I2S interrupt.
|
|
|
|
- dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
|
|
|
|
Documentation/devicetree/bindings/dma/dma.txt
|
|
|
|
- dma-names: should include "tx" and "rx".
|
|
|
|
- clocks: a list of phandle + clock-specifer pairs, one for each entry in clock-names.
|
2017-02-28 06:29:56 +08:00
|
|
|
- clock-names: should contain the following:
|
2016-06-16 05:11:20 +08:00
|
|
|
- "apb" : clock for the I2S bus interface
|
|
|
|
- "mod" : module clock for the I2S controller
|
|
|
|
- #sound-dai-cells : Must be equal to 0
|
|
|
|
|
2017-02-10 18:00:46 +08:00
|
|
|
Required properties for the following compatibles:
|
|
|
|
- "allwinner,sun6i-a31-i2s"
|
2017-08-19 20:48:39 +08:00
|
|
|
- "allwinner,sun8i-h3-i2s"
|
2017-02-10 18:00:46 +08:00
|
|
|
- resets: phandle to the reset line for this codec
|
|
|
|
|
2016-06-16 05:11:20 +08:00
|
|
|
Example:
|
|
|
|
|
|
|
|
i2s0: i2s@01c22400 {
|
|
|
|
#sound-dai-cells = <0>;
|
|
|
|
compatible = "allwinner,sun4i-a10-i2s";
|
|
|
|
reg = <0x01c22400 0x400>;
|
|
|
|
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&apb0_gates 3>, <&i2s0_clk>;
|
|
|
|
clock-names = "apb", "mod";
|
|
|
|
dmas = <&dma SUN4I_DMA_NORMAL 3>,
|
|
|
|
<&dma SUN4I_DMA_NORMAL 3>;
|
|
|
|
dma-names = "rx", "tx";
|
|
|
|
};
|