zte,zx-i2s.txt 1.3 KB

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