The max98927 codec on some devices (i.e. Xiaomi Mi A2 Lite phone) require
hardware-resetting the codec by driving a reset-gpio. This series add
support for it through an optional reset-gpios property.
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 | 15 +++++++++++++++
2 files changed, 18 insertions(+)
--
2.32.0
Drive the reset gpio if defined in the DTS node.
Signed-off-by: Alejandro Tafalla <redacted>
---
sound/soc/codecs/max98927.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
Add the reset-gpios as an optional property because some devices might
not need it to work properly.
Signed-off-by: Alejandro Tafalla <redacted>
---
Documentation/devicetree/bindings/sound/max9892x.txt | 3 +++
1 file changed, 3 insertions(+)
@@ -30,6 +30,9 @@ Required properties: - reg : the I2C address of the device for I2C+Optional properties:+ - reset-gpios : GPIO to reset the device+ Example: codec: max98927@3a {
From: Rob Herring <robh@kernel.org> Date: 2021-09-01 01:32:32
On Mon, 30 Aug 2021 12:44:24 +0200, Alejandro Tafalla wrote:
Add the reset-gpios as an optional property because some devices might
not need it to work properly.
Signed-off-by: Alejandro Tafalla <redacted>
---
Documentation/devicetree/bindings/sound/max9892x.txt | 3 +++
1 file changed, 3 insertions(+)