All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] Enable msm8998 bluetooth
@ 2019-10-17 22:18 Jeffrey Hugo
  2019-10-17 22:18 ` [RFC PATCH 1/4] arm64: dts: qcom: msm8998: Add blsp1 BAM Jeffrey Hugo
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jeffrey Hugo @ 2019-10-17 22:18 UTC (permalink / raw
  To: agross, bjorn.andersson; +Cc: linux-arm-msm, linux-kernel, Jeffrey Hugo

This series enables bluetooth on the msm8998 platforms.  However,
without fixes under discussion [1] and [2], the init process will fail,
leaving bluetooth non-functional.  Perhaps it is best to wait until the
dependencies meet acceptance before taking this series.

[1] - https://lkml.org/lkml/2019/10/17/599
[2] - https://lkml.org/lkml/2019/10/17/975 

Jeffrey Hugo (4):
  arm64: dts: qcom: msm8998: Add blsp1 BAM
  arm64: dts: qcom: msm8998: Add blsp1_uart3
  arm64: dts: qcom: msm8998-mtp: Enable bluetooth
  arm64: dts: qcom: msm8998-clamshell: Enable bluetooth

 .../boot/dts/qcom/msm8998-clamshell.dtsi      | 17 ++++++++++++
 arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi     | 14 ++++++++++
 arch/arm64/boot/dts/qcom/msm8998-pins.dtsi    | 13 +++++++++
 arch/arm64/boot/dts/qcom/msm8998.dtsi         | 27 +++++++++++++++++++
 4 files changed, 71 insertions(+)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [RFC PATCH 1/4] arm64: dts: qcom: msm8998: Add blsp1 BAM
  2019-10-17 22:18 [RFC PATCH 0/4] Enable msm8998 bluetooth Jeffrey Hugo
@ 2019-10-17 22:18 ` Jeffrey Hugo
  2019-10-17 22:18 ` [RFC PATCH 2/4] arm64: dts: qcom: msm8998: Add blsp1_uart3 Jeffrey Hugo
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Jeffrey Hugo @ 2019-10-17 22:18 UTC (permalink / raw
  To: agross, bjorn.andersson; +Cc: linux-arm-msm, linux-kernel, Jeffrey Hugo

The BAM in the blsp1 block can be used as a DMA engine to offload work
when managing any of the peripherals in the blsp.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
---
 arch/arm64/boot/dts/qcom/msm8998.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi
index e42177952690..a3465f6bae84 100644
--- a/arch/arm64/boot/dts/qcom/msm8998.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi
@@ -1201,6 +1201,19 @@
 			status = "disabled";
 		};
 
+		blsp1_dma: dma@c144000 {
+			compatible = "qcom,bam-v1.7.0";
+			reg = <0x0c144000 0x25000>;
+			interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&gcc GCC_BLSP1_AHB_CLK>;
+			clock-names = "bam_clk";
+			#dma-cells = <1>;
+			qcom,ee = <0>;
+			qcom,controlled-remotely;
+			num-channels = <18>;
+			qcom,num-ees = <4>;
+		};
+
 		blsp1_i2c1: i2c@c175000 {
 			compatible = "qcom,i2c-qup-v2.2.1";
 			reg = <0x0c175000 0x600>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [RFC PATCH 2/4] arm64: dts: qcom: msm8998: Add blsp1_uart3
  2019-10-17 22:18 [RFC PATCH 0/4] Enable msm8998 bluetooth Jeffrey Hugo
  2019-10-17 22:18 ` [RFC PATCH 1/4] arm64: dts: qcom: msm8998: Add blsp1 BAM Jeffrey Hugo
@ 2019-10-17 22:18 ` Jeffrey Hugo
  2019-10-17 22:18 ` [RFC PATCH 3/4] arm64: dts: qcom: msm8998-mtp: Enable bluetooth Jeffrey Hugo
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Jeffrey Hugo @ 2019-10-17 22:18 UTC (permalink / raw
  To: agross, bjorn.andersson; +Cc: linux-arm-msm, linux-kernel, Jeffrey Hugo

The blsp1_uart3 peripheral appears to be commonly used for interfacing with
other SoCs on a platform, such as a wcn3990 to provide bluetooth.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
---
 arch/arm64/boot/dts/qcom/msm8998-pins.dtsi | 13 +++++++++++++
 arch/arm64/boot/dts/qcom/msm8998.dtsi      | 14 ++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8998-pins.dtsi b/arch/arm64/boot/dts/qcom/msm8998-pins.dtsi
index 6db70acd38ee..e32d3ab395ea 100644
--- a/arch/arm64/boot/dts/qcom/msm8998-pins.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8998-pins.dtsi
@@ -75,4 +75,17 @@
 			drive-strength = <2>;   /* 2 mA */
 		};
 	};
