sunxi,sun4i-spdif.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Allwinner Sony/Philips Digital Interface Format (S/PDIF) Controller
  2. The Allwinner S/PDIF audio block is a transceiver that allows the
  3. processor to receive and transmit digital audio via an coaxial cable or
  4. a fibre cable.
  5. For now only playback is supported.
  6. Required properties:
  7. - compatible : should be one of the following:
  8. - "allwinner,sun4i-a10-spdif": for the Allwinner A10 SoC
  9. - "allwinner,sun6i-a31-spdif": for the Allwinner A31 SoC
  10. - "allwinner,sun8i-h3-spdif": for the Allwinner H3 SoC
  11. - reg : Offset and length of the register set for the device.
  12. - interrupts : Contains the spdif interrupt.
  13. - dmas : Generic dma devicetree binding as described in
  14. Documentation/devicetree/bindings/dma/dma.txt.
  15. - dma-names : Two dmas have to be defined, "tx" and "rx".
  16. - clocks : Contains an entry for each entry in clock-names.
  17. - clock-names : Includes the following entries:
  18. "apb" clock for the spdif bus.
  19. "spdif" clock for spdif controller.
  20. - resets : reset specifier for the ahb reset (A31 and newer only)
  21. Example:
  22. spdif: spdif@1c21000 {
  23. compatible = "allwinner,sun4i-a10-spdif";
  24. reg = <0x01c21000 0x40>;
  25. interrupts = <13>;
  26. clocks = <&apb0_gates 1>, <&spdif_clk>;
  27. clock-names = "apb", "spdif";
  28. dmas = <&dma 0 2>, <&dma 0 2>;
  29. dma-names = "rx", "tx";
  30. };