Skip to contentSkip to conversation

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

PATCH Applied Wei Deng 4 participants 4 messages Mar 2 – Mar 18

Subsystems (4)
lore
Share & tools
lore

Wei Deng

author
#0 lore raw

PATCH v4 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 v4:
- Rebase patches
- Add an empty line before the bluetooth subnode (Konrad,Dmitry)
- Link to v3: 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 | 27 +++++++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/qcom/qcs8300-ride.dts +27 -0
index 2ed1015b3465..01ec10dd4879 100644
@@ -18,6 +18,7 @@ / {
 	aliases {
 		serial0 = &uart7;
 		mmc0 = &sdhc_1;
+		serial1 = &uart2;
 	};
 
 	chosen {
@@ -108,6 +109,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 {
@@ -560,6 +562,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";
@@ -635,6 +643,25 @@ 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: 11439c4635edd669ae435eec308f4ab8a0804808
prerequisite-message-id: [email protected]

Signature · 1 line
2.25.1
Reviewed-by on v4 1/1
#1 lore raw
Quoted 10 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.

Signature · 2 lines
With best wishes
Dmitry
Reviewed-by on v4 1/1
#2 lore raw
In reply to Wei Deng
Quoted 11 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.

---

maintainer Applied
#3 lore raw
In reply to Wei Deng
Quoted 9 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.

[...]

Applied, thanks!

[1/1] arm64: dts: qcom: qcs8300-ride: Enable Bluetooth support

      commit: 2d600e615f53891f75f0607c530163384b045edb

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>