Skip to contentSkip to conversation

arm64: dts: qcom: qcs8300-ride: Enable Bluetooth support

PATCH Superseded Wei Deng 5 participants 10 messages Feb 25 – Mar 2

Subsystems (4)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Wei Deng

author
#0 lore raw

PATCH v3 1/1 arm64: dts: qcom: qcs8300-ride: Enable Bluetooth support

Enable BT on qcs8300-ride by adding a BT device tree node.

Since the platform uses the QCA6698 Bluetooth chip. While the QCA6698 shares the same IP core as the WCN6855, it has different RF components and RAM sizes, requiring new firmware files. Use the firmware-name property to specify the NVM and rampatch firmware to load.

---
This patch depends on:
- WLAN
https://lore.kernel.org/all/[email protected]/

Changes in v3:
- Rebase patches
- Remove unintended 'output-low' from bt-en-state pinctrl
- Use prerequisite-message-id to replace prerequisite-patch-id (Konrad)
- Link to v2: https://lore.kernel.org/all/[email protected]/

Changes for v2
- Update commit message, add firmware name detail
- Reorganize patchset
- Link to v1: https://lore.kernel.org/all/[email protected]/

---
 arch/arm64/boot/dts/qcom/qcs8300-ride.dts | 26 +++++++++++++++++++++++
 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/qcom/qcs8300-ride.dts +26 -0
index 2ede6efd1afd..03c01ae630b4 100644
@@ -18,6 +18,7 @@ / {
 	aliases {
 		serial0 = &uart7;
 		mmc0 = &sdhc_1;
+		serial1 = &uart2;
 	};
 
 	chosen {
@@ -107,6 +108,7 @@ wcn6855-pmu {
 		vddpcie1p3-supply = <&vreg_conn_1p35>;
 		vddpcie1p9-supply = <&vreg_conn_1p95>;
 
+		bt-enable-gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
 		wlan-enable-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
 
 		regulators {
@@ -559,6 +561,12 @@ &sdhc_1 {
 };
 
 &tlmm {
+	bt_en_state: bt-en-state {
+		pins = "gpio55";
+		function = "gpio";
+		bias-pull-down;
+	};
+
 	pcie0_default_state: pcie0-default-state {
 		wake-pins {
 			pins = "gpio0";
@@ -633,6 +641,24 @@ wlan_en_state: wlan-en-state {
 	};
 };
 
+&uart2 {
+	status = "okay";
+	bluetooth: bluetooth {
+		compatible = "qcom,wcn6855-bt";
+		firmware-name = "QCA6698/hpnv21", "QCA6698/hpbtfw21.tlv";
+		max-speed = <3200000>;
+
+		vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
+		vddaon-supply = <&vreg_pmu_aon_0p59>;
+		vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
+		vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
+		vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>;
+		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
+		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
+		vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
+	};
+};
+
 &uart7 {
 	status = "okay";
 };

base-commit: 7dff99b354601dd01829e1511711846e04340a69
prerequisite-message-id: [email protected]

Signature · 1 line
2.25.1
#1 lore raw

This is an automated email and please do not reply to this email.

Dear Submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.

----- Output -----

error: patch failed: arch/arm64/boot/dts/qcom/qcs8300-ride.dts:107
error: arch/arm64/boot/dts/qcom/qcs8300-ride.dts: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch

Please resolve the issue and submit the patches again.

---
Regards,
Linux Bluetooth

Reviewed-by on v3 1/1
#2 lore raw
In reply to Wei Deng
Quoted 14 lines · Wei Deng

Enable BT on qcs8300-ride by adding a BT device tree node.

Since the platform uses the QCA6698 Bluetooth chip. While the QCA6698 shares the same IP core as the WCN6855, it has different RF components and RAM sizes, requiring new firmware files. Use the firmware-name property to specify the NVM and rampatch firmware to load.

---
This patch depends on:
- WLAN
https://lore.kernel.org/all/[email protected]/

Quoted 4 lines

Changes in v3:
- Rebase patches
- Remove unintended 'output-low' from bt-en-state pinctrl
- Use prerequisite-message-id to replace prerequisite-patch-id (Konrad)

Only now did I realize you're the author of both patches!

Next time around, please keep them in the same series, for easier tracking (since they're very much related)

[...]

arch/arm64/boot/dts/qcom/qcs8300-ride.dts wlan_en_state: wlan-en-state { · line 646

Quoted 3 lines

+&uart2 {

arch/arm64/boot/dts/qcom/qcs8300-ride.dts +2 -0
+	status = "okay";
+	bluetooth: bluetooth {

Ideally there'd be a newline separating the properties from the subnodes

Konrad

author
#3 lore raw

Hi Konrad,

Quoted 20 lines · Konrad Dybcio
Quoted 14 lines · Wei Deng

Enable BT on qcs8300-ride by adding a BT device tree node.

Since the platform uses the QCA6698 Bluetooth chip. While the QCA6698 shares the same IP core as the WCN6855, it has different RF components and RAM sizes, requiring new firmware files. Use the firmware-name property to specify the NVM and rampatch firmware to load.

---
This patch depends on:
- WLAN
https://lore.kernel.org/all/[email protected]/

Quoted 4 lines

Changes in v3:
- Rebase patches
- Remove unintended 'output-low' from bt-en-state pinctrl
- Use prerequisite-message-id to replace prerequisite-patch-id (Konrad)

Quoted 4 lines

Only now did I realize you're the author of both patches!

Next time around, please keep them in the same series, for easier tracking (since they're very much related)

Just to clarify — are you referring to the below WLAN-related patch and this one?
https://lore.kernel.org/all/[email protected]/
If so, they are authored by different people. This BT-related patch depend on it.

Quoted 10 lines

[...]

arch/arm64/boot/dts/qcom/qcs8300-ride.dts wlan_en_state: wlan-en-state { · line 646

Quoted 3 lines

+&uart2 {

arch/arm64/boot/dts/qcom/qcs8300-ride.dts +2 -0
+	status = "okay";
+	bluetooth: bluetooth {

Ideally there'd be a newline separating the properties from the subnodes

Thanks, I’ll add an empty line before the subnode as suggested.

Quoted 3 lines

Konrad

Signature · 2 lines
Best Regards,
Wei Deng
#4 lore raw
Quoted 24 lines · Wei Deng

Hi Konrad,

Quoted 20 lines · Konrad Dybcio
Quoted 18 lines · Wei Deng

Enable BT on qcs8300-ride by adding a BT device tree node.

Since the platform uses the QCA6698 Bluetooth chip. While the QCA6698 shares the same IP core as the WCN6855, it has different RF components and RAM sizes, requiring new firmware files. Use the firmware-name property to specify the NVM and rampatch firmware to load.

---
This patch depends on:
- WLAN
https://lore.kernel.org/all/[email protected]/

Changes in v3:
- Rebase patches
- Remove unintended 'output-low' from bt-en-state pinctrl
- Use prerequisite-message-id to replace prerequisite-patch-id (Konrad)

Quoted 8 lines
Quoted 4 lines

Only now did I realize you're the author of both patches!

Next time around, please keep them in the same series, for easier tracking (since they're very much related)

Just to clarify — are you referring to the below WLAN-related patch and this one?
https://lore.kernel.org/all/[email protected]/
If so, they are authored by different people. This BT-related patch depend on it.

Right, I seem to only have read the first part of the name.. sorry about that!

Konrad

author
#5 lore raw

Hi Konrad,

Quoted 27 lines · Konrad Dybcio
Quoted 26 lines · Wei Deng

Hi Konrad,

Quoted 22 lines · Konrad Dybcio
Quoted 14 lines · Wei Deng

Enable BT on qcs8300-ride by adding a BT device tree node.

Since the platform uses the QCA6698 Bluetooth chip. While the QCA6698 shares the same IP core as the WCN6855, it has different RF components and RAM sizes, requiring new firmware files. Use the firmware-name property to specify the NVM and rampatch firmware to load.

---
This patch depends on:
- WLAN
https://lore.kernel.org/all/[email protected]/

Quoted 4 lines

Changes in v3:
- Rebase patches
- Remove unintended 'output-low' from bt-en-state pinctrl
- Use prerequisite-message-id to replace prerequisite-patch-id (Konrad)

Only now did I realize you're the author of both patches!

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Next time around, please keep them in the same series, for easier tracking (since they're very much related)

Just to clarify — are you referring to the below WLAN-related patch and this one?
https://lore.kernel.org/all/[email protected]/
If so, they are authored by different people. This BT-related patch depend on it.

Right, I seem to only have read the first part of the name.. sorry about that!

No problem at all, thanks for the clarification! Appreciate you pointing this out — we’re aligned now. Thanks!

Quoted 2 lines

Konrad

Signature · 2 lines
Best Regards,
Wei Deng
#6 lore raw
In reply to Wei Deng
Quoted 62 lines · Wei Deng

Enable BT on qcs8300-ride by adding a BT device tree node.

Since the platform uses the QCA6698 Bluetooth chip. While the QCA6698 shares the same IP core as the WCN6855, it has different RF components and RAM sizes, requiring new firmware files. Use the firmware-name property to specify the NVM and rampatch firmware to load.

---
This patch depends on:
- WLAN
https://lore.kernel.org/all/[email protected]/

Changes in v3:
- Rebase patches
- Remove unintended 'output-low' from bt-en-state pinctrl
- Use prerequisite-message-id to replace prerequisite-patch-id (Konrad)
- Link to v2: https://lore.kernel.org/all/[email protected]/

Changes for v2
- Update commit message, add firmware name detail
- Reorganize patchset
- Link to v1: https://lore.kernel.org/all/[email protected]/

---
 arch/arm64/boot/dts/qcom/qcs8300-ride.dts | 26 +++++++++++++++++++++++
 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/qcom/qcs8300-ride.dts +8 -0
index 2ede6efd1afd..03c01ae630b4 100644
@@ -18,6 +18,7 @@ / {
 	aliases {
 		serial0 = &uart7;
 		mmc0 = &sdhc_1;
+		serial1 = &uart2;
 	};
 
 	chosen {
@@ -107,6 +108,7 @@ wcn6855-pmu {
 		vddpcie1p3-supply = <&vreg_conn_1p35>;
 		vddpcie1p9-supply = <&vreg_conn_1p95>;
 
+		bt-enable-gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
 		wlan-enable-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
 
 		regulators {
@@ -559,6 +561,12 @@ &sdhc_1 {
 };
 
 &tlmm {
+	bt_en_state: bt-en-state {
+		pins = "gpio55";
+		function = "gpio";
+		bias-pull-down;
+	};
+
 	pcie0_default_state: pcie0-default-state {
 		wake-pins {
 			pins = "gpio0";

arch/arm64/boot/dts/qcom/qcs8300-ride.dts wlan_en_state: wlan-en-state { · line 646

Quoted 6 lines
arch/arm64/boot/dts/qcom/qcs8300-ride.dts +3 -0
@@ -633,6 +641,24 @@ wlan_en_state: wlan-en-state {
 	};
 };
 
+&uart2 {
+	status = "okay";
+	bluetooth: bluetooth {

Please add an empty line before the subnode.

Quoted 24 lines
arch/arm64/boot/dts/qcom/qcs8300-ride.dts +15 -0
+		compatible = "qcom,wcn6855-bt";
+		firmware-name = "QCA6698/hpnv21", "QCA6698/hpbtfw21.tlv";
+		max-speed = <3200000>;
+
+		vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
+		vddaon-supply = <&vreg_pmu_aon_0p59>;
+		vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
+		vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
+		vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>;
+		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
+		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
+		vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
+	};
+};
+
 &uart7 {
 	status = "okay";
 };

base-commit: 7dff99b354601dd01829e1511711846e04340a69
prerequisite-message-id: [email protected]

Signature · 1 line
2.25.1
Signature · 2 lines
With best wishes
Dmitry
author
#7 lore raw

Hi Dmitry,

Quoted 66 lines · Dmitry Baryshkov
Quoted 65 lines · Wei Deng

Enable BT on qcs8300-ride by adding a BT device tree node.

Since the platform uses the QCA6698 Bluetooth chip. While the QCA6698 shares the same IP core as the WCN6855, it has different RF components and RAM sizes, requiring new firmware files. Use the firmware-name property to specify the NVM and rampatch firmware to load.

---
This patch depends on:
- WLAN
https://lore.kernel.org/all/[email protected]/

Changes in v3:
- Rebase patches
- Remove unintended 'output-low' from bt-en-state pinctrl
- Use prerequisite-message-id to replace prerequisite-patch-id (Konrad)
- Link to v2: https://lore.kernel.org/all/[email protected]/

Changes for v2
- Update commit message, add firmware name detail
- Reorganize patchset
- Link to v1: https://lore.kernel.org/all/[email protected]/

---
 arch/arm64/boot/dts/qcom/qcs8300-ride.dts | 26 +++++++++++++++++++++++
 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/qcom/qcs8300-ride.dts +8 -0
index 2ede6efd1afd..03c01ae630b4 100644
@@ -18,6 +18,7 @@ / {
 	aliases {
 		serial0 = &uart7;
 		mmc0 = &sdhc_1;
+		serial1 = &uart2;
 	};
 
 	chosen {
@@ -107,6 +108,7 @@ wcn6855-pmu {
 		vddpcie1p3-supply = <&vreg_conn_1p35>;
 		vddpcie1p9-supply = <&vreg_conn_1p95>;
 
+		bt-enable-gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
 		wlan-enable-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
 
 		regulators {
@@ -559,6 +561,12 @@ &sdhc_1 {
 };
 
 &tlmm {
+	bt_en_state: bt-en-state {
+		pins = "gpio55";
+		function = "gpio";
+		bias-pull-down;
+	};
+
 	pcie0_default_state: pcie0-default-state {
 		wake-pins {
 			pins = "gpio0";
@@ -633,6 +641,24 @@ wlan_en_state: wlan-en-state {
 	};
 };
 
Quoted 5 lines

arch/arm64/boot/dts/qcom/qcs8300-ride.dts wlan_en_state: wlan-en-state { · line 646

Quoted 3 lines
arch/arm64/boot/dts/qcom/qcs8300-ride.dts +3 -0
+&uart2 {
+	status = "okay";
+	bluetooth: bluetooth {

Please add an empty line before the subnode.

Thanks, I’ll add an empty line before the subnode as suggested.

Quoted 26 lines
Quoted 25 lines
arch/arm64/boot/dts/qcom/qcs8300-ride.dts +15 -0
+		compatible = "qcom,wcn6855-bt";
+		firmware-name = "QCA6698/hpnv21", "QCA6698/hpbtfw21.tlv";
+		max-speed = <3200000>;
+
+		vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
+		vddaon-supply = <&vreg_pmu_aon_0p59>;
+		vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
+		vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
+		vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>;
+		vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
+		vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
+		vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
+	};
+};
+
 &uart7 {
 	status = "okay";
 };

base-commit: 7dff99b354601dd01829e1511711846e04340a69
prerequisite-message-id: [email protected]

Signature · 1 line
2.25.1
Signature · 2 lines
Best Regards,
Wei Deng
#8 lore raw
In reply to Wei Deng
Quoted 8 lines · Wei Deng

Enable BT on qcs8300-ride by adding a BT device tree node.

Since the platform uses the QCA6698 Bluetooth chip. While the QCA6698 shares the same IP core as the WCN6855, it has different RF components and RAM sizes, requiring new firmware files. Use the firmware-name property to specify the NVM and rampatch firmware to load.

Quoted 6 lines

---
This patch depends on:
- WLAN
https://lore.kernel.org/all/[email protected]/

Which depends on 5 other patches. Send one complete Bluetooth+WLAN posting.

Best regards,
Krzysztof

author
#9 lore raw

Hi Krzysztof,

Quoted 17 lines · Krzysztof Kozlowski
Quoted 8 lines · Wei Deng

Enable BT on qcs8300-ride by adding a BT device tree node.

Since the platform uses the QCA6698 Bluetooth chip. While the QCA6698 shares the same IP core as the WCN6855, it has different RF components and RAM sizes, requiring new firmware files. Use the firmware-name property to specify the NVM and rampatch firmware to load.

Quoted 6 lines

---
This patch depends on:
- WLAN
https://lore.kernel.org/all/[email protected]/

Quoted 1 line

Which depends on 5 other patches. Send one complete Bluetooth+WLAN posting.

Thanks for the clarification.

The WLAN patch has just been reposted as a new v10:
https://lore.kernel.org/all/[email protected]/

This v10 no longer depends on the additional patches mentioned earlier.
Given this update, would it be acceptable if I re-submit the Bluetooth patch on top of this v10 WLAN change?

Quoted 3 lines

Best regards,
Krzysztof

Signature · 2 lines
Best Regards,
Wei Deng