]> www.infradead.org Git - users/willy/xarray.git/commitdiff
ASoC: dt-bindings: qcom,wcd938x: Correct reset GPIO polarity in example
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 6 Aug 2024 11:49:30 +0000 (13:49 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 8 Aug 2024 19:34:52 +0000 (20:34 +0100)
The reset GPIO of WCD9380/WCD9385 is active low and that's how it is
routed on typical boards, so correct the example DTS to use expected
polarity.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240806114931.40090-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml

index cf6c3787adfeff846a13391775fa188c15d17e33..10531350c3362788d1943100808ff9cf7d7036cc 100644 (file)
@@ -34,9 +34,10 @@ unevaluatedProperties: false
 
 examples:
   - |
+    #include <dt-bindings/gpio/gpio.h>
     codec {
         compatible = "qcom,wcd9380-codec";
-        reset-gpios = <&tlmm 32 0>;
+        reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
         #sound-dai-cells = <1>;
         qcom,tx-device = <&wcd938x_tx>;
         qcom,rx-device = <&wcd938x_rx>;