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