Skip to content

[v5.10] btmtksdio: get bdaddr from dts when available

Some boards we have comes with MT7663 with blank efuses, which means no BD address are programmed. The Bluetooth stack is not able to handle a invalid BD address.

On MT7668 we were able to program the efuses but we are not (yet?) able to on MT7663 so we need a backup solution in order to have a bluetooth functional.

This MR is adding the ability to set a MAC address via the device-tree. U-Boot will patch the device-tree based on its eth(X)addr variable.

The MAC address from the device-tree has the highest priority, but is optional.

This was tested on:

  • i350-sb35
  • i500-pumpkin
  • i300a-pumpkin

The test consisted in checking whether each board is using the correct MAC address using hciconfig.

Edited by Fabien Parent

Merge request reports