zte,zx-i2s.txt 1.4 KB

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