Skip to content

fix: add RB1 Bluetooth DT and firmware detection support#412

Merged
bhargav0610 merged 2 commits intoqualcomm-linux:mainfrom
smuppand:Bluetooth-fix
Apr 20, 2026
Merged

fix: add RB1 Bluetooth DT and firmware detection support#412
bhargav0610 merged 2 commits intoqualcomm-linux:mainfrom
smuppand:Bluetooth-fix

Conversation

@smuppand
Copy link
Copy Markdown
Contributor

@smuppand smuppand commented Apr 20, 2026

This update fixes BT_FW_KMD_Service on RB1 by aligning the testcase with RB1 Bluetooth DT and firmware naming.

Changes included:

  • add qcom,wcn3950-bt to the DT compatible allowlist in BT_FW_KMD_Service/run.sh
  • extend btfwpresent() in lib_bluetooth.sh to detect legacy QCA Bluetooth firmware files such as cmbtfw*.tlv and cmnv*.bin
  • make firmware presence detection robust by checking patterns individually instead of relying on a single multi-glob ls call

Why:

  • RB1 exposes Bluetooth as qcom,wcn3950-bt in device tree
  • RB1 firmware uses legacy QCA naming under /lib/firmware/qca
  • the previous logic missed both cases, causing false DT failure and firmware warning even though Bluetooth runtime was healthy

Validation:

  • RB1 now reports DT node/compatible

Sample reference lava job - https://lava.infra.foundries.io/scheduler/job/183627

Update btfwpresent() to detect legacy QCA Bluetooth firmware files such
as cmbtfw*.tlv and cmnv*.bin in addition to the existing msbtfw*/msnv*
patterns.

Also avoid the previous multi-glob ls behavior that could return failure
when some patterns were absent even though valid firmware files were
present. This makes firmware presence detection robust on RB1 and other
targets using older QCA naming/layouts.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Extend the DT compatible allowlist in BT_FW_KMD_Service to include
qcom,wcn3950-bt so RB1 platforms are recognized correctly during the
device-tree validation step.

This aligns the testcase with RB1 Bluetooth DT naming while keeping the
existing flow unchanged for other supported targets.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@bhargav0610 bhargav0610 merged commit 19c91a7 into qualcomm-linux:main Apr 20, 2026
12 checks passed
@mwasilew
Copy link
Copy Markdown
Contributor

Did you try to run this code on the device?

@bhargav0610
Copy link
Copy Markdown
Contributor

Did you try to run this code on the device?

yes we validated locally and its working fine and also pls find the job details where the test case is passing

https://lava.infra.foundries.io/scheduler/job/183633
https://lava.infra.foundries.io/scheduler/job/183637
https://lava.infra.foundries.io/scheduler/job/183640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants