Merge series "Add reset-gpios handling for max98927" from Alejandro Tafalla <atafalla...
authorMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 21:24:59 +0000 (22:24 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 21:24:59 +0000 (22:24 +0100)
commit06a0fc36a5292ad35ee5768be110b5453a639c1d
tree751a1312ab5fca8678f4fb6d336c22a1e6f8ceed
parent99f11b6552fa36da107a6a92773a11109107b686
parentb23d3189c038c091adc8de382d20a8f5321645a1
Merge series "Add reset-gpios handling for max98927" from Alejandro Tafalla <atafalla@dnyon.com>:

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