Skip to contentSkip to conversation

arm64: dts: qcom: db410c: Update firmware-name for wcnss and mpss

PATCH New Bjorn Andersson 5 participants 7 messages Jan 8, 2020 – Aug 24, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: qcom: db410c: Update firmware-name for wcnss and mpss

Enable the mpss remoteproc node and specify the firmware-name for this and the wcnss remoteproc on the Dragonboard 410c.

---
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 6 ++++++
 arch/arm64/boot/dts/qcom/msm8916.dtsi     | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +6 -0
index 037e26b3f8d5..298684c62cc1 100644
@@ -494,6 +494,7 @@
 
 		wcnss@a21b000 {
 			status = "okay";
+			firmware-name = "qcom/msm8916/wcnss.mdt";
 		};
 	};
 
@@ -538,6 +539,11 @@
 	};
 };
 
+&mpss {
+	status = "okay";
+	firmware-name = "qcom/msm8916/mba.mbn", "qcom/msm8916/modem.mdt";
+};
+
 &spmi_bus {
 	pm8916_0: pm8916@0 {
 		pon@800 {
arch/arm64/boot/dts/qcom/msm8916.dtsi +1 -1
index 9c4d89319e7c..1ced09a61531 100644
@@ -1054,7 +1054,7 @@
 		};
 
 
-		hexagon@4080000 {
+		mpss: remoteproc@4080000 {
 			compatible = "qcom,q6v5-pil";
 			reg = <0x04080000 0x100>,
 			      <0x04020000 0x040>;
Signature · 1 line
2.24.0
#1 lore raw

PATCH 1/1 arm64: dts: qcom: db410c: Update firmware-name for wcnss and mpss

From: Bjorn Andersson <[email protected]>

Enable the mpss remoteproc node and specify the firmware-name for this and the wcnss remoteproc on the Dragonboard 410c.

---
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +6 -0
index 3c7f97539390..8f1ada75d3ed 100644
@@ -301,6 +301,11 @@ &lpass {
 	status = "okay";
 };
 
+&mpss {
+	status = "okay";
+	firmware-name = "qcom/msm8916/mba.mbn", "qcom/msm8916/modem.mdt";
+};
+
 &pm8916_resin {
 	status = "okay";
 	linux,code = <KEY_VOLUMEDOWN>;
@@ -308,6 +313,7 @@ &pm8916_resin {
 
 &pronto {
 	status = "okay";
+	firmware-name = "qcom/msm8916/wcnss.mdt";
 };
 
 &sdhc_1 {
Signature · 1 line
2.30.0
#2 lore raw
Quoted 19 lines · Aníbal Limón

From: Bjorn Andersson <[email protected]>

Enable the mpss remoteproc node and specify the firmware-name for this and the wcnss remoteproc on the Dragonboard 410c.

---
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +0 -0
index 3c7f97539390..8f1ada75d3ed 100644

arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi &lpass { · line 306

Quoted 6 lines
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +3 -0
@@ -301,6 +301,11 @@ &lpass {
 	status = "okay";
 };
 
+&mpss {
+	status = "okay";
+	firmware-name = "qcom/msm8916/mba.mbn", "qcom/msm8916/modem.mdt";

Shouldn't this one be mba.mdt?

Quoted 15 lines
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +3 -0
+};
+
 &pm8916_resin {
 	status = "okay";
 	linux,code = <KEY_VOLUMEDOWN>;
@@ -308,6 +313,7 @@ &pm8916_resin {
 
 &pronto {
 	status = "okay";
+	firmware-name = "qcom/msm8916/wcnss.mdt";
 };
 
 &sdhc_1 {
Signature · 1 line
2.30.0
Signature · 1 line
~Vinod
#3 lore raw
Quoted 24 lines · Vinod Koul
Quoted 22 lines · Aníbal Limón

From: Bjorn Andersson <[email protected]>

Enable the mpss remoteproc node and specify the firmware-name for this and the wcnss remoteproc on the Dragonboard 410c.

---
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +0 -0
index 3c7f97539390..8f1ada75d3ed 100644
@@ -301,6 +301,11 @@ &lpass {
      status = "okay";
 };
 
Quoted 5 lines

arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi &lpass { · line 306

Quoted 3 lines
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +3 -0
+&mpss {
+     status = "okay";
+     firmware-name = "qcom/msm8916/mba.mbn", "qcom/msm8916/modem.mdt";

Shouldn't this one be mba.mdt?

No, firmware-qcom-db410c provides mba.mbn rather than mba.mdt

Quoted 19 lines
Quoted 15 lines
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +3 -1
+};
+
 &pm8916_resin {
      status = "okay";
      linux,code = <KEY_VOLUMEDOWN>;
@@ -308,6 +313,7 @@ &pm8916_resin {
 
 &pronto {
      status = "okay";
+     firmware-name = "qcom/msm8916/wcnss.mdt";
 };
 
 &sdhc_1 {
--
Quoted 1 line

2.30.0

--
~Vinod

Signature · 2 lines
With best wishes
Dmitry
Reviewed-by on v1 1/1
#4 lore raw
In reply to Aníbal Limón
Quoted 11 lines · Aníbal Limón

From: Bjorn Andersson <[email protected]>

Enable the mpss remoteproc node and specify the firmware-name for this and the wcnss remoteproc on the Dragonboard 410c.

Quoted 31 lines
---
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +6 -1
index 3c7f97539390..8f1ada75d3ed 100644
@@ -301,6 +301,11 @@ &lpass {
        status = "okay";
 };
 
+&mpss {
+       status = "okay";
+       firmware-name = "qcom/msm8916/mba.mbn", "qcom/msm8916/modem.mdt";
+};
+
 &pm8916_resin {
        status = "okay";
        linux,code = <KEY_VOLUMEDOWN>;
@@ -308,6 +313,7 @@ &pm8916_resin {
 
 &pronto {
        status = "okay";
+       firmware-name = "qcom/msm8916/wcnss.mdt";
 };
 
 &sdhc_1 {
--

2.30.0

Signature · 2 lines
With best wishes
Dmitry
#5 lore raw
Quoted 7 lines · Dmitry Baryshkov
Quoted 6 lines · Aníbal Limón

From: Bjorn Andersson <[email protected]>

Enable the mpss remoteproc node and specify the firmware-name for this and the wcnss remoteproc on the Dragonboard 410c.

Quoted 8 lines
Quoted 5 lines

Thanks Dmitry, not sure why this hasn't been merged yet.

Taking a further look at this I noticed that we never pushed the firmware to linux-firmware either, which I think was because we where uncertain of the directory structure at the time - a discussion which has been settled since.

Quoted 12 lines
Quoted 12 lines
---
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +0 -0
index 3c7f97539390..8f1ada75d3ed 100644
@@ -301,6 +301,11 @@ &lpass {
        status = "okay";
 };
 
Quoted 3 lines

arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi &lpass { · line 306

Quoted 3 lines
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +3 -0
+&mpss {
+       status = "okay";
+       firmware-name = "qcom/msm8916/mba.mbn", "qcom/msm8916/modem.mdt";

But if we're pushing things to linux-firmware, does anyone object against following the existing style and squashing the mdt+bNN files into .mbn (and thereby making this modem.mbn and below wcnss.mbn)?

Regards,
Bjorn

Quoted 21 lines
Quoted 16 lines
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +3 -1
+};
+
 &pm8916_resin {
        status = "okay";
        linux,code = <KEY_VOLUMEDOWN>;
@@ -308,6 +313,7 @@ &pm8916_resin {
 
 &pronto {
        status = "okay";
+       firmware-name = "qcom/msm8916/wcnss.mdt";
 };
 
 &sdhc_1 {
--

2.30.0

Signature · 2 lines
With best wishes
Dmitry
#6 lore raw
Quoted 15 lines · Bjorn Andersson
Quoted 13 lines · Dmitry Baryshkov
Quoted 11 lines · Aníbal Limón

From: Bjorn Andersson <[email protected]>

Enable the mpss remoteproc node and specify the firmware-name for this and the wcnss remoteproc on the Dragonboard 410c.

Quoted 5 lines
Quoted 2 lines

Thanks Dmitry, not sure why this hasn't been merged yet.

This patch keeps getting stuck for some reason. It was sent several times already but always forgotten. :)

Quoted 17 lines

Taking a further look at this I noticed that we never pushed the firmware to linux-firmware either, which I think was because we where uncertain of the directory structure at the time - a discussion which has been settled since.

Quoted 12 lines
Quoted 12 lines
---
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +0 -0
index 3c7f97539390..8f1ada75d3ed 100644
@@ -301,6 +301,11 @@ &lpass {
        status = "okay";
 };
 
Quoted 8 lines
Quoted 3 lines

arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi &lpass { · line 306

Quoted 3 lines
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +3 -0
+&mpss {
+       status = "okay";
+       firmware-name = "qcom/msm8916/mba.mbn", "qcom/msm8916/modem.mdt";

But if we're pushing things to linux-firmware, does anyone object against following the existing style and squashing the mdt+bNN files into .mbn (and thereby making this modem.mbn and below wcnss.mbn)?

You made this change in some version already :)
https://lore.kernel.org/linux-arm-msm/[email protected]/

I think there was no real objection back then but more confusion about how to get the squashed .mbn variant. Having it in linux-firmware would certainly make it a lot easier overall if you can make that happen. :)

The latest version of this patch that I am aware of is the following one:
https://lore.kernel.org/linux-arm-msm/[email protected]/

As I wrote there it's mainly stuck on getting the related wcn36xx patch [1] merged. Can you resend that one maybe?

Thanks,
Stephan

[1]: https://lore.kernel.org/linux-arm-msm/[email protected]/