diff options
Diffstat (limited to 'Documentation/devicetree/bindings/sound/rockchip-spdif.txt')
-rw-r--r-- | Documentation/devicetree/bindings/sound/rockchip-spdif.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/rockchip-spdif.txt b/Documentation/devicetree/bindings/sound/rockchip-spdif.txt new file mode 100644 index 000000000000..e64dbdea7db9 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/rockchip-spdif.txt | |||
@@ -0,0 +1,40 @@ | |||
1 | * Rockchip SPDIF transceiver | ||
2 | |||
3 | The S/PDIF audio block is a stereo transceiver that allows the | ||
4 | processor to receive and transmit digital audio via an coaxial cable or | ||
5 | a fibre cable. | ||
6 | |||
7 | Required properties: | ||
8 | |||
9 | - compatible: should be one of the following: | ||
10 | - "rockchip,rk3288-spdif", "rockchip,rk3188-spdif" or | ||
11 | "rockchip,rk3066-spdif" | ||
12 | - reg: physical base address of the controller and length of memory mapped | ||
13 | region. | ||
14 | - interrupts: should contain the SPDIF interrupt. | ||
15 | - dmas: DMA specifiers for tx dma. See the DMA client binding, | ||
16 | Documentation/devicetree/bindings/dma/dma.txt | ||
17 | - dma-names: should be "tx" | ||
18 | - clocks: a list of phandle + clock-specifier pairs, one for each entry | ||
19 | in clock-names. | ||
20 | - clock-names: should contain following: | ||
21 | - "hclk": clock for SPDIF controller | ||
22 | - "mclk" : clock for SPDIF bus | ||
23 | |||
24 | Required properties on RK3288: | ||
25 | - rockchip,grf: the phandle of the syscon node for the general register | ||
26 | file (GRF) | ||
27 | |||
28 | Example for the rk3188 SPDIF controller: | ||
29 | |||
30 | spdif: spdif@0x1011e000 { | ||
31 | compatible = "rockchip,rk3188-spdif", "rockchip,rk3066-spdif"; | ||
32 | reg = <0x1011e000 0x2000>; | ||
33 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; | ||
34 | dmas = <&dmac1_s 8>; | ||
35 | dma-names = "tx"; | ||
36 | clock-names = "hclk", "mclk"; | ||
37 | clocks = <&cru HCLK_SPDIF>, <&cru SCLK_SPDIF>; | ||
38 | status = "disabled"; | ||
39 | #sound-dai-cells = <0>; | ||
40 | }; | ||