19e615f63SJohn Stultz* Hisilicon 6210 i2s controller
29e615f63SJohn Stultz
39e615f63SJohn StultzRequired properties:
49e615f63SJohn Stultz
59e615f63SJohn Stultz- compatible: should be one of the following:
69e615f63SJohn Stultz   - "hisilicon,hi6210-i2s"
79e615f63SJohn Stultz- reg: physical base address of the i2s controller unit and length of
89e615f63SJohn Stultz   memory mapped region.
99e615f63SJohn Stultz- interrupts: should contain the i2s interrupt.
109e615f63SJohn Stultz- clocks: a list of phandle + clock-specifier pairs, one for each entry
119e615f63SJohn Stultz  in clock-names.
129e615f63SJohn Stultz- clock-names: should contain following:
139e615f63SJohn Stultz   - "dacodec"
149e615f63SJohn Stultz   - "i2s-base"
159e615f63SJohn Stultz- dmas: DMA specifiers for tx dma. See the DMA client binding,
169e615f63SJohn Stultz  Documentation/devicetree/bindings/dma/dma.txt
179e615f63SJohn Stultz- dma-names: should be "tx" and "rx"
189e615f63SJohn Stultz- hisilicon,sysctrl-syscon: phandle to sysctrl syscon
199e615f63SJohn Stultz- #sound-dai-cells: Should be set to 1 (for multi-dai)
2086666c08SJohn Stultz   - The dai cell indexes reference the following interfaces:
2186666c08SJohn Stultz       0: S2 interface
2286666c08SJohn Stultz       (Currently that is the only one available, but more may be
2386666c08SJohn Stultz        supported in the future)
249e615f63SJohn Stultz
259e615f63SJohn StultzExample for the hi6210 i2s controller:
269e615f63SJohn Stultz
279e615f63SJohn Stultzi2s0: i2s@f7118000{
289e615f63SJohn Stultz	compatible = "hisilicon,hi6210-i2s";
299e615f63SJohn Stultz	reg = <0x0 0xf7118000 0x0 0x8000>; /* i2s unit */
309e615f63SJohn Stultz	interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; /* 155 "DigACodec_intr"-32 */
319e615f63SJohn Stultz	clocks = <&sys_ctrl HI6220_DACODEC_PCLK>,
329e615f63SJohn Stultz		 <&sys_ctrl HI6220_BBPPLL0_DIV>;
339e615f63SJohn Stultz	clock-names = "dacodec", "i2s-base";
349e615f63SJohn Stultz	dmas = <&dma0 15 &dma0 14>;
359e615f63SJohn Stultz	dma-names = "rx", "tx";
369e615f63SJohn Stultz	hisilicon,sysctrl-syscon = <&sys_ctrl>;
379e615f63SJohn Stultz	#sound-dai-cells = <1>;
389e615f63SJohn Stultz};
3986666c08SJohn Stultz
4086666c08SJohn StultzThen when referencing the i2s controller:
4186666c08SJohn Stultz	sound-dai = <&i2s0 0>; /* index 0 => S2 interface */
4286666c08SJohn Stultz
43