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
Add the reset-gpios as an optional property because some devices might
not need it to work properly.
Signed-off-by: Alejandro Tafalla <[email protected]>
---
Documentation/devicetree/bindings/sound/max9892x.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/max9892x.txt b/Documentation/devicetree/bindings/sound/max9892x.txt
index f6171591ddc6..98cb9ba5b328 100644
--- a/Documentation/devicetree/bindings/sound/max9892x.txt
+++ b/Documentation/devicetree/bindings/sound/max9892x.txt
@@ -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 {
--
2.32.0
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 <[email protected]>
> ---
> Documentation/devicetree/bindings/sound/max9892x.txt | 3 +++
> 1 file changed, 3 insertions(+)
>
Acked-by: Rob Herring <[email protected]>