renesas,rsrc-card.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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"
  7. - "renesas,rsrc-card,lager"
  8. - "renesas,rsrc-card,koelsch"
  9. Optional properties:
  10. - card_name : User specified audio sound card name, one string
  11. property.
  12. - cpu : CPU sub-node
  13. - codec : CODEC sub-node
  14. Optional subnode properties:
  15. - format : CPU/CODEC common audio format.
  16. "i2s", "right_j", "left_j" , "dsp_a"
  17. "dsp_b", "ac97", "pdm", "msb", "lsb"
  18. - frame-master : Indicates dai-link frame master.
  19. phandle to a cpu or codec subnode.
  20. - bitclock-master : Indicates dai-link bit clock master.
  21. phandle to a cpu or codec subnode.
  22. - bitclock-inversion : bool property. Add this if the
  23. dai-link uses bit clock inversion.
  24. - frame-inversion : bool property. Add this if the
  25. dai-link uses frame clock inversion.
  26. - convert-rate : platform specified sampling rate convert
  27. - audio-prefix : see audio-routing
  28. - audio-routing : A list of the connections between audio components.
  29. Each entry is a pair of strings, the first being the connection's sink,
  30. the second being the connection's source. Valid names for sources.
  31. use audio-prefix if some components is using same sink/sources naming.
  32. it can be used if compatible was "renesas,rsrc-card";
  33. Required CPU/CODEC subnodes properties:
  34. - sound-dai : phandle and port of CPU/CODEC
  35. Optional CPU/CODEC subnodes properties:
  36. - clocks / system-clock-frequency : specify subnode's clock if needed.
  37. it can be specified via "clocks" if system has
  38. clock node (= common clock), or "system-clock-frequency"
  39. (if system doens't support common clock)
  40. If a clock is specified, it is
  41. enabled with clk_prepare_enable()
  42. in dai startup() and disabled with
  43. clk_disable_unprepare() in dai
  44. shutdown().
  45. Example
  46. sound {
  47. compatible = "renesas,rsrc-card,lager";
  48. card-name = "rsnd-ak4643";
  49. format = "left_j";
  50. bitclock-master = <&sndcodec>;
  51. frame-master = <&sndcodec>;
  52. sndcpu: cpu {
  53. sound-dai = <&rcar_sound>;
  54. };
  55. sndcodec: codec {
  56. sound-dai = <&ak4643>;
  57. system-clock-frequency = <11289600>;
  58. };
  59. };