rockchip-spdif.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. * Rockchip SPDIF transceiver
  2. The S/PDIF audio block is a stereo transceiver that allows the
  3. processor to receive and transmit digital audio via an coaxial cable or
  4. a fibre cable.
  5. Required properties:
  6. - compatible: should be one of the following:
  7. - "rockchip,rk3288-spdif", "rockchip,rk3188-spdif" or
  8. "rockchip,rk3066-spdif"
  9. - reg: physical base address of the controller and length of memory mapped
  10. region.
  11. - interrupts: should contain the SPDIF interrupt.
  12. - dmas: DMA specifiers for tx dma. See the DMA client binding,
  13. Documentation/devicetree/bindings/dma/dma.txt
  14. - dma-names: should be "tx"
  15. - clocks: a list of phandle + clock-specifier pairs, one for each entry
  16. in clock-names.
  17. - clock-names: should contain following:
  18. - "hclk": clock for SPDIF controller
  19. - "mclk" : clock for SPDIF bus
  20. Required properties on RK3288:
  21. - rockchip,grf: the phandle of the syscon node for the general register
  22. file (GRF)
  23. Example for the rk3188 SPDIF controller:
  24. spdif: spdif@0x1011e000 {
  25. compatible = "rockchip,rk3188-spdif", "rockchip,rk3066-spdif";
  26. reg = <0x1011e000 0x2000>;
  27. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  28. dmas = <&dmac1_s 8>;
  29. dma-names = "tx";
  30. clock-names = "hclk", "mclk";
  31. clocks = <&cru HCLK_SPDIF>, <&cru SCLK_SPDIF>;
  32. status = "disabled";
  33. #sound-dai-cells = <0>;
  34. };