]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: tlv320adc3xxx: Add support for using MICBIAS pins as GPO
authorRicard Wanderlof <ricard.wanderlof@axis.com>
Fri, 7 Jun 2024 15:22:05 +0000 (17:22 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 18 Jun 2024 13:21:04 +0000 (14:21 +0100)
commit6c01001414ce477311d872c40e23dfec4866d608
tree662bf7c23460d11d2c6338cca5f00a3b4d7a54ae
parent4e617f0cb2dd9675a3b2707c10d89f0f5303ad1e
ASoC: tlv320adc3xxx: Add support for using MICBIAS pins as GPO

Add boolean ti,micbias1-gpo and ti,micbias2-gpo devicetree properties.

When set, the respective MICBIAS pins can be used as general purpose
outputs controlled via the GPIO framework, in addition to the two
configurable GPIO pins.

This is useful in applications where the MICBIAS functionality is
not required, but it is useful to have a couple of extra GPIO pins.

The voltage on the respective MICBIAS pin in the active state is
governed by the ti,micbias1-vg and ti,micbias2-vg properties,
respectively (same properties as when the pins are used as
MICBIAS pins).

Signed-off-by: Ricard Wanderlof <ricard.wanderlof@axis.com>
Link: https://msgid.link/r/20240607-tlv320adc3xxx-micbias-gpo-v3-2-59dbec8b98f4@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320adc3xxx.c