Skip to content

BT_FW_KMD_Service: DT node/compatible check fails for M.2 E-key connector boards (Hamoa, Purwa, lemans-evk) #533

Description

Problem

`BT_FW_KMD_Service` fails on M.2 Key E connector boards with the
M.2 pwrseq support enabled.

The test script checks for static DT compatible strings:

```sh
dt_confirm_node_or_compatible_all
"qcom,wcn3950-bt"
"qcom,wcn7850-bt"
"qcom,wcn6855-bt"
"qcom,wcn6750-bt"
"qcom,bluetooth"
```

On M.2 boards the BT device is dynamically created at runtime by the
`pwrseq-pcie-m2` driver — there is no static `qcom,wcn*-bt` node in the
device tree. The DT only has a `pcie-m2-e-connector` node.

As a result the check logs:

```
[FAIL] DT node/compatible for BT NOT found.
```

even though BT is fully functional:

```
hci0: Type: Primary Bus: UART
BD Address: ... ACL MTU: 1024:7 SCO MTU: 240:8
UP RUNNING
```

Affected platforms(use m.2 solution)

Platform Status
Hamoa IoT EVK (IQ-X7181) Enabled in qualcomm-linux/kernel#940
Purwa IoT EVK Enabled in qualcomm-linux/kernel#940
lemans-evk (SA8775P / RB8)
monaco-evk (QCS8300 / RB4)

Expected behaviour

The test should pass when BT is operational (hci0 UP RUNNING, HCI present,
firmware loaded), regardless of whether the BT device was described
statically in DT or created dynamically via the M.2 pwrseq driver.

Suggested fix

In `Runner/suites/Connectivity/Bluetooth/BT_FW_KMD_Service/run.sh`,
update the DT check to either:

  1. Also accept `pcie-m2-e-connector` as a valid indicator that a BT
    device may be dynamically present on M.2 boards, or
  2. Treat this check as a WARN (not FAIL) when HCI is already present
    (`/sys/class/bluetooth/hci*` exists and is UP) — HCI presence is
    stronger evidence that BT is working than a static DT node lookup.

References

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions