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