xref: /freebsd/sys/contrib/device-tree/Bindings/sound/img,spdif-in.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotImagination Technologies SPDIF Input Controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired Properties:
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot  - compatible : Compatible list, must contain "img,spdif-in"
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadot  - #sound-dai-cells : Must be equal to 0
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot  - reg : Offset and length of the register set for the device
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot  - dmas: Contains an entry for each entry in dma-names.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot  - dma-names: Must include the following entry:
14*c66ec88fSEmmanuel Vadot	"rx"
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot  - clocks : Contains an entry for each entry in clock-names
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel Vadot  - clock-names : Includes the following entries:
19*c66ec88fSEmmanuel Vadot	"sys"	The system clock
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel VadotOptional Properties:
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot  - resets: Should contain a phandle to the spdif in reset signal, if any
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadot  - reset-names: Should contain the reset signal name "rst", if a
26*c66ec88fSEmmanuel Vadot	reset phandle is given
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot  - interrupts : Contains the spdif in interrupt, if present
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel VadotExample:
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadotspdif_in: spdif-in@18100e00 {
33*c66ec88fSEmmanuel Vadot	compatible = "img,spdif-in";
34*c66ec88fSEmmanuel Vadot	reg = <0x18100E00 0x100>;
35*c66ec88fSEmmanuel Vadot	interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
36*c66ec88fSEmmanuel Vadot	dmas = <&mdc 15 0xffffffff 0>;
37*c66ec88fSEmmanuel Vadot	dma-names = "rx";
38*c66ec88fSEmmanuel Vadot	clocks = <&cr_periph SYS_CLK_SPDIF_IN>;
39*c66ec88fSEmmanuel Vadot	clock-names = "sys";
40*c66ec88fSEmmanuel Vadot	#sound-dai-cells = <0>;
41*c66ec88fSEmmanuel Vadot};
42