devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] tlv320adc3xxx: Allow MICBIAS pins to be used as GPOs
@ 2024-05-29 16:33 Ricard Wanderlof
  2024-05-29 16:33 ` [PATCH 1/2] ASoC: dt-bindings: tlv320adc3xxx: Add MICBIAS-as-GPO properties Ricard Wanderlof
  2024-05-29 16:33 ` [PATCH 2/2] tlv320adc3xxx: Add support for using MICBIAS pins as GPO Ricard Wanderlof
  0 siblings, 2 replies; 4+ messages in thread
From: Ricard Wanderlof @ 2024-05-29 16:33 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood, Shenghao Ding, Kevin Lu, Baojun Xu,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ricard Wanderlof,
	Jaroslav Kysela, Takashi Iwai
  Cc: alsa-devel, linux-sound, devicetree, linux-kernel,
	Ricard Wanderlof, kernel

In some cases, depending on system design, the MICBIAS pins on the
chip are not needed as such, but a couple of extra GPIO pins would be
useful. This patch allows the MICBIAS pins to be configured in the
device tree as general purpose output pins, controlled via the GPIO
framework.

Owing to their originally intended purpose there are some limitations:
when the MICBIAS pins are deactivated, they will float, so will likely
need a pulldown in many applications. When activated, they will
assume the voltage specified by the micbias1-vg and micbias2-vg
properties, respectively, meaning that the resulting output voltage
will be 2.0 V, 2.5 V or AVDD .

Signed-off-by: Ricard Wanderlof <ricard.wanderlof@axis.com>
---
Ricard Wanderlof (2):
      ASoC: dt-bindings: tlv320adc3xxx: Add MICBIAS-as-GPO properties
      tlv320adc3xxx: Add support for using MICBIAS pins as GPO

 .../bindings/sound/ti,tlv320adc3xxx.yaml           |  20 ++++
 sound/soc/codecs/tlv320adc3xxx.c                   | 105 ++++++++++++++++-----
 2 files changed, 104 insertions(+), 21 deletions(-)
---
base-commit: 47d09270d7776e46858a161f94b735640b2fb056
change-id: 20240528-tlv320adc3xxx-micbias-gpo-b8b4d1c846d3

Best regards,
-- 
-- 
Ricard Wolf Wanderlof                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-04 14:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29 16:33 [PATCH 0/2] tlv320adc3xxx: Allow MICBIAS pins to be used as GPOs Ricard Wanderlof
2024-05-29 16:33 ` [PATCH 1/2] ASoC: dt-bindings: tlv320adc3xxx: Add MICBIAS-as-GPO properties Ricard Wanderlof
2024-06-04 14:57   ` Rob Herring
2024-05-29 16:33 ` [PATCH 2/2] tlv320adc3xxx: Add support for using MICBIAS pins as GPO Ricard Wanderlof

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).