1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/extcon/wlf,arizona.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs
10 - patches@opensource.cirrus.com
13 These devices are audio SoCs with extensive digital capabilities and a
14 range of analogue I/O.
16 This document lists Extcon specific bindings, see the primary binding
17 document ../mfd/arizona.yaml
22 Headphone detection channel. ARIZONA_ACCDET_MODE_HPL/1 sets the
23 headphone detect mode to HPDETL, ARIZONA_ACCDET_MODE_HPR/2 sets it
24 to HPDETR. If this node is not included or if the value is unknown,
25 then headphone detection mode is set to HPDETL.
26 $ref: "/schemas/types.yaml#/definitions/uint32"
32 Use the additional JD input along with JD1 for dual pin jack detection.
37 Internal pull on JD2 is disabled when used for jack detection.
42 Invert the polarity of the jack detection switch.
45 wlf,micd-software-compare:
47 Use a software comparison to determine mic presence.
50 wlf,micd-detect-debounce:
52 Additional software microphone detection debounce specified in
54 $ref: "/schemas/types.yaml#/definitions/uint32"
58 GPIO specifier for the GPIO controlling the headset polarity if one
62 wlf,micd-bias-start-time:
64 Time allowed for MICBIAS to startup prior to performing microphone
65 detection, specified as per the ARIZONA_MICD_TIME_XXX defines.
66 $ref: "/schemas/types.yaml#/definitions/uint32"
72 Delay between successive microphone detection measurements, specified
73 as per the ARIZONA_MICD_TIME_XXX defines.
74 $ref: "/schemas/types.yaml#/definitions/uint32"
80 Microphone detection hardware debounces specified as the number of
82 $ref: "/schemas/types.yaml#/definitions/uint32"
87 Timeout for microphone detection, specified in milliseconds.
88 $ref: "/schemas/types.yaml#/definitions/uint32"
90 wlf,micd-force-micbias:
92 Force MICBIAS continuously on during microphone detection.
97 Headset polarity configurations (generally used for detection of
98 CTIA / OMTP headsets), the field can be of variable length but
99 should always be a multiple of 3 cells long, each three cell group
100 represents one polarity configuration.
101 $ref: "/schemas/types.yaml#/definitions/uint32-matrix"
105 The first cell defines the accessory detection pin, zero
106 will use MICDET1 and 0x2000 will use MICDET2.
109 The second cell represents the MICBIAS to be used. Zero
110 will use MICVDD, 1-3 will use MICBIASx.
114 The third cell represents the value of the micd-pol-gpio
121 Settings for the general purpose switch, set as one of the
122 ARIZONA_GPSW_XXX defines.
123 $ref: "/schemas/types.yaml#/definitions/uint32"
127 additionalProperties: true