linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix wcn36xx on msm8916-samsung-a5u
@ 2021-01-06 10:21 Stephan Gerhold
  2021-01-06 10:21 ` [PATCH 1/3] dt-bindings: remoteproc: qcom,wcnss-pil: Add qcom,wcn3660b compatible Stephan Gerhold
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stephan Gerhold @ 2021-01-06 10:21 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson
  Cc: Ohad Ben-Cohen, linux-arm-msm, linux-remoteproc, devicetree,
	phone-devel, Rob Herring, Stephan Gerhold

Unlike most MSM8916 boards, samsung-a5u uses WCN3660B instead of
WCN3620 to support the 5 GHz band additionally.

WCN3660B has similar requirements as WCN3620, but it needs the XO
clock to run at 48 MHz instead of 19.2 MHz. So far it was possible
to describe that configuration using the qcom,wcn3680 compatible.

However, as of commit 8490987bdb9a ("wcn36xx: Hook and identify RF_IRIS_WCN3680"),
the wcn36xx driver will now use the qcom,wcn3680 compatible
to enable functionality specific to WCN3680. In particular,
WCN3680 supports 802.11ac, which is not available in WCN3660B.

This patch set introduces a new "qcom,wcn3660b" compatible
to fix the msm8916-samsung-a5u device tree.

Stephan Gerhold (3):
  dt-bindings: remoteproc: qcom,wcnss-pil: Add qcom,wcn3660b compatible
  remoteproc: qcom_wcnss_iris: Add qcom,wcn3660b compatible
  arm64: dts: qcom: msm8916-samsung-a5u: Fix iris compatible

 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt | 1 +
 arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts            | 2 +-
 drivers/remoteproc/qcom_wcnss_iris.c                            | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

-- 
2.30.0


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

* [PATCH 1/3] dt-bindings: remoteproc: qcom,wcnss-pil: Add qcom,wcn3660b compatible
  2021-01-06 10:21 [PATCH 0/3] Fix wcn36xx on msm8916-samsung-a5u Stephan Gerhold
@ 2021-01-06 10:21 ` Stephan Gerhold
  2021-01-13  3:04   ` Rob Herring
  2021-01-06 10:21 ` [PATCH 2/3] remoteproc: qcom_wcnss_iris: " Stephan Gerhold
  2021-01-06 10:21 ` [PATCH 3/3] arm64: dts: qcom: msm8916-samsung-a5u: Fix iris compatible Stephan Gerhold
  2 siblings, 1 reply; 5+ messages in thread
From: Stephan Gerhold @ 2021-01-06 10:21 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson
  Cc: Ohad Ben-Cohen, linux-arm-msm, linux-remoteproc, devicetree,
	phone-devel, Rob Herring, Stephan Gerhold

WCN3660B is a variant of WCN3660, but with the same regulator
requirements as WCN3620/WCN3680. Add a new qcom,wcn3660b compatible
to describe it from device trees.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt
index cc0b7fc1c29b..da09c0d79ac0 100644
--- a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt
+++ b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt
@@ -80,6 +80,7 @@ and its resource dependencies. It is described by the following properties:
 	Definition: must be one of:
 		    "qcom,wcn3620",
 		    "qcom,wcn3660",
+		    "qcom,wcn3660b",
 		    "qcom,wcn3680"
 
 - clocks:
-- 
2.30.0


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

* [PATCH 2/3] remoteproc: qcom_wcnss_iris: Add qcom,wcn3660b compatible
  2021-01-06 10:21 [PATCH 0/3] Fix wcn36xx on msm8916-samsung-a5u Stephan Gerhold
  2021-01-06 10:21 ` [PATCH 1/3] dt-bindings: remoteproc: qcom,wcnss-pil: Add qcom,wcn3660b compatible Stephan Gerhold
@ 2021-01-06 10:21 ` Stephan Gerhold
  2021-01-06 10:21 ` [PATCH 3/3] arm64: dts: qcom: msm8916-samsung-a5u: Fix iris compatible Stephan Gerhold
  2 siblings, 0 replies; 5+ messages in thread
From: Stephan Gerhold @ 2021-01-06 10:21 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson
  Cc: Ohad Ben-Cohen, linux-arm-msm, linux-remoteproc, devicetree,
	phone-devel, Rob Herring, Stephan Gerhold

WCN3660B is a variant of WCN3660, but with the same regulator
requirements as WCN3620/WCN3680. As far as qcom_wcnss_iris is
concerned we can just use qcom,wcn3680 (wcn3680_data).

