wlf,arizona.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/extcon/wlf,arizona.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs
  7. maintainers:
  8. - patches@opensource.cirrus.com
  9. description: |
  10. These devices are audio SoCs with extensive digital capabilities and a
  11. range of analogue I/O.
  12. This document lists Extcon specific bindings, see the primary binding
  13. document ../mfd/arizona.yaml
  14. properties:
  15. wlf,hpdet-channel:
  16. description:
  17. Headphone detection channel. ARIZONA_ACCDET_MODE_HPL/1 sets the
  18. headphone detect mode to HPDETL, ARIZONA_ACCDET_MODE_HPR/2 sets it
  19. to HPDETR. If this node is not included or if the value is unknown,
  20. then headphone detection mode is set to HPDETL.
  21. $ref: /schemas/types.yaml#/definitions/uint32
  22. minimum: 1
  23. maximum: 2
  24. wlf,use-jd2:
  25. description:
  26. Use the additional JD input along with JD1 for dual pin jack detection.
  27. type: boolean
  28. wlf,use-jd2-nopull:
  29. description:
  30. Internal pull on JD2 is disabled when used for jack detection.
  31. type: boolean
  32. wlf,jd-invert:
  33. description:
  34. Invert the polarity of the jack detection switch.
  35. type: boolean
  36. wlf,micd-software-compare:
  37. description:
  38. Use a software comparison to determine mic presence.
  39. type: boolean
  40. wlf,micd-detect-debounce:
  41. description:
  42. Additional software microphone detection debounce specified in
  43. milliseconds.
  44. $ref: /schemas/types.yaml#/definitions/uint32
  45. wlf,micd-pol-gpio:
  46. description:
  47. GPIO specifier for the GPIO controlling the headset polarity if one
  48. exists.
  49. maxItems: 1
  50. wlf,micd-bias-start-time:
  51. description:
  52. Time allowed for MICBIAS to startup prior to performing microphone
  53. detection, specified as per the ARIZONA_MICD_TIME_XXX defines.
  54. $ref: /schemas/types.yaml#/definitions/uint32
  55. minimum: 0
  56. maximum: 12
  57. wlf,micd-rate:
  58. description:
  59. Delay between successive microphone detection measurements, specified
  60. as per the ARIZONA_MICD_TIME_XXX defines.
  61. $ref: /schemas/types.yaml#/definitions/uint32
  62. minimum: 0
  63. maximum: 12
  64. wlf,micd-dbtime:
  65. description:
  66. Microphone detection hardware debounces specified as the number of
  67. measurements to take.
  68. $ref: /schemas/types.yaml#/definitions/uint32
  69. enum: [2, 4]
  70. wlf,micd-timeout-ms:
  71. description:
  72. Timeout for microphone detection, specified in milliseconds.
  73. wlf,micd-force-micbias:
  74. description:
  75. Force MICBIAS continuously on during microphone detection.
  76. type: boolean
  77. wlf,micd-configs:
  78. description:
  79. Headset polarity configurations (generally used for detection of
  80. CTIA / OMTP headsets), the field can be of variable length but
  81. should always be a multiple of 3 cells long, each three cell group
  82. represents one polarity configuration.
  83. $ref: /schemas/types.yaml#/definitions/uint32-matrix
  84. items:
  85. items:
  86. - description:
  87. The first cell defines the accessory detection pin, zero
  88. will use MICDET1 and 0x2000 will use MICDET2.
  89. enum: [ 0, 0x2000 ]
  90. - description:
  91. The second cell represents the MICBIAS to be used. Zero
  92. will use MICVDD, 1-3 will use MICBIASx.
  93. minimum: 0
  94. maximum: 3
  95. - description:
  96. The third cell represents the value of the micd-pol-gpio
  97. pin.
  98. minimum: 0
  99. maximum: 1
  100. wlf,gpsw:
  101. description:
  102. Settings for the general purpose switch, set as one of the
  103. ARIZONA_GPSW_XXX defines.
  104. $ref: /schemas/types.yaml#/definitions/uint32
  105. minimum: 0
  106. maximum: 3
  107. additionalProperties: true