sun4i-codec.txt 979 B

123456789101112131415161718192021222324252627282930
  1. * Allwinner A10 Codec
  2. Required properties:
  3. - compatible: must be either "allwinner,sun4i-a10-codec" or
  4. "allwinner,sun7i-a20-codec"
  5. - reg: must contain the registers location and length
  6. - interrupts: must contain the codec interrupt
  7. - dmas: DMA channels for tx and rx dma. See the DMA client binding,
  8. Documentation/devicetree/bindings/dma/dma.txt
  9. - dma-names: should include "tx" and "rx".
  10. - clocks: a list of phandle + clock-specifer pairs, one for each entry
  11. in clock-names.
  12. - clock-names: should contain followings:
  13. - "apb": the parent APB clock for this controller
  14. - "codec": the parent module clock
  15. Optional properties:
  16. - allwinner,pa-gpios: gpio to enable external amplifier
  17. Example:
  18. codec: codec@01c22c00 {
  19. #sound-dai-cells = <0>;
  20. compatible = "allwinner,sun7i-a20-codec";
  21. reg = <0x01c22c00 0x40>;
  22. interrupts = <0 30 4>;
  23. clocks = <&apb0_gates 0>, <&codec_clk>;
  24. clock-names = "apb", "codec";
  25. dmas = <&dma 0 19>, <&dma 0 19>;
  26. dma-names = "rx", "tx";
  27. };