However, a separate compatible is needed for WCN3660B because
the wcn36xx driver uses it to enable chip-specific functionality.
In particular, it enables 802.11ac for qcom,wcn3680 which is not
supported by WCN3660B.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
 drivers/remoteproc/qcom_wcnss_iris.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/remoteproc/qcom_wcnss_iris.c b/drivers/remoteproc/qcom_wcnss_iris.c
index 0e0ae1e764ea..169acd305ae3 100644
--- a/drivers/remoteproc/qcom_wcnss_iris.c
+++ b/drivers/remoteproc/qcom_wcnss_iris.c
@@ -160,6 +160,7 @@ static int qcom_iris_remove(struct platform_device *pdev)
 static const struct of_device_id iris_of_match[] = {
 	{ .compatible = "qcom,wcn3620", .data = &wcn3620_data },
 	{ .compatible = "qcom,wcn3660", .data = &wcn3660_data },
+	{ .compatible = "qcom,wcn3660b", .data = &wcn3680_data },
 	{ .compatible = "qcom,wcn3680", .data = &wcn3680_data },
 	{}
 };
-- 
2.30.0


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

* [PATCH 3/3] arm64: dts: qcom: msm8916-samsung-a5u: Fix iris compatible
  2021-01-06 10:21 [PATCH 0/3] Fix wcn36xx on msm8916-samsung-a5u Stephan Gerhold
  2021-01-06 10:21 ` [PATCH 1/3] dt-bindings: remoteproc: qcom,wcnss-pil: Add qcom,wcn3660b compatible Stephan Gerhold
  2021-01-06 10:21 ` [PATCH 2/3] remoteproc: qcom_wcnss_iris: " Stephan Gerhold
@ 2021-01-06 10:21 ` Stephan Gerhold
  2 siblings, 0 replies; 5+ messages in thread
From: Stephan Gerhold @ 2021-01-06 10:21 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson
  Cc: Ohad Ben-Cohen, linux-arm-msm, linux-remoteproc, devicetree,
	phone-devel, Rob Herring, Stephan Gerhold

Unlike most MSM8916 boards, samsung-a5u uses WCN3660B instead of
WCN3620 to support the 5 GHz band additionally.

WCN3660B has similar requirements as WCN3620, but it needs the XO
clock to run at 48 MHz instead of 19.2 MHz. So far it was possible
to describe that configuration using the qcom,wcn3680 compatible.

However, as of commit 8490987bdb9a ("wcn36xx: Hook and identify RF_IRIS_WCN3680"),
the wcn36xx driver will now use the qcom,wcn3680 compatible
to enable functionality specific to WCN3680. In particular,
WCN3680 supports 802.11ac, which is not available in WCN3660B.

Use the new qcom,wcn3660b compatible to describe the chip properly.

Fixes: 0d7051999175 ("arm64: dts: msm8916-samsung-a5u: Override iris compatible")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
 arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts
index e39c04d977c2..dd35c3344358 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts
@@ -38,7 +38,7 @@ touchscreen@48 {
 
 &pronto {
 	iris {
-		compatible = "qcom,wcn3680";
+		compatible = "qcom,wcn3660b";
 	};
 };
 
-- 
2.30.0


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

* Re: [PATCH 1/3] dt-bindings: remoteproc: qcom,wcnss-pil: Add qcom,wcn3660b compatible
  2021-01-06 10:21 ` [PATCH 1/3] dt-bindings: remoteproc: qcom,wcnss-pil: Add qcom,wcn3660b compatible Stephan Gerhold
@ 2021-01-13  3:04   ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2021-01-13  3:04 UTC (permalink / raw)
  To: Stephan Gerhold
  Cc: Andy Gross, devicetree, Bjorn Andersson, phone-devel,
	Ohad Ben-Cohen, Rob Herring, linux-arm-msm, linux-remoteproc

On Wed, 06 Jan 2021 11:21:32 +0100, Stephan Gerhold wrote:
> WCN3660B is a variant of WCN3660, but with the same regulator
> requirements as WCN3620/WCN3680. Add a new qcom,wcn3660b compatible
> to describe it from device trees.
> 
> Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
> ---
>  Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.txt | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

end of thread, other threads:[~2021-01-13  3:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 10:21 [PATCH 0/3] Fix wcn36xx on msm8916-samsung-a5u Stephan Gerhold
2021-01-06 10:21 ` [PATCH 1/3] dt-bindings: remoteproc: qcom,wcnss-pil: Add qcom,wcn3660b compatible Stephan Gerhold
2021-01-13  3:04   ` Rob Herring
2021-01-06 10:21 ` [PATCH 2/3] remoteproc: qcom_wcnss_iris: " Stephan Gerhold
2021-01-06 10:21 ` [PATCH 3/3] arm64: dts: qcom: msm8916-samsung-a5u: Fix iris compatible Stephan Gerhold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).