Skip to content

Commit

Permalink
ASoC: dt-bindings: qcom,wsa8840: Add reset-gpios for shared line
Browse files Browse the repository at this point in the history
On newer Qualcomm platforms, like X1E80100-CRD, the WSA884x speakers
share SD_N GPIOs between two speakers, thus a coordinated assertion is
needed.  Linux supports handling shared GPIO lines through "reset-gpios"
property, thus allow specifying either powerdown or reset GPIOs (these
are the same).

Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Sean Anderson <sean.anderson@seco.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240129115216.96479-6-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Krzysztof Kozlowski authored and Mark Brown committed Feb 21, 2024
1 parent b96ccdc commit 26c8a43
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ properties:
description: Powerdown/Shutdown line to use (pin SD_N)
maxItems: 1

reset-gpios:
description: Powerdown/Shutdown line to use (pin SD_N)
maxItems: 1

'#sound-dai-cells':
const: 0

Expand All @@ -37,11 +41,16 @@ properties:
required:
- compatible
- reg
- powerdown-gpios
- '#sound-dai-cells'
- vdd-1p8-supply
- vdd-io-supply

oneOf:
- required:
- powerdown-gpios
- required:
- reset-gpios

unevaluatedProperties: false

examples:
Expand Down

0 comments on commit 26c8a43

Please sign in to comment.