2021-08-30 10:50:38

by Alejandro Tafalla

[permalink] [raw]
Subject: [PATCH v2 0/2] Add reset-gpios handling for max98927

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


2021-08-30 10:52:37

by Alejandro Tafalla

[permalink] [raw]
Subject: [PATCH v2 2/2] dt-bindings: sound: max98927: Add reset-gpios optional property

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

2021-09-01 01:38:14

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH v2 2/2] dt-bindings: sound: max98927: Add reset-gpios optional property

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]>