18c2ecf20Sopenharmony_ci* Hisilicon 6210 i2s controller 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci- compatible: should be one of the following: 68c2ecf20Sopenharmony_ci - "hisilicon,hi6210-i2s" 78c2ecf20Sopenharmony_ci- reg: physical base address of the i2s controller unit and length of 88c2ecf20Sopenharmony_ci memory mapped region. 98c2ecf20Sopenharmony_ci- interrupts: should contain the i2s interrupt. 108c2ecf20Sopenharmony_ci- clocks: a list of phandle + clock-specifier pairs, one for each entry 118c2ecf20Sopenharmony_ci in clock-names. 128c2ecf20Sopenharmony_ci- clock-names: should contain following: 138c2ecf20Sopenharmony_ci - "dacodec" 148c2ecf20Sopenharmony_ci - "i2s-base" 158c2ecf20Sopenharmony_ci- dmas: DMA specifiers for tx dma. See the DMA client binding, 168c2ecf20Sopenharmony_ci Documentation/devicetree/bindings/dma/dma.txt 178c2ecf20Sopenharmony_ci- dma-names: should be "tx" and "rx" 188c2ecf20Sopenharmony_ci- hisilicon,sysctrl-syscon: phandle to sysctrl syscon 198c2ecf20Sopenharmony_ci- #sound-dai-cells: Should be set to 1 (for multi-dai) 208c2ecf20Sopenharmony_ci - The dai cell indexes reference the following interfaces: 218c2ecf20Sopenharmony_ci 0: S2 interface 228c2ecf20Sopenharmony_ci (Currently that is the only one available, but more may be 238c2ecf20Sopenharmony_ci supported in the future) 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciExample for the hi6210 i2s controller: 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_cii2s0: i2s@f7118000{ 288c2ecf20Sopenharmony_ci compatible = "hisilicon,hi6210-i2s"; 298c2ecf20Sopenharmony_ci reg = <0x0 0xf7118000 0x0 0x8000>; /* i2s unit */ 308c2ecf20Sopenharmony_ci interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; /* 155 "DigACodec_intr"-32 */ 318c2ecf20Sopenharmony_ci clocks = <&sys_ctrl HI6220_DACODEC_PCLK>, 328c2ecf20Sopenharmony_ci <&sys_ctrl HI6220_BBPPLL0_DIV>; 338c2ecf20Sopenharmony_ci clock-names = "dacodec", "i2s-base"; 348c2ecf20Sopenharmony_ci dmas = <&dma0 15 &dma0 14>; 358c2ecf20Sopenharmony_ci dma-names = "rx", "tx"; 368c2ecf20Sopenharmony_ci hisilicon,sysctrl-syscon = <&sys_ctrl>; 378c2ecf20Sopenharmony_ci #sound-dai-cells = <1>; 388c2ecf20Sopenharmony_ci}; 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ciThen when referencing the i2s controller: 418c2ecf20Sopenharmony_ci sound-dai = <&i2s0 0>; /* index 0 => S2 interface */ 428c2ecf20Sopenharmony_ci 43