xref: /freebsd/sys/contrib/device-tree/Bindings/sound/zte,zx-i2s.txt (revision a90b9d0159070121c221b966469c3e36d912bf82)
1ZTE ZX296702 I2S controller
2
3Required properties:
4 - compatible : Must be one of:
5	"zte,zx296718-i2s", "zte,zx296702-i2s"
6	"zte,zx296702-i2s"
7 - reg : Must contain I2S core's registers location and length
8 - clocks : Pairs of phandle and specifier referencing the controller's clocks.
9 - clock-names: "wclk" for the wclk, "pclk" for the pclk to the I2S interface.
10 - dmas: Pairs of phandle and specifier for the DMA channel that is used by
11   the core. The core expects two dma channels for transmit.
12 - dma-names : Must be "tx" and "rx"
13
14For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties
15please check:
16	* resource-names.txt
17	* clock/clock-bindings.txt
18	* dma/dma.txt
19
20Example:
21	i2s0: i2s@b005000 {
22		#sound-dai-cells = <0>;
23		compatible = "zte,zx296718-i2s", "zte,zx296702-i2s";
24		reg = <0x0b005000 0x1000>;
25		clocks = <&audiocrm AUDIO_I2S0_WCLK>, <&audiocrm AUDIO_I2S0_PCLK>;
26		clock-names = "wclk", "pclk";
27		interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
28		dmas = <&dma 5>, <&dma 6>;
29		dma-names = "tx", "rx";
30	};
31
32	sound {
33		compatible = "simple-audio-card";
34		simple-audio-card,name = "zx296702_snd";
35		simple-audio-card,format = "left_j";
36		simple-audio-card,bitclock-master = <&sndcodec>;
37		simple-audio-card,frame-master = <&sndcodec>;
38		sndcpu: simple-audio-card,cpu {
39			sound-dai = <&i2s0>;
40		};
41
42		sndcodec: simple-audio-card,codec {
43			sound-dai = <&acodec>;
44		};
45	};
46