Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: dt-bindings: tlv320adc3xxx: Add MICBIAS-as-GPO properties

Add properties for configuring the MICBIAS pins as general purpose
outputs, with some limitations: The voltage on the pin when activated
may be set using another property to 2.0 V, 2.5 V or AVDD.
When deactivated the pin will float.

Signed-off-by: Ricard Wanderlof <ricard.wanderlof@axis.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240607-tlv320adc3xxx-micbias-gpo-v3-1-59dbec8b98f4@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Ricard Wanderlof and committed by
Mark Brown
4e617f0c 195815c2

+24
+24
Documentation/devicetree/bindings/sound/ti,tlv320adc3xxx.yaml
··· 82 82 Note that there is currently no support for reading the GPIO pins as 83 83 inputs. 84 84 85 + ti,micbias1-gpo: 86 + type: boolean 87 + description: | 88 + When set, the MICBIAS1 pin may be controlled via the GPIO framework, 89 + as pin number 3 on the device. 90 + 91 + In this mode, when the pin is activated, it will be set to the voltage 92 + specified by the ti,micbias1-vg property. When deactivated, the pin will 93 + float. 94 + 95 + ti,micbias2-gpo: 96 + type: boolean 97 + description: | 98 + When set, the MICBIAS2 pin may be controlled via the GPIO framework, 99 + as pin number 4 on the device. 100 + 101 + In this mode, when the pin is activated, it will be set to the voltage 102 + specified by the ti,micbias2-vg property. When deactivated, the pin will 103 + float. 104 + 85 105 ti,micbias1-vg: 86 106 $ref: /schemas/types.yaml#/definitions/uint32 87 107 enum: ··· 123 103 default: 0 124 104 description: | 125 105 Mic bias voltage output on MICBIAS2 pin 106 + 107 + dependencies: 108 + ti,micbias1-gpo: ['ti,micbias1-vg'] 109 + ti,micbias2-gpo: ['ti,micbias2-vg'] 126 110 127 111 required: 128 112 - compatible