QCLINUX: arm64: dts: qcom: hamoa-iot-evk: support Bluetooth over both USB and UART#806
Open
shuaz-shuai wants to merge 1 commit intoqualcomm-linux:tech/all/dt/hamoafrom
Open
Conversation
… USB and UART On Hamoa boards, a single M.2 slot may host either a UART‑based or a USB‑based Bluetooth device, so the UART controller node is always present in DT while the USB path is hot‑pluggable. When Bluetooth operates over USB, the presence of the UART DT node still causes the hci_qca UART driver to probe, and during probe or power sequencing it may deassert BT_EN, cutting power to the shared Bluetooth device and disconnecting the USB interface. Model BT_EN as an always‑on fixed regulator so it cannot be toggled by the UART probe. This prevents the UART driver from interfering with Bluetooth operation when the device is connected over USB. Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Hamoa boards, a single M.2 slot may host either a UART‑based or a USB‑based Bluetooth device, so the UART controller node is always present in DT while the USB path is hot‑pluggable. When Bluetooth operates over USB, the presence of the UART DT node still causes the hci_qca UART driver to probe, and during probe or power sequencing it may deassert BT_EN, cutting power to the shared Bluetooth device and disconnecting the USB interface.
Model BT_EN as an always‑on fixed regulator so it cannot be toggled by the UART probe. This prevents the UART driver from interfering with Bluetooth operation when the device is connected over USB.
Without this change, Bluetooth over USB does not work.
This is a temporary workaround. Once a proper M.2 binding or solution is upstreamed, both the DTS and driver changes will be reworked and re-submitted according to the M.2 model.
CRs-Fixed: 4464912