Commit | Line | Data |
---|---|---|
8020e1bb MC |
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 | |
fbb016a2 | 12 | - "allwinner,sun6i-a31-spdif": for the Allwinner A31 SoC |
8020e1bb MC |
13 | |
14 | - reg : Offset and length of the register set for the device. | |
15 | ||
16 | - interrupts : Contains the spdif interrupt. | |
17 | ||
18 | - dmas : Generic dma devicetree binding as described in | |
19 | Documentation/devicetree/bindings/dma/dma.txt. | |
20 | ||
21 | - dma-names : Two dmas have to be defined, "tx" and "rx". | |
22 | ||
23 | - clocks : Contains an entry for each entry in clock-names. | |
24 | ||
25 | - clock-names : Includes the following entries: | |
26 | "apb" clock for the spdif bus. | |
27 | "spdif" clock for spdif controller. | |
28 | ||
fbb016a2 MC |
29 | - resets : reset specifier for the ahb reset (A31 and newer only) |
30 | ||
8020e1bb MC |
31 | Example: |
32 | ||
33 | spdif: spdif@01c21000 { | |
34 | compatible = "allwinner,sun4i-a10-spdif"; | |
35 | reg = <0x01c21000 0x40>; | |
36 | interrupts = <13>; | |
37 | clocks = <&apb0_gates 1>, <&spdif_clk>; | |
38 | clock-names = "apb", "spdif"; | |
39 | dmas = <&dma 0 2>, <&dma 0 2>; | |
40 | dma-names = "rx", "tx"; | |
41 | status = "okay"; | |
42 | }; |