da7219.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. Dialog Semiconductor DA7219 Audio Codec bindings
  2. DA7219 is an audio codec with advanced accessory detect features.
  3. ======
  4. Required properties:
  5. - compatible : Should be "dlg,da7219"
  6. - reg: Specifies the I2C slave address
  7. - interrupts : IRQ line info for DA7219.
  8. (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for
  9. further information relating to interrupt properties)
  10. - VDD-supply: VDD power supply for the device
  11. - VDDMIC-supply: VDDMIC power supply for the device
  12. - VDDIO-supply: VDDIO power supply for the device
  13. (See Documentation/devicetree/bindings/regulator/regulator.txt for further
  14. information relating to regulators)
  15. Optional properties:
  16. - interrupt-names : Name associated with interrupt line. Should be "wakeup" if
  17. interrupt is to be used to wake system, otherwise "irq" should be used.
  18. - wakeup-source: Flag to indicate this device can wake system (suspend/resume).
  19. - #clock-cells : Should be set to '<0>', only one clock source provided;
  20. - clock-output-names : Name given for DAI clocks output;
  21. - clocks : phandle and clock specifier for codec MCLK.
  22. - clock-names : Clock name string for 'clocks' attribute, should be "mclk".
  23. - dlg,micbias-lvl : Voltage (mV) for Mic Bias
  24. [<1600>, <1800>, <2000>, <2200>, <2400>, <2600>]
  25. - dlg,mic-amp-in-sel : Mic input source type
  26. ["diff", "se_p", "se_n"]
  27. - dlg,mclk-name : String name of MCLK for ACPI
  28. Deprecated properties:
  29. - dlg,ldo-lvl : Required internal LDO voltage (mV) level for digital engine
  30. (LDO unavailable in production HW so property no longer required).
  31. ======
  32. Child node - 'da7219_aad':
  33. Optional properties:
  34. - dlg,micbias-pulse-lvl : Mic bias higher voltage pulse level (mV).
  35. [<2800>, <2900>]
  36. - dlg,micbias-pulse-time : Mic bias higher voltage pulse duration (ms)
  37. - dlg,btn-cfg : Periodic button press measurements for 4-pole jack (ms)
  38. [<2>, <5>, <10>, <50>, <100>, <200>, <500>]
  39. - dlg,mic-det-thr : Impedance threshold for mic detection measurement (Ohms)
  40. [<200>, <500>, <750>, <1000>]
  41. - dlg,jack-ins-deb : Debounce time for jack insertion (ms)
  42. [<5>, <10>, <20>, <50>, <100>, <200>, <500>, <1000>]
  43. - dlg,jack-det-rate: Jack type detection latency (3/4 pole)
  44. ["32ms_64ms", "64ms_128ms", "128ms_256ms", "256ms_512ms"]
  45. - dlg,jack-rem-deb : Debounce time for jack removal (ms)
  46. [<1>, <5>, <10>, <20>]
  47. - dlg,a-d-btn-thr : Impedance threshold between buttons A and D
  48. [0x0 - 0xFF]
  49. - dlg,d-b-btn-thr : Impedance threshold between buttons D and B
  50. [0x0 - 0xFF]
  51. - dlg,b-c-btn-thr : Impedance threshold between buttons B and C
  52. [0x0 - 0xFF]
  53. - dlg,c-mic-btn-thr : Impedance threshold between button C and Mic
  54. [0x0 - 0xFF]
  55. - dlg,btn-avg : Number of 8-bit readings for averaged button measurement
  56. [<1>, <2>, <4>, <8>]
  57. - dlg,adc-1bit-rpt : Repeat count for 1-bit button measurement
  58. [<1>, <2>, <4>, <8>]
  59. ======
  60. Example:
  61. codec: da7219@1a {
  62. compatible = "dlg,da7219";
  63. reg = <0x1a>;
  64. interrupt-parent = <&gpio6>;
  65. interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
  66. VDD-supply = <&reg_audio>;
  67. VDDMIC-supply = <&reg_audio>;
  68. VDDIO-supply = <&reg_audio>;
  69. #clock-cells = <0>;
  70. clock-output-names = "dai-clks";
  71. clocks = <&clks 201>;
  72. clock-names = "mclk";
  73. dlg,ldo-lvl = <1200>;
  74. dlg,micbias-lvl = <2600>;
  75. dlg,mic-amp-in-sel = "diff";
  76. da7219_aad {
  77. dlg,btn-cfg = <50>;
  78. dlg,mic-det-thr = <500>;
  79. dlg,jack-ins-deb = <20>;
  80. dlg,jack-det-rate = "32ms_64ms";
  81. dlg,jack-rem-deb = <1>;
  82. dlg,a-d-btn-thr = <0xa>;
  83. dlg,d-b-btn-thr = <0x16>;
  84. dlg,b-c-btn-thr = <0x21>;
  85. dlg,c-mic-btn-thr = <0x3E>;
  86. dlg,btn-avg = <4>;
  87. dlg,adc-1bit-rpt = <1>;
  88. };
  89. };