qcom,sdm845.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. * Qualcomm Technologies Inc. SDM845 ASoC sound card driver
  2. This binding describes the SDM845 sound card, which uses qdsp for audio.
  3. - compatible:
  4. Usage: required
  5. Value type: <stringlist>
  6. Definition: must be "qcom,sdm845-sndcard"
  7. - audio-routing:
  8. Usage: Optional
  9. Value type: <stringlist>
  10. Definition: A list of the connections between audio components.
  11. Each entry is a pair of strings, the first being the
  12. connection's sink, the second being the connection's
  13. source. Valid names could be power supplies, MicBias
  14. of codec and the jacks on the board.
  15. - model:
  16. Usage: required
  17. Value type: <stringlist>
  18. Definition: The user-visible name of this sound card.
  19. = dailinks
  20. Each subnode of sndcard represents either a dailink, and subnodes of each
  21. dailinks would be cpu/codec/platform dais.
  22. - link-name:
  23. Usage: required
  24. Value type: <string>
  25. Definition: User friendly name for dai link
  26. = CPU, PLATFORM, CODEC dais subnodes
  27. - cpu:
  28. Usage: required
  29. Value type: <subnode>
  30. Definition: cpu dai sub-node
  31. - codec:
  32. Usage: required
  33. Value type: <subnode>
  34. Definition: codec dai sub-node
  35. - platform:
  36. Usage: Optional
  37. Value type: <subnode>
  38. Definition: platform dai sub-node
  39. - sound-dai:
  40. Usage: required
  41. Value type: <phandle>
  42. Definition: dai phandle/s and port of CPU/CODEC/PLATFORM node.
  43. Example:
  44. audio {
  45. compatible = "qcom,sdm845-sndcard";
  46. model = "sdm845-snd-card";
  47. pinctrl-names = "default", "sleep";
  48. pinctrl-0 = <&pri_mi2s_active &pri_mi2s_ws_active>;
  49. pinctrl-1 = <&pri_mi2s_sleep &pri_mi2s_ws_sleep>;
  50. mm1-dai-link {
  51. link-name = "MultiMedia1";
  52. cpu {
  53. sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
  54. };
  55. };
  56. pri-mi2s-dai-link {
  57. link-name = "PRI MI2S Playback";
  58. cpu {
  59. sound-dai = <&q6afedai PRIMARY_MI2S_RX>;
  60. };
  61. platform {
  62. sound-dai = <&q6routing>;
  63. };
  64. };
  65. };