127 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/extcon/wlf,arizona.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs8 9maintainers:10 - patches@opensource.cirrus.com11 12description: |13 These devices are audio SoCs with extensive digital capabilities and a14 range of analogue I/O.15 16 This document lists Extcon specific bindings, see the primary binding17 document ../mfd/arizona.yaml18 19properties:20 wlf,hpdet-channel:21 description:22 Headphone detection channel. ARIZONA_ACCDET_MODE_HPL/1 sets the23 headphone detect mode to HPDETL, ARIZONA_ACCDET_MODE_HPR/2 sets it24 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/uint3227 minimum: 128 maximum: 229 30 wlf,use-jd2:31 description:32 Use the additional JD input along with JD1 for dual pin jack detection.33 type: boolean34 35 wlf,use-jd2-nopull:36 description:37 Internal pull on JD2 is disabled when used for jack detection.38 type: boolean39 40 wlf,jd-invert:41 description:42 Invert the polarity of the jack detection switch.43 type: boolean44 45 wlf,micd-software-compare:46 description:47 Use a software comparison to determine mic presence.48 type: boolean49 50 wlf,micd-detect-debounce:51 description:52 Additional software microphone detection debounce specified in53 milliseconds.54 $ref: /schemas/types.yaml#/definitions/uint3255 56 wlf,micd-pol-gpio:57 description:58 GPIO specifier for the GPIO controlling the headset polarity if one59 exists.60 maxItems: 161 62 wlf,micd-bias-start-time:63 description:64 Time allowed for MICBIAS to startup prior to performing microphone65 detection, specified as per the ARIZONA_MICD_TIME_XXX defines.66 $ref: /schemas/types.yaml#/definitions/uint3267 minimum: 068 maximum: 1269 70 wlf,micd-rate:71 description:72 Delay between successive microphone detection measurements, specified73 as per the ARIZONA_MICD_TIME_XXX defines.74 $ref: /schemas/types.yaml#/definitions/uint3275 minimum: 076 maximum: 1277 78 wlf,micd-dbtime:79 description:80 Microphone detection hardware debounces specified as the number of81 measurements to take.82 $ref: /schemas/types.yaml#/definitions/uint3283 enum: [2, 4]84 85 wlf,micd-timeout-ms:86 description:87 Timeout for microphone detection, specified in milliseconds.88 89 wlf,micd-force-micbias:90 description:91 Force MICBIAS continuously on during microphone detection.92 type: boolean93 94 wlf,micd-configs:95 description:96 Headset polarity configurations (generally used for detection of97 CTIA / OMTP headsets), the field can be of variable length but98 should always be a multiple of 3 cells long, each three cell group99 represents one polarity configuration.100 $ref: /schemas/types.yaml#/definitions/uint32-matrix101 items:102 items:103 - description:104 The first cell defines the accessory detection pin, zero105 will use MICDET1 and 0x2000 will use MICDET2.106 enum: [ 0, 0x2000 ]107 - description:108 The second cell represents the MICBIAS to be used. Zero109 will use MICVDD, 1-3 will use MICBIASx.110 minimum: 0111 maximum: 3112 - description:113 The third cell represents the value of the micd-pol-gpio114 pin.115 minimum: 0116 maximum: 1117 118 wlf,gpsw:119 description:120 Settings for the general purpose switch, set as one of the121 ARIZONA_GPSW_XXX defines.122 $ref: /schemas/types.yaml#/definitions/uint32123 minimum: 0124 maximum: 3125 126additionalProperties: true127