renesas,rsrc-card.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. Renesas Sampling Rate Convert Sound Card:
  2. Renesas Sampling Rate Convert Sound Card specifies audio DAI connections of SoC <-> codec.
  3. Required properties:
  4. - compatible : "renesas,rsrc-card,<board>"
  5. Examples with soctypes are:
  6. - "renesas,rsrc-card,lager"
  7. - "renesas,rsrc-card,koelsch"
  8. Optional properties:
  9. - card_name : User specified audio sound card name, one string
  10. property.
  11. - cpu : CPU sub-node
  12. - codec : CODEC sub-node
  13. Optional subnode properties:
  14. - format : CPU/CODEC common audio format.
  15. "i2s", "right_j", "left_j" , "dsp_a"
  16. "dsp_b", "ac97", "pdm", "msb", "lsb"
  17. - frame-master : Indicates dai-link frame master.
  18. phandle to a cpu or codec subnode.
  19. - bitclock-master : Indicates dai-link bit clock master.
  20. phandle to a cpu or codec subnode.
  21. - bitclock-inversion : bool property. Add this if the
  22. dai-link uses bit clock inversion.
  23. - frame-inversion : bool property. Add this if the
  24. dai-link uses frame clock inversion.
  25. - convert-rate : platform specified sampling rate convert
  26. Required CPU/CODEC subnodes properties:
  27. - sound-dai : phandle and port of CPU/CODEC
  28. Optional CPU/CODEC subnodes properties:
  29. - clocks / system-clock-frequency : specify subnode's clock if needed.
  30. it can be specified via "clocks" if system has
  31. clock node (= common clock), or "system-clock-frequency"
  32. (if system doens't support common clock)
  33. If a clock is specified, it is
  34. enabled with clk_prepare_enable()
  35. in dai startup() and disabled with
  36. clk_disable_unprepare() in dai
  37. shutdown().
  38. Example
  39. sound {
  40. compatible = "renesas,rsrc-card,lager";
  41. card-name = "rsnd-ak4643";
  42. format = "left_j";
  43. bitclock-master = <&sndcodec>;
  44. frame-master = <&sndcodec>;
  45. sndcpu: cpu {
  46. sound-dai = <&rcar_sound>;
  47. };
  48. sndcodec: codec {
  49. sound-dai = <&ak4643>;
  50. system-clock-frequency = <11289600>;
  51. };
  52. };