]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: qcom: sc7280-idp: Configure CTS pin to bias-bus-hold for bluetooth
authorVijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Thu, 21 Apr 2022 15:56:06 +0000 (21:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:29:50 +0000 (10:29 +0200)
[ Upstream commit 497b272759986af1aa5a25b5e903d082c67bd8f6 ]

WLAN rail was leaking power during RBSC/sleep even after turning BT off.
Change active and sleep pinctrl configurations to handle same.

Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1650556567-4995-2-git-send-email-quic_vnivarth@quicinc.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/qcom/sc7280-idp.dtsi

index ecbf2b89d8963198eb7faf3d184c57e77e0c0d7c..5ab3696af354886a5b6f6d19d9d8ea014dce77ae 100644 (file)
 
 &qup_uart7_cts {
        /*
-        * Configure a pull-down on CTS to match the pull of
-        * the Bluetooth module.
+        * Configure a bias-bus-hold on CTS to lower power
+        * usage when Bluetooth is turned off. Bus hold will
+        * maintain a low power state regardless of whether
+        * the Bluetooth module drives the pin in either
+        * direction or leaves the pin fully unpowered.
         */
-       bias-pull-down;
+       bias-bus-hold;
 };
 
 &qup_uart7_rts {
                pins = "gpio28";
                function = "gpio";
                /*
-                * Configure a pull-down on CTS to match the pull of
-                * the Bluetooth module.
+                * Configure a bias-bus-hold on CTS to lower power
+                * usage when Bluetooth is turned off. Bus hold will
+                * maintain a low power state regardless of whether
+                * the Bluetooth module drives the pin in either
+                * direction or leaves the pin fully unpowered.
                 */
-               bias-pull-down;
+               bias-bus-hold;
        };
 
        qup_uart7_sleep_rts: qup-uart7-sleep-rts {