Path: blob/master/Documentation/devicetree/bindings/extcon/wlf,arizona.yaml
26308 views
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause1%YAML 1.22---3$id: http://devicetree.org/schemas/extcon/wlf,arizona.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs78maintainers:9- patches@opensource.cirrus.com1011description: |12These devices are audio SoCs with extensive digital capabilities and a13range of analogue I/O.1415This document lists Extcon specific bindings, see the primary binding16document ../mfd/arizona.yaml1718properties:19wlf,hpdet-channel:20description:21Headphone detection channel. ARIZONA_ACCDET_MODE_HPL/1 sets the22headphone detect mode to HPDETL, ARIZONA_ACCDET_MODE_HPR/2 sets it23to HPDETR. If this node is not included or if the value is unknown,24then headphone detection mode is set to HPDETL.25$ref: /schemas/types.yaml#/definitions/uint3226minimum: 127maximum: 22829wlf,use-jd2:30description:31Use the additional JD input along with JD1 for dual pin jack detection.32type: boolean3334wlf,use-jd2-nopull:35description:36Internal pull on JD2 is disabled when used for jack detection.37type: boolean3839wlf,jd-invert:40description:41Invert the polarity of the jack detection switch.42type: boolean4344wlf,micd-software-compare:45description:46Use a software comparison to determine mic presence.47type: boolean4849wlf,micd-detect-debounce:50description:51Additional software microphone detection debounce specified in52milliseconds.53$ref: /schemas/types.yaml#/definitions/uint325455wlf,micd-pol-gpio:56description:57GPIO specifier for the GPIO controlling the headset polarity if one58exists.59maxItems: 16061wlf,micd-bias-start-time:62description:63Time allowed for MICBIAS to startup prior to performing microphone64detection, specified as per the ARIZONA_MICD_TIME_XXX defines.65$ref: /schemas/types.yaml#/definitions/uint3266minimum: 067maximum: 126869wlf,micd-rate:70description:71Delay between successive microphone detection measurements, specified72as per the ARIZONA_MICD_TIME_XXX defines.73$ref: /schemas/types.yaml#/definitions/uint3274minimum: 075maximum: 127677wlf,micd-dbtime:78description:79Microphone detection hardware debounces specified as the number of80measurements to take.81$ref: /schemas/types.yaml#/definitions/uint3282enum: [2, 4]8384wlf,micd-timeout-ms:85description:86Timeout for microphone detection, specified in milliseconds.8788wlf,micd-force-micbias:89description:90Force MICBIAS continuously on during microphone detection.91type: boolean9293wlf,micd-configs:94description:95Headset polarity configurations (generally used for detection of96CTIA / OMTP headsets), the field can be of variable length but97should always be a multiple of 3 cells long, each three cell group98represents one polarity configuration.99$ref: /schemas/types.yaml#/definitions/uint32-matrix100items:101items:102- description:103The first cell defines the accessory detection pin, zero104will use MICDET1 and 0x2000 will use MICDET2.105enum: [ 0, 0x2000 ]106- description:107The second cell represents the MICBIAS to be used. Zero108will use MICVDD, 1-3 will use MICBIASx.109minimum: 0110maximum: 3111- description:112The third cell represents the value of the micd-pol-gpio113pin.114minimum: 0115maximum: 1116117wlf,gpsw:118description:119Settings for the general purpose switch, set as one of the120ARIZONA_GPSW_XXX defines.121$ref: /schemas/types.yaml#/definitions/uint32122minimum: 0123maximum: 3124125additionalProperties: true126127128