[PATCH v2 0/2] Handle shared reset GPIO for WSA883x speakers
From: Mohammad Rafi Shaik
Date: Fri Jul 18 2025 - 06:47:25 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 [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 | 93 ++++++++++++++-----
2 files changed, 81 insertions(+), 23 deletions(-)
base-commit: e8352908bdcd2d0bcf0aca8c69fae85fd5ea5edb
--
2.34.1