+
+	blsp1_uart3_on: blsp1_uart3_on {
+		mux {
+			pins = "gpio45", "gpio46", "gpio47", "gpio48";
+			function = "blsp_uart3_a";
+		};
+
+		config {
+			pins = "gpio45", "gpio46", "gpio47", "gpio48";
+			drive-strength = <2>;
+			bias-disable;
+		};
+	};
 };
diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi
index a3465f6bae84..b69a7f38dd36 100644
--- a/arch/arm64/boot/dts/qcom/msm8998.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi
@@ -1214,6 +1214,20 @@
 			qcom,num-ees = <4>;
 		};
 
+		blsp1_uart3: serial@c171000 {
+			compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
+			reg = <0x0c171000 0x1000>;
+			interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>,
+				 <&gcc GCC_BLSP1_AHB_CLK>;
+			clock-names = "core", "iface";
+			dmas = <&blsp1_dma 4>, <&blsp1_dma 5>;
+			dma-names = "tx", "rx";
+			pinctrl-names = "default";
+			pinctrl-0 = <&blsp1_uart3_on>;
+			status = "disabled";
+		};
+
 		blsp1_i2c1: i2c@c175000 {
 			compatible = "qcom,i2c-qup-v2.2.1";
 			reg = <0x0c175000 0x600>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [RFC PATCH 3/4] arm64: dts: qcom: msm8998-mtp: Enable bluetooth
  2019-10-17 22:18 [RFC PATCH 0/4] Enable msm8998 bluetooth Jeffrey Hugo
  2019-10-17 22:18 ` [RFC PATCH 1/4] arm64: dts: qcom: msm8998: Add blsp1 BAM Jeffrey Hugo
  2019-10-17 22:18 ` [RFC PATCH 2/4] arm64: dts: qcom: msm8998: Add blsp1_uart3 Jeffrey Hugo
@ 2019-10-17 22:18 ` Jeffrey Hugo
  2019-10-17 22:18 ` [RFC PATCH 4/4] arm64: dts: qcom: msm8998-clamshell: " Jeffrey Hugo
  2019-10-18 17:05 ` [RFC PATCH 0/4] Enable msm8998 bluetooth Bjorn Andersson
  4 siblings, 0 replies; 6+ messages in thread
From: Jeffrey Hugo @ 2019-10-17 22:18 UTC (permalink / raw
  To: agross, bjorn.andersson; +Cc: linux-arm-msm, linux-kernel, Jeffrey Hugo

Bluetooth is provided by a wcn3990, which is connected to the main SoC via
blsp1_uart3.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
---
 arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi
index 4f687570b6fd..1a1836ed1052 100644
--- a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi
@@ -23,6 +23,20 @@
 	};
 };
 
+&blsp1_uart3 {
+	status = "okay";
+
+	bluetooth {
+		compatible = "qcom,wcn3990-bt";
+
+		vddio-supply = <&vreg_s4a_1p8>;
+		vddxo-supply = <&vreg_l7a_1p8>;
+		vddrf-supply = <&vreg_l17a_1p3>;
+		vddch0-supply = <&vreg_l25a_3p3>;
+		max-speed = <3200000>;
+	};
+};
+
 &blsp2_uart1 {
 	status = "okay";
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [RFC PATCH 4/4] arm64: dts: qcom: msm8998-clamshell: Enable bluetooth
  2019-10-17 22:18 [RFC PATCH 0/4] Enable msm8998 bluetooth Jeffrey Hugo
                   ` (2 preceding siblings ...)
  2019-10-17 22:18 ` [RFC PATCH 3/4] arm64: dts: qcom: msm8998-mtp: Enable bluetooth Jeffrey Hugo
@ 2019-10-17 22:18 ` Jeffrey Hugo
  2019-10-18 17:05 ` [RFC PATCH 0/4] Enable msm8998 bluetooth Bjorn Andersson
  4 siblings, 0 replies; 6+ messages in thread
From: Jeffrey Hugo @ 2019-10-17 22:18 UTC (permalink / raw
  To: agross, bjorn.andersson; +Cc: linux-arm-msm, linux-kernel, Jeffrey Hugo

Bluetooth is provided by a wcn3990, which is connected to the main SoC via
blsp1_uart3.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
---
 arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi b/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi
index 8c35c1f54e32..ab24d415acc0 100644
--- a/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi
@@ -60,6 +60,20 @@
 	};
 };
 
+&blsp1_uart3 {
+	status = "okay";
+
+	bluetooth {
+		compatible = "qcom,wcn3990-bt";
+
+		vddio-supply = <&vreg_s4a_1p8>;
+		vddxo-supply = <&vreg_l7a_1p8>;
+		vddrf-supply = <&vreg_l17a_1p3>;
+		vddch0-supply = <&vreg_l25a_3p3>;
+		max-speed = <3200000>;
+	};
+};
+
 &dsi0 {
 	status = "okay";
 
@@ -209,6 +223,7 @@
 		vreg_l7a_1p8: l7 {
 			regulator-min-microvolt = <1800000>;
 			regulator-max-microvolt = <1800000>;
+			regulator-allow-set-load;
 		};
 		vreg_l8a_1p2: l8 {
 			regulator-min-microvolt = <1200000>;
@@ -249,6 +264,7 @@
 		vreg_l17a_1p3: l17 {
 			regulator-min-microvolt = <1304000>;
 			regulator-max-microvolt = <1304000>;
+			regulator-allow-set-load;
 		};
 		vreg_l18a_2p7: l18 {
 			regulator-min-microvolt = <2704000>;
@@ -284,6 +300,7 @@
 		vreg_l25a_3p3: l25 {
 			regulator-min-microvolt = <3104000>;
 			regulator-max-microvolt = <3312000>;
+			regulator-allow-set-load;
 		};
 		vreg_l26a_1p2: l26 {
 			regulator-min-microvolt = <1200000>;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [RFC PATCH 0/4] Enable msm8998 bluetooth
  2019-10-17 22:18 [RFC PATCH 0/4] Enable msm8998 bluetooth Jeffrey Hugo
                   ` (3 preceding siblings ...)
  2019-10-17 22:18 ` [RFC PATCH 4/4] arm64: dts: qcom: msm8998-clamshell: " Jeffrey Hugo
@ 2019-10-18 17:05 ` Bjorn Andersson
  4 siblings, 0 replies; 6+ messages in thread
From: Bjorn Andersson @ 2019-10-18 17:05 UTC (permalink / raw
  To: Jeffrey Hugo; +Cc: agross, linux-arm-msm, linux-kernel

On Thu 17 Oct 15:18 PDT 2019, Jeffrey Hugo wrote:

> This series enables bluetooth on the msm8998 platforms.  However,
> without fixes under discussion [1] and [2], the init process will fail,
> leaving bluetooth non-functional.  Perhaps it is best to wait until the
> dependencies meet acceptance before taking this series.
> 
> [1] - https://lkml.org/lkml/2019/10/17/599
> [2] - https://lkml.org/lkml/2019/10/17/975 

Since the two patches has been applied, by respective maintainer, I've
applied the series.

Thanks,
Bjorn

> 
> Jeffrey Hugo (4):
>   arm64: dts: qcom: msm8998: Add blsp1 BAM
>   arm64: dts: qcom: msm8998: Add blsp1_uart3
>   arm64: dts: qcom: msm8998-mtp: Enable bluetooth
>   arm64: dts: qcom: msm8998-clamshell: Enable bluetooth
> 
>  .../boot/dts/qcom/msm8998-clamshell.dtsi      | 17 ++++++++++++
>  arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi     | 14 ++++++++++
>  arch/arm64/boot/dts/qcom/msm8998-pins.dtsi    | 13 +++++++++
>  arch/arm64/boot/dts/qcom/msm8998.dtsi         | 27 +++++++++++++++++++
>  4 files changed, 71 insertions(+)
> 
> -- 
> 2.17.1
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-18 17:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-17 22:18 [RFC PATCH 0/4] Enable msm8998 bluetooth Jeffrey Hugo
2019-10-17 22:18 ` [RFC PATCH 1/4] arm64: dts: qcom: msm8998: Add blsp1 BAM Jeffrey Hugo
2019-10-17 22:18 ` [RFC PATCH 2/4] arm64: dts: qcom: msm8998: Add blsp1_uart3 Jeffrey Hugo
2019-10-17 22:18 ` [RFC PATCH 3/4] arm64: dts: qcom: msm8998-mtp: Enable bluetooth Jeffrey Hugo
2019-10-17 22:18 ` [RFC PATCH 4/4] arm64: dts: qcom: msm8998-clamshell: " Jeffrey Hugo
2019-10-18 17:05 ` [RFC PATCH 0/4] Enable msm8998 bluetooth Bjorn Andersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.