qcom,apq8016-sbc.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. * Qualcomm Technologies APQ8016 SBC ASoC machine driver
  2. This node models the Qualcomm Technologies APQ8016 SBC ASoC machine driver
  3. Required properties:
  4. - compatible : "qcom,apq8016-sbc-sndcard"
  5. - pinctrl-N : One property must exist for each entry in
  6. pinctrl-names. See ../pinctrl/pinctrl-bindings.txt
  7. for details of the property values.
  8. - pinctrl-names : Must contain a "default" entry.
  9. - reg : Must contain an address for each entry in reg-names.
  10. - reg-names : A list which must include the following entries:
  11. * "mic-iomux"
  12. * "spkr-iomux"
  13. - qcom,model : Name of the sound card.
  14. - qcom,audio-routing : A list of the connections between audio components.
  15. Each entry is a pair of strings, the first being the
  16. connection's sink, the second being the connection's
  17. source. Valid names could be power supplies, MicBias
  18. of msm8x16_wcd codec and the jacks on the board:
  19. Power supplies:
  20. * MIC BIAS External1
  21. * MIC BIAS External2
  22. * MIC BIAS Internal1
  23. * MIC BIAS Internal2
  24. Board connectors:
  25. * Headset Mic
  26. * Secondary Mic
  27. * DMIC
  28. * Ext Spk
  29. Dai-link subnode properties and subnodes:
  30. Required dai-link subnodes:
  31. - cpu : CPU sub-node
  32. - codec : CODEC sub-node
  33. Required CPU/CODEC subnodes properties:
  34. -link-name : Name of the dai link.
  35. -sound-dai : phandle/s and port of CPU/CODEC
  36. Example:
  37. sound: sound {
  38. compatible = "qcom,apq8016-sbc-sndcard";
  39. reg = <0x07702000 0x4>, <0x07702004 0x4>;
  40. reg-names = "mic-iomux", "spkr-iomux";
  41. qcom,model = "DB410c";
  42. qcom,audio-routing =
  43. "MIC BIAS External1", "Handset Mic",
  44. "MIC BIAS Internal2", "Headset Mic",
  45. "MIC BIAS External1", "Secondary Mic",
  46. "AMIC1", "MIC BIAS External1",
  47. "AMIC2", "MIC BIAS Internal2",
  48. "AMIC3", "MIC BIAS External1",
  49. "DMIC1", "MIC BIAS Internal1",
  50. "MIC BIAS Internal1", "Digital Mic1",
  51. "DMIC2", "MIC BIAS Internal1",
  52. "MIC BIAS Internal1", "Digital Mic2";
  53. /* I2S - Internal codec */
  54. internal-dai-link@0 {
  55. cpu { /* PRIMARY */
  56. sound-dai = <&lpass MI2S_PRIMARY>;
  57. };
  58. codec {
  59. sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
  60. };
  61. };
  62. /* External Primary or External Secondary -ADV7533 HDMI */
  63. external-dai-link@0 {
  64. link-name = "ADV7533";
  65. cpu { /* QUAT */
  66. sound-dai = <&lpass MI2S_QUATERNARY>;
  67. };
  68. codec {
  69. sound-dai = <&adv_bridge 0>;
  70. };
  71. };
  72. };