]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - Documentation/devicetree/bindings/sound/sunxi,sun4i-spdif.txt
ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()
[mirror_ubuntu-zesty-kernel.git] / Documentation / devicetree / bindings / sound / sunxi,sun4i-spdif.txt
1 Allwinner Sony/Philips Digital Interface Format (S/PDIF) Controller
2
3 The Allwinner S/PDIF audio block is a transceiver that allows the
4 processor to receive and transmit digital audio via an coaxial cable or
5 a fibre cable.
6 For now only playback is supported.
7
8 Required properties:
9
10 - compatible : should be one of the following:
11 - "allwinner,sun4i-a10-spdif": for the Allwinner A10 SoC
12
13 - reg : Offset and length of the register set for the device.
14
15 - interrupts : Contains the spdif interrupt.
16
17 - dmas : Generic dma devicetree binding as described in
18 Documentation/devicetree/bindings/dma/dma.txt.
19
20 - dma-names : Two dmas have to be defined, "tx" and "rx".
21
22 - clocks : Contains an entry for each entry in clock-names.
23
24 - clock-names : Includes the following entries:
25 "apb" clock for the spdif bus.
26 "spdif" clock for spdif controller.
27
28 Example:
29
30 spdif: spdif@01c21000 {
31 compatible = "allwinner,sun4i-a10-spdif";
32 reg = <0x01c21000 0x40>;
33 interrupts = <13>;
34 clocks = <&apb0_gates 1>, <&spdif_clk>;
35 clock-names = "apb", "spdif";
36 dmas = <&dma 0 2>, <&dma 0 2>;
37 dma-names = "rx", "tx";
38 status = "okay";
39 };