hisilicon,hi6210-i2s.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. * Hisilicon 6210 i2s controller
  2. Required properties:
  3. - compatible: should be one of the following:
  4. - "hisilicon,hi6210-i2s"
  5. - reg: physical base address of the i2s controller unit and length of
  6. memory mapped region.
  7. - interrupts: should contain the i2s interrupt.
  8. - clocks: a list of phandle + clock-specifier pairs, one for each entry
  9. in clock-names.
  10. - clock-names: should contain following:
  11. - "dacodec"
  12. - "i2s-base"
  13. - dmas: DMA specifiers for tx dma. See the DMA client binding,
  14. Documentation/devicetree/bindings/dma/dma.txt
  15. - dma-names: should be "tx" and "rx"
  16. - hisilicon,sysctrl-syscon: phandle to sysctrl syscon
  17. - #sound-dai-cells: Should be set to 1 (for multi-dai)
  18. - The dai cell indexes reference the following interfaces:
  19. 0: S2 interface
  20. (Currently that is the only one available, but more may be
  21. supported in the future)
  22. Example for the hi6210 i2s controller:
  23. i2s0: i2s@f7118000{
  24. compatible = "hisilicon,hi6210-i2s";
  25. reg = <0x0 0xf7118000 0x0 0x8000>; /* i2s unit */
  26. interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; /* 155 "DigACodec_intr"-32 */
  27. clocks = <&sys_ctrl HI6220_DACODEC_PCLK>,
  28. <&sys_ctrl HI6220_BBPPLL0_DIV>;
  29. clock-names = "dacodec", "i2s-base";
  30. dmas = <&dma0 15 &dma0 14>;
  31. dma-names = "rx", "tx";
  32. hisilicon,sysctrl-syscon = <&sys_ctrl>;
  33. #sound-dai-cells = <1>;
  34. };
  35. Then when referencing the i2s controller:
  36. sound-dai = <&i2s0 0>; /* index 0 => S2 interface */