extcon-arizona.txt 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Cirrus Logic Arizona class audio SoCs
  2. These devices are audio SoCs with extensive digital capabilities and a range
  3. of analogue I/O.
  4. This document lists Extcon specific bindings, see the primary binding document:
  5. ../mfd/arizona.txt
  6. Optional properties:
  7. - wlf,hpdet-channel : Headphone detection channel.
  8. ARIZONA_ACCDET_MODE_HPL or 1 - Headphone detect mode is set to HPDETL
  9. ARIZONA_ACCDET_MODE_HPR or 2 - Headphone detect mode is set to HPDETR
  10. If this node is not mentioned or if the value is unknown, then
  11. headphone detection mode is set to HPDETL.
  12. - wlf,use-jd2 : Use the additional JD input along with JD1 for dual pin jack
  13. detection.
  14. - wlf,use-jd2-nopull : Internal pull on JD2 is disabled when used for
  15. jack detection.
  16. - wlf,jd-invert : Invert the polarity of the jack detection switch
  17. - wlf,micd-software-compare : Use a software comparison to determine mic
  18. presence
  19. - wlf,micd-detect-debounce : Additional software microphone detection
  20. debounce specified in milliseconds.
  21. - wlf,micd-pol-gpio : GPIO specifier for the GPIO controlling the headset
  22. polarity if one exists.
  23. - wlf,micd-bias-start-time : Time allowed for MICBIAS to startup prior to
  24. performing microphone detection, specified as per the ARIZONA_MICD_TIME_XXX
  25. defines.
  26. - wlf,micd-rate : Delay between successive microphone detection measurements,
  27. specified as per the ARIZONA_MICD_TIME_XXX defines.
  28. - wlf,micd-dbtime : Microphone detection hardware debounces specified as the
  29. number of measurements to take, valid values being 2 and 4.
  30. - wlf,micd-timeout-ms : Timeout for microphone detection, specified in
  31. milliseconds.
  32. - wlf,micd-force-micbias : Force MICBIAS continuously on during microphone
  33. detection.
  34. - wlf,micd-configs : Headset polarity configurations (generally used for
  35. detection of CTIA / OMTP headsets), the field can be of variable length
  36. but should always be a multiple of 3 cells long, each three cell group
  37. represents one polarity configuration.
  38. The first cell defines the accessory detection pin, zero will use MICDET1
  39. and all other values will use MICDET2.
  40. The second cell represents the MICBIAS to be used.
  41. The third cell represents the value of the micd-pol-gpio pin.
  42. - wlf,gpsw : Settings for the general purpose switch, set as one of the
  43. ARIZONA_GPSW_XXX defines.
  44. Example:
  45. codec: wm8280@0 {
  46. compatible = "wlf,wm8280";
  47. reg = <0>;
  48. ...
  49. wlf,use-jd2;
  50. wlf,use-jd2-nopull;
  51. wlf,jd-invert;
  52. wlf,micd-software-compare;
  53. wlf,micd-detect-debounce = <0>;
  54. wlf,micd-pol-gpio = <&codec 2 0>;
  55. wlf,micd-rate = <ARIZONA_MICD_TIME_8MS>;
  56. wlf,micd-dbtime = <4>;
  57. wlf,micd-timeout-ms = <100>;
  58. wlf,micd-force-micbias;
  59. wlf,micd-configs = <
  60. 0 1 0 /* MICDET1 MICBIAS1 GPIO=low */
  61. 1 2 1 /* MICDET2 MICBIAS2 GPIO=high */
  62. >;
  63. wlf,gpsw = <0>;
  64. };