All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Add reset-gpios handling for max98927
@ 2021-10-07  2:38 ` Alejandro Tafalla
  0 siblings, 0 replies; 16+ messages in thread
From: Alejandro Tafalla @ 2021-10-07  2:38 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Andy Shevchenko, Péter Ujfalusi,
	~postmarketos/upstreaming, alsa-devel, linux-kernel
  Cc: devicetree, Rob Herring, Takashi Iwai, Alejandro Tafalla

The max98927 codec on some devices (i.e. Xiaomi Mi A2 Lite phone) requires
hardware-resetting the codec by driving a reset-gpio. This series adds
support for it through an optional reset-gpios property.

v4:
* Correctly assert/deassert the GPIO states
* Wait for the i2c port to be ready after reset
* Reset device when removed

v3:
* Fix indentation on the dev_err_probe line

v2:
* Use dev_err_probe instead of dev_err

Alejandro Tafalla (2):
  ASoC: max98927: Handle reset gpio when probing i2c
  dt-bindings: sound: max98927: Add reset-gpios optional property

 .../devicetree/bindings/sound/max9892x.txt    |  3 +++
 sound/soc/codecs/max98927.c                   | 25 +++++++++++++++++++
 sound/soc/codecs/max98927.h                   |  1 +
 3 files changed, 29 insertions(+)

-- 
2.33.0


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

end of thread, other threads:[~2021-10-07 21:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-07  2:38 [PATCH v4 0/2] Add reset-gpios handling for max98927 Alejandro Tafalla
2021-10-07  2:38 ` Alejandro Tafalla
2021-10-07  2:38 ` [PATCH v4 1/2] ASoC: max98927: Handle reset gpio when probing i2c Alejandro Tafalla
2021-10-07  2:38   ` Alejandro Tafalla
2021-10-07  2:38 ` [PATCH v4 2/2] dt-bindings: sound: max98927: Add reset-gpios optional property Alejandro Tafalla
2021-10-07  2:38   ` Alejandro Tafalla
2021-10-07  2:44   ` Alejandro Tafalla
2021-10-07  2:44     ` Alejandro Tafalla
2021-10-07  7:06     ` Andy Shevchenko
2021-10-07  7:06       ` Andy Shevchenko
2021-10-07  9:47       ` Alejandro Tafalla
2021-10-07  9:47         ` Alejandro Tafalla
2021-10-07 14:03   ` Mark Brown
2021-10-07 14:03     ` Mark Brown
2021-10-07 21:37 ` [PATCH v4 0/2] Add reset-gpios handling for max98927 Mark Brown
2021-10-07 21:37   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.