xref: /linux/Documentation/devicetree/bindings/sound/img,i2s-out.txt (revision 552c69b36ebd966186573b9c7a286b390935cce1)
12dcfa06eSDamien.HorsleyImagination Technologies I2S Output Controller
22dcfa06eSDamien.Horsley
32dcfa06eSDamien.HorsleyRequired Properties:
42dcfa06eSDamien.Horsley
52dcfa06eSDamien.Horsley  - compatible : Compatible list, must contain "img,i2s-out"
62dcfa06eSDamien.Horsley
72dcfa06eSDamien.Horsley  - #sound-dai-cells : Must be equal to 0
82dcfa06eSDamien.Horsley
92dcfa06eSDamien.Horsley  - reg : Offset and length of the register set for the device
102dcfa06eSDamien.Horsley
112dcfa06eSDamien.Horsley  - clocks : Contains an entry for each entry in clock-names
122dcfa06eSDamien.Horsley
132dcfa06eSDamien.Horsley  - clock-names : Must include the following entries:
142dcfa06eSDamien.Horsley	"sys"	The system clock
152dcfa06eSDamien.Horsley	"ref"	The reference clock
162dcfa06eSDamien.Horsley
172dcfa06eSDamien.Horsley  - dmas: Contains an entry for each entry in dma-names.
182dcfa06eSDamien.Horsley
192dcfa06eSDamien.Horsley  - dma-names: Must include the following entry:
202dcfa06eSDamien.Horsley	"tx"	Single DMA channel used by all active I2S channels
212dcfa06eSDamien.Horsley
222dcfa06eSDamien.Horsley  - img,i2s-channels : Number of I2S channels instantiated in the I2S out block
232dcfa06eSDamien.Horsley
242dcfa06eSDamien.Horsley  - resets: Contains a phandle to the I2S out reset signal
252dcfa06eSDamien.Horsley
262dcfa06eSDamien.Horsley  - reset-names: Contains the reset signal name "rst"
272dcfa06eSDamien.Horsley
282dcfa06eSDamien.HorsleyOptional Properties:
292dcfa06eSDamien.Horsley
302dcfa06eSDamien.Horsley  - interrupts : Contains the I2S out interrupts. Depending on
312dcfa06eSDamien.Horsley	the configuration, there may be no interrupts, one interrupt,
322dcfa06eSDamien.Horsley	or an interrupt per I2S channel. For the case where there is
332dcfa06eSDamien.Horsley	one interrupt per channel, the interrupts should be listed
342dcfa06eSDamien.Horsley	in ascending channel order
352dcfa06eSDamien.Horsley
362dcfa06eSDamien.HorsleyExample:
372dcfa06eSDamien.Horsley
38*afc3bca4SRob Herringi2s_out: i2s-out@18100a00 {
392dcfa06eSDamien.Horsley	compatible = "img,i2s-out";
402dcfa06eSDamien.Horsley	reg = <0x18100A00 0x200>;
412dcfa06eSDamien.Horsley	interrupts = <GIC_SHARED 13 IRQ_TYPE_LEVEL_HIGH>;
422dcfa06eSDamien.Horsley	dmas = <&mdc 23 0xffffffff 0>;
432dcfa06eSDamien.Horsley	dma-names = "tx";
442dcfa06eSDamien.Horsley	clocks = <&cr_periph SYS_CLK_I2S_OUT>,
452dcfa06eSDamien.Horsley		 <&clk_core CLK_I2S>;
462dcfa06eSDamien.Horsley	clock-names = "sys", "ref";
472dcfa06eSDamien.Horsley	img,i2s-channels = <6>;
482dcfa06eSDamien.Horsley	resets = <&pistachio_reset PISTACHIO_RESET_I2S_OUT>;
492dcfa06eSDamien.Horsley	reset-names = "rst";
502dcfa06eSDamien.Horsley	#sound-dai-cells = <0>;
512dcfa06eSDamien.Horsley};
52