da7219.txt 3.3 KB

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