Skip to content

Commit 79c46a0

Browse files
committed
FROMLIST: arm64: dts: qcom: hamoa-iot-evk: support Bluetooth over both USB and UART
When Bluetooth supports both USB and UART, the BT UART driver is always loaded, while USB is hot-pluggable. As a result, when Bluetooth is used over USB, the UART driver still be probed and drive BT_EN low, which causes the Bluetooth device on USB to be disconnected. Configure BT_EN as a GPIO hog so that it is controlled by the platform instead of the UART driver, preventing BT over USB from being unintentionally powered down. Link: https://lore.kernel.org/all/20260311090921.1892191-1-shuai.zhang@oss.qualcomm.com/ Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
1 parent 06f8ab9 commit 79c46a0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -620,10 +620,9 @@
620620
vddrfa1p2-supply = <&vreg_wcn_1p9>;
621621
vddrfa1p8-supply = <&vreg_wcn_1p9>;
622622

623-
bt-enable-gpios = <&tlmm 116 GPIO_ACTIVE_HIGH>;
624623
wlan-enable-gpios = <&tlmm 117 GPIO_ACTIVE_HIGH>;
625624

626-
pinctrl-0 = <&wcn_bt_en>, <&wcn_wlan_en>;
625+
pinctrl-0 = <&wcn_wlan_en>;
627626
pinctrl-names = "default";
628627

629628
regulators {
@@ -1315,11 +1314,12 @@
13151314
output-low;
13161315
};
13171316

1318-
wcn_bt_en: wcn-bt-en-state {
1319-
pins = "gpio116";
1320-
function = "gpio";
1321-
drive-strength = <2>;
1322-
bias-disable;
1317+
wcn_bt_en_hog: wcn-bt-en-state-hog {
1318+
gpio-hog;
1319+
gpios = <116 GPIO_ACTIVE_HIGH>;
1320+
output-high;
1321+
input-disable;
1322+
line-name = "BT_EN";
13231323
};
13241324

13251325
wcn_wlan_en: wcn-wlan-en-state {

0 commit comments

Comments
 (0)