Small fixes for MSM8974 SoC dtsi
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]>
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
@@ -103,7 +103,7 @@ scm { }; }; - memory { + memory@0 { device_type = "memory"; reg = <0x0 0x0>; };
Signature · 1 line
2.44.0
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#Signed-off-by Luca Weiss <[email protected]>---
Looks like it's indeed the start of RAM
Konrad
PATCH 2/2 ARM: dts: qcom: msm8974: Add empty chosen node
In reply to Luca WeissAdd 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
@@ -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
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.
Signed-off-by Luca Weiss <[email protected]>---
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
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: 7018981366d496db4b7d5f6a5c2673683d2b1639Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>