qcom,wcd9335.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. QCOM WCD9335 Codec
  2. Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC, supports
  3. Qualcomm Technologies, Inc. (QTI) multimedia solutions, including
  4. the MSM8996, MSM8976, and MSM8956 chipsets. It has in-built
  5. Soundwire controller, interrupt mux. It supports both I2S/I2C and
  6. SLIMbus audio interfaces.
  7. Required properties with SLIMbus Interface:
  8. - compatible:
  9. Usage: required
  10. Value type: <stringlist>
  11. Definition: For SLIMbus interface it should be "slimMID,PID",
  12. textual representation of Manufacturer ID, Product Code,
  13. shall be in lower case hexadecimal with leading zeroes
  14. suppressed. Refer to slimbus/bus.txt for details.
  15. Should be:
  16. "slim217,1a0" for MSM8996 and APQ8096 SoCs with SLIMbus.
  17. - reg
  18. Usage: required
  19. Value type: <u32 u32>
  20. Definition: Should be ('Device index', 'Instance ID')
  21. - interrupts
  22. Usage: required
  23. Value type: <prop-encoded-array>
  24. Definition: Interrupts via WCD INTR1 and INTR2 pins
  25. - interrupt-names:
  26. Usage: required
  27. Value type: <String array>
  28. Definition: Interrupt names of WCD INTR1 and INTR2
  29. Should be: "intr1", "intr2"
  30. - reset-gpio:
  31. Usage: required
  32. Value type: <String Array>
  33. Definition: Reset gpio line
  34. - qcom,ifd:
  35. Usage: required
  36. Value type: <phandle>
  37. Definition: SLIM interface device
  38. - clocks:
  39. Usage: required
  40. Value type: <prop-encoded-array>
  41. Definition: See clock-bindings.txt section "consumers". List of
  42. three clock specifiers for mclk, mclk2 and slimbus clock.
  43. - clock-names:
  44. Usage: required
  45. Value type: <string>
  46. Definition: Must contain "mclk", "mclk2" and "slimbus" strings.
  47. - vdd-buck-supply:
  48. Usage: required
  49. Value type: <phandle>
  50. Definition: Should contain a reference to the 1.8V buck supply
  51. - vdd-buck-sido-supply:
  52. Usage: required
  53. Value type: <phandle>
  54. Definition: Should contain a reference to the 1.8V SIDO buck supply
  55. - vdd-rx-supply:
  56. Usage: required
  57. Value type: <phandle>
  58. Definition: Should contain a reference to the 1.8V rx supply
  59. - vdd-tx-supply:
  60. Usage: required
  61. Value type: <phandle>
  62. Definition: Should contain a reference to the 1.8V tx supply
  63. - vdd-vbat-supply:
  64. Usage: Optional
  65. Value type: <phandle>
  66. Definition: Should contain a reference to the vbat supply
  67. - vdd-micbias-supply:
  68. Usage: required
  69. Value type: <phandle>
  70. Definition: Should contain a reference to the micbias supply
  71. - vdd-io-supply:
  72. Usage: required
  73. Value type: <phandle>
  74. Definition: Should contain a reference to the 1.8V io supply
  75. - interrupt-controller:
  76. Usage: required
  77. Definition: Indicating that this is a interrupt controller
  78. - #interrupt-cells:
  79. Usage: required
  80. Value type: <int>
  81. Definition: should be 1
  82. #sound-dai-cells
  83. Usage: required
  84. Value type: <u32>
  85. Definition: Must be 1
  86. codec@1{
  87. compatible = "slim217,1a0";
  88. reg = <1 0>;
  89. interrupts = <&msmgpio 54 IRQ_TYPE_LEVEL_HIGH>;
  90. interrupt-names = "intr2"
  91. reset-gpio = <&msmgpio 64 0>;
  92. qcom,ifd = <&wc9335_ifd>;
  93. clock-names = "mclk", "native";
  94. clocks = <&rpmcc RPM_SMD_DIV_CLK1>,
  95. <&rpmcc RPM_SMD_BB_CLK1>;
  96. vdd-buck-supply = <&pm8994_s4>;
  97. vdd-rx-supply = <&pm8994_s4>;
  98. vdd-buck-sido-supply = <&pm8994_s4>;
  99. vdd-tx-supply = <&pm8994_s4>;
  100. vdd-io-supply = <&pm8994_s4>;
  101. #sound-dai-cells = <1>;
  102. }