Skip to contentSkip to conversation

Small fixes for MSM8974 SoC dtsi

PATCH Applied Luca Weiss 3 participants 6 messages Mar 18, 2024 – Apr 8, 2024

Subsystems (3)
lore
Share & tools
lore

Luca Weiss

author
#0 lore raw

cover Small fixes for MSM8974 SoC dtsi

One fix for dt schema validation, one for the /chosen node.

---
Luca Weiss (2):
ARM: dts: qcom: msm8974: Add @0 to memory node name
ARM: dts: qcom: msm8974: Add empty chosen node

 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

---
base-commit: f6cef5f8c37f58a3bc95b3754c3ae98e086631ca
change-id: 20240318-msm8974-misc2-1fb92ae6bdf3

Best regards,

Signature · 1 line
Luca Weiss <[email protected]>
author
#1 lore raw

PATCH 1/2 ARM: dts: qcom: msm8974: Add @0 to memory node name

Add the @0 from reg to the node name, so that both dtc warning and dt validation failure get resolved.

arch/arm/boot/dts/qcom/qcom-msm8974.dtsi:106.9-109.4: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name

[..]/arch/arm/boot/dts/qcom/qcom-msm8974pro-fairphone-fp2.dtb: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 0]]}
from schema $id: http://devicetree.org/schemas/root-node.yaml#

---
 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi +1 -1
index 5efc38d712cc..00c6526a525d 100644
@@ -103,7 +103,7 @@ scm {
 		};
 	};
 
-	memory {
+	memory@0 {
 		device_type = "memory";
 		reg = <0x0 0x0>;
 	};
Signature · 1 line
2.44.0
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] ARM: dts: qcom: msm8974: Add @0 to memory node name

Quoted 10 lines · Luca Weiss

Add the @0 from reg to the node name, so that both dtc warning and dt validation failure get resolved.

arch/arm/boot/dts/qcom/qcom-msm8974.dtsi:106.9-109.4: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name

[..]/arch/arm/boot/dts/qcom/qcom-msm8974pro-fairphone-fp2.dtb: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': [[0, 0]]}
from schema $id: http://devicetree.org/schemas/root-node.yaml#

---

Looks like it's indeed the start of RAM

Konrad

author
#3 lore raw

PATCH 2/2 ARM: dts: qcom: msm8974: Add empty chosen node

In reply to Luca Weiss

Add an empty /chosen node to the dtsi like is common on most other Qualcomm SoC files, so that various pieces of software expecting this node to exist don't complain.

---
 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi +2 -0
index 00c6526a525d..2ec4ec4e5d2a 100644
@@ -14,6 +14,8 @@ / {
 	#size-cells = <1>;
 	interrupt-parent = <&intc>;
 
+	chosen { };
+
 	clocks {
 		xo_board: xo_board {
 			compatible = "fixed-clock";
Signature · 1 line
2.44.0
Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] ARM: dts: qcom: msm8974: Add empty chosen node

Quoted 6 lines · Luca Weiss

Add an empty /chosen node to the dtsi like is common on most other Qualcomm SoC files, so that various pieces of software expecting this node to exist don't complain.

---

Kinda weird dtc doesn't add it automatically or complain about its absence at this point.. perhaps it could be taught about the latter

Konrad

maintainer Applied
#5 lore raw
In reply to Luca Weiss
Quoted 3 lines · Luca Weiss

One fix for dt schema validation, one for the /chosen node.

Applied, thanks!

[1/2] ARM: dts: qcom: msm8974: Add @0 to memory node name

      commit: cad23ffd46e2205582f5a9e9014b3d78ec0256db
[2/2] ARM: dts: qcom: msm8974: Add empty chosen node
      commit: 7018981366d496db4b7d5f6a5c2673683d2b1639

Best regards,

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