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