[PATCH v5 0/2] Handle shared reset GPIO for WSA883x speakers

From: Mohammad Rafi Shaik
Date: Fri Aug 15 2025 - 13:25:04 EST


On some Qualcomm platforms such as QCS6490-RB3Gen2, the multiple
WSA8830/WSA8835 speakers share a common reset (shutdown) GPIO.
To handle such cases, use the reset controller framework along with the
"reset-gpio" driver.

Tested on:
- QCS6490-RB3Gen2

changes in [v5]:
- Removed multiple error logs and used proper shared reset API.
- Link to V4: https://lore.kernel.org/linux-sound/20250806181818.2817356-1-mohammad.rafi.shaik@xxxxxxxxxxxxxxxx/

changes in [v4]:
- Dropped v3-0002 patch, which is not required.
Fixed with proper error handling for failure cases.
- Link to V3: https://lore.kernel.org/linux-arm-msm/20250727083117.2415725-1-mohammad.rafi.shaik@xxxxxxxxxxxxxxxx/

changes in [v3]:
- Created separate patch for devm action to safely disable
regulator.
- cleanup the v2-0002 patch.
- Link to V2: https://lore.kernel.org/linux-sound/20250718104628.3732645-1-mohammad.rafi.shaik@xxxxxxxxxxxxxxxx/

changes in [v2]:
- Addressed the review comments from Krzysztof, Dmitry, Philipp.
- Used devm_reset_control_get_optional_shared_deasserted() api.
- created deasserts/asserts functions to handle reset gpios.
- Register devm action to safely disable the regulator on device removal.
- Link to V1: https://lore.kernel.org/linux-sound/20250620103012.360794-1-mohammad.rafi.shaik@xxxxxxxxxxxxxxxx/

Mohammad Rafi Shaik (2):
ASoC: dt-bindings: qcom,wsa8830: Add reset-gpios for shared line
ASoC: codecs: wsa883x: Handle shared reset GPIO for WSA883x speakers

.../bindings/sound/qcom,wsa883x.yaml | 11 +++-
sound/soc/codecs/wsa883x.c | 57 ++++++++++++++++---
2 files changed, 59 insertions(+), 9 deletions(-)


base-commit: 1357b2649c026b51353c84ddd32bc963e8999603
--
2.34.1