Bluetooth: QCA_BTUART: Separate firmware between WCN6855 and QCA2066
Hi linux-firmware maintainers
Here's a pull request for QCA bluetooth driver. Please let me know if you have any problems.
The following changes since commit bfc84303530a1cdd603fc40aa25b4452f10870dc:
Merge branch 'mt7925' into 'main' (2025-10-29 11:21:38 +0000)
are available in the git repository at:
https://github.com/zijun-hu/qca_btfw move_qca2066
for you to fetch changes up to 45b3867b446ec97326ab4d5a5cc81c9f811132dd:
Bluetooth: QCA_BTUART: Separate firmware between WCN6855 and QCA2066 (2025-10-30 18:21:04 +0800)
----------------------------------------------------------------
Zijun Hu (1):
Bluetooth: QCA_BTUART: Separate firmware between WCN6855 and QCA2066
Quoted 10 lines · Zijun Hu
Hi linux-firmware maintainers
Here's a pull request for QCA bluetooth driver. Please let me know if you have any problems.
The following changes since commit
bfc84303530a1cdd603fc40aa25b4452f10870dc:Merge branch 'mt7925' into 'main' (2025-10-29 11:21:38 +0000)
Quoted 7 lines
are available in the git repository at:
https://github.com/zijun-hu/qca_btfw
move_qca2066for you to fetch changes up to
45b3867b446ec97326ab4d5a5cc81c9f811132dd:Bluetooth:
QCA_BTUART: Separate firmware between WCN6855 and QCA2066 (2025-10-30 18:21:04 +0800)
From the commit message:
Quoted 1 line
WCN6855 and QCA2066 currently share firmware in folder qca/, but this firmware sharing will be broken by WCN6855's firmware to up-stream. Fix by separating firmware as following: - Copy firmware used by QCA2066 from qca/ to qca/QCA2066/. - WCN6855 still use current folder qca/ for its firmware.
What about existing QCA2066 devices which might get a new firmware, but not the updated kernel / DT?
Signature · 2 lines
With best wishes Dmitry
Quoted 17 lines · Dmitry Baryshkov
Quoted 16 lines · Zijun Hu
Hi linux-firmware maintainers
Here's a pull request for QCA bluetooth driver. Please let me know if you have any problems.
The following changes since commit
bfc84303530a1cdd603fc40aa25b4452f10870dc:Merge branch 'mt7925' into 'main' (2025-10-29 11:21:38 +0000)
are available in the git repository at:
https://github.com/zijun-hu/qca_btfw
move_qca2066for you to fetch changes up to
45b3867b446ec97326ab4d5a5cc81c9f811132dd:
Quoted 9 lines
Quoted 1 line
Bluetooth:
QCA_BTUART: Separate firmware between WCN6855 and QCA2066 (2025-10-30 18:21:04 +0800)From the commit message:
Quoted 1 line
WCN6855 and QCA2066 currently share firmware in folder qca/, but this firmware sharing will be broken by WCN6855's firmware to up-stream. Fix by separating firmware as following: - Copy firmware used by QCA2066 from qca/ to qca/QCA2066/. - WCN6855 still use current folder qca/ for its firmware.
What about existing QCA2066 devices which might get a new firmware, but not the updated kernel / DT?
Customer did not up-stream QCA2066 DTS and also not specified firmware path in their down-stream DT blueooth node.
Will change QCA bluetooth driver to change the default directory to download QCA2066 firmware from qca/ to qca/QCA2066.
Will do above change after next linux-firmware release containing this change.
thank you for change review.
Quoted 29 lines · Zijun Hu
Quoted 17 lines · Dmitry Baryshkov
Quoted 16 lines · Zijun Hu
Hi linux-firmware maintainers
Here's a pull request for QCA bluetooth driver. Please let me know if you have any problems.
The following changes since commit
bfc84303530a1cdd603fc40aa25b4452f10870dc:Merge branch 'mt7925' into 'main' (2025-10-29 11:21:38 +0000)
are available in the git repository at:
https://github.com/zijun-hu/qca_btfw
move_qca2066for you to fetch changes up to
45b3867b446ec97326ab4d5a5cc81c9f811132dd:Quoted 9 lines
Quoted 1 line
Bluetooth:
QCA_BTUART: Separate firmware between WCN6855 and QCA2066 (2025-10-30 18:21:04 +0800)From the commit message:
Quoted 1 line
WCN6855 and QCA2066 currently share firmware in folder qca/, but this firmware sharing will be broken by WCN6855's firmware to up-stream. Fix by separating firmware as following: - Copy firmware used by QCA2066 from qca/ to qca/QCA2066/. - WCN6855 still use current folder qca/ for its firmware.
What about existing QCA2066 devices which might get a new firmware, but not the updated kernel / DT?
Quoted 5 lines
Customer did not up-stream QCA2066 DTS and also not specified firmware path in their down-stream DT blueooth node.
Will change QCA bluetooth driver to change the default directory to download QCA2066 firmware from qca/ to qca/QCA2066.
I'm sorry, it doesn't work that way. People might be using linux-fimrware even without upstreaming DT. If existing firmware worked for QCA2066 and WCN6855, then the firmware with the same path must continue to work in future. If you are adding new firmware which breaks this compatibility, then _it_ should go to some other place or use a different filename, not the other way around. The driver should also be able to fallback from the "new" location to the old one.
Quoted 4 lines
Will do above change after next linux-firmware release containing this change.
thank you for change review.
Signature · 2 lines
With best wishes Dmitry
Quoted 5 lines · Dmitry Baryshkov
Quoted 5 lines
Customer did not up-stream QCA2066 DTS and also not specified firmware path in their down-stream DT blueooth node.
Will change QCA bluetooth driver to change the default directory to download QCA2066 firmware from qca/ to qca/QCA2066.
Quoted 8 lines
I'm sorry, it doesn't work that way. People might be using linux-fimrware even without upstreaming DT. If existing firmware worked for QCA2066 and WCN6855, then the firmware with the same path must continue to work in future. If you are adding new firmware which breaks this compatibility, then _it_ should go to some other place or use a different filename, not the other way around. The driver should also be able to fallback from the "new" location to the old one.
got it, thank you.
Quoted 3 lines
Quoted 3 lines
Will do above change after next linux-firmware release containing this change.
thank you for change review.
Quoted 5 lines · Dmitry Baryshkov
Quoted 5 lines
Customer did not up-stream QCA2066 DTS and also not specified firmware path in their down-stream DT blueooth node.
Will change QCA bluetooth driver to change the default directory to download QCA2066 firmware from qca/ to qca/QCA2066.
Quoted 7 lines
I'm sorry, it doesn't work that way. People might be using linux-fimrware even without upstreaming DT. If existing firmware worked for QCA2066 and WCN6855, then the firmware with the same path must continue to work in future. If you are adding new firmware which breaks this compatibility, then _it_ should go to some other place or use a different filename, not the other way around. The driver should also be able to fallback from the "new" location to the old one.
We still want to convince you for this solution based on discussion internally.
Background:
WCN6855 and QCA2066 share the same BT firmware files qca/hpbtfw21.tlv qca/hpnv21* currently, as they are different chips and have different feature set, in future we want to upstream firmware for WCN6855 in qca/ and use qca/QCA2066 for QCA2066.
Solution:
1. Copy BT firmware files used by QCA2066 from qca/ to qca/QCA2066/, QCA2066 will use qca/QCA2066/ as it's firmware folder. we will up-stream firmware to this folder qca/QCA2066/ for QCA2066 if there are new firmware to upgrade.
2. WCN6855 still uses current folder qca/. we will up-stream firmware to this folder qca/ for WCN6855 if there are new firmware to upgrade.
3. Change QCA driver to change QCA2066's default firmware folder from qca/ to qca/QCA2066.
Risk:
For QCA2066, there are no up-streamed DTS currently, customers we known does not specify firmware path in their down-stream bluetooth DTS node. For this solution, customer don't need to do anything and have no risk for them. and they still download same firmware as before.
The only scenario this solution impact is that current default QCA2066 firmware path qca/ is specified in their down-stream bluetooth DTS node. this scenario should be very *Rare* because current default path is qca/ already and they should not specify this default patch qca/ in their down-stream bluetooth DTS node again.
Quoted 35 lines · Zijun Hu
Quoted 5 lines · Dmitry Baryshkov
Quoted 5 lines
Customer did not up-stream QCA2066 DTS and also not specified firmware path in their down-stream DT blueooth node.
Will change QCA bluetooth driver to change the default directory to download QCA2066 firmware from qca/ to qca/QCA2066.
Quoted 7 lines
I'm sorry, it doesn't work that way. People might be using linux-fimrware even without upstreaming DT. If existing firmware worked for QCA2066 and WCN6855, then the firmware with the same path must continue to work in future. If you are adding new firmware which breaks this compatibility, then _it_ should go to some other place or use a different filename, not the other way around. The driver should also be able to fallback from the "new" location to the old one.
We still want to convince you for this solution based on discussion internally.
Background:
WCN6855 and QCA2066 share the same BT firmware files qca/hpbtfw21.tlv qca/hpnv21* currently, as they are different chips and have different feature set, in future we want to upstream firmware for WCN6855 in qca/ and use qca/QCA2066 for QCA2066.Solution:
1. Copy BT firmware files used by QCA2066 from qca/ to qca/QCA2066/, QCA2066 will use qca/QCA2066/ as it's firmware folder. we will up-stream firmware to this folder qca/QCA2066/ for QCA2066 if there are new firmware to upgrade.
2. WCN6855 still uses current folder qca/. we will up-stream firmware to this folder qca/ for WCN6855 if there are new firmware to upgrade.
3. Change QCA driver to change QCA2066's default firmware folder from qca/ to qca/QCA2066.Risk:
For QCA2066, there are no up-streamed DTS currently, customers we known does not specify firmware path in their down-stream bluetooth DTS node. For this solution, customer don't need to do anything and have no risk for them. and they still download same firmware as before.
Quoted 4 lines
The only scenario this solution impact is that current default QCA2066 firmware path qca/ is specified in their down-stream bluetooth DTS node. this scenario should be very *Rare* because current default path is qca/ already and they should not specify this default patch qca/ in their down-stream bluetooth DTS node again.
First of all. We all are bound by the backwards compatibility. Newer kernels work with older DTs. Newer userspace works with older kernels. Newer kernels work with older userspace. Etc. As a part of linux-firmware we try to ensure that by providing backwards compatibility and relevant symlinks where possible and sensible.
As such, running older kernel with the newer linux-firmware on the hardware equipped with QCA2066 is expcted to continue to work. Yes, this is against your customs, but there is no SP, no customers, no service releases in that phrase. I didn't even mention the DT.
As such, the list of possible solutions in (my) order or preference:
- Rename firmware used for WCN6855. Use qca/wwbtfwNN.tlv and qca/wwnvNN.bin. Use any other prefix instead of ww. Then update the driver, taking a look for qca/ww firmware and if it doesn't exist, and fall back to loading hpbtfw if newer one isn't there.
This way all existing devices will continue to work with the existing firmware files. Older kernels will use old firmware files which are still compatible with both QCA2066 and WCN6855 devices.
- Add new version of WCN6855 firmware under qca/WCN6855/ subdir (why? Subdirs up to now were used for firmware files for the same chips with different RF parts). Then update the driver, taking a look for qca/ww firmware and if it doesn't exist, and fall back to loading hpbtfw if newer one isn't there.
This way all existing devices will continue to work with the existing firmware files. Older kernels will use old firmware files which are still compatible with both QCA2066 and WCN6855 devices.
Compare this to your solution:
- Move QCA2066 firmware to the new location. This requires updating of the existing kernels to follow the new path. It can be done as a DT modification (less preferred) or as a driver modification (more preferred). Anyway, using the old kernel with new linux-firmware will be broken on QCA2066-equipped devices.
After doing this analysys I see no arguments in your email to prefer your solution to the previous two.
Signature · 2 lines
With best wishes Dmitry
Quoted 44 lines · Dmitry Baryshkov
Quoted 10 lines
Risk:
For QCA2066, there are no up-streamed DTS currently, customers we known does not specify firmware path in their down-stream bluetooth DTS node. For this solution, customer don't need to do anything and have no risk for them. and they still download same firmware as before.The only scenario this solution impact is that current default QCA2066 firmware path qca/ is specified in their down-stream bluetooth DTS node. this scenario should be very *Rare* because current default path is qca/ already and they should not specify this default patch qca/ in their down-stream bluetooth DTS node again.
First of all. We all are bound by the backwards compatibility. Newer kernels work with older DTs. Newer userspace works with older kernels. Newer kernels work with older userspace. Etc. As a part of linux-firmware we try to ensure that by providing backwards compatibility and relevant symlinks where possible and sensible.
As such, running older kernel with the newer linux-firmware on the hardware equipped with QCA2066 is expcted to continue to work. Yes, this is against your customs, but there is no SP, no customers, no service releases in that phrase. I didn't even mention the DT.
As such, the list of possible solutions in (my) order or preference:
- Rename firmware used for WCN6855. Use qca/wwbtfwNN.tlv and qca/wwnvNN.bin. Use any other prefix instead of ww. Then update the driver, taking a look for qca/ww firmware and if it doesn't exist, and fall back to loading hpbtfw if newer one isn't there.
This way all existing devices will continue to work with the existing firmware files. Older kernels will use old firmware files which are still compatible with both QCA2066 and WCN6855 devices.
- Add new version of WCN6855 firmware under qca/WCN6855/ subdir (why? Subdirs up to now were used for firmware files for the same chips with different RF parts). Then update the driver, taking a look for qca/ww firmware and if it doesn't exist, and fall back to loading hpbtfw if newer one isn't there.
This way all existing devices will continue to work with the existing firmware files. Older kernels will use old firmware files which are still compatible with both QCA2066 and WCN6855 devices.
Compare this to your solution:
Quoted 8 lines
- Move QCA2066 firmware to the new location. This requires updating of the existing kernels to follow the new path. It can be done as a DT modification (less preferred) or as a driver modification (more preferred). Anyway, using the old kernel with new linux-firmware will be broken on QCA2066-equipped devices.
After doing this analysys I see no arguments in your email to prefer your solution to the previous two.
make sense. thank you for detailed explanation. (^^)(^^)