Skip to contentSkip to conversation

ARM: qcom: add memory node to IPQ806x/AP148

PATCH In review Mathieu Olivari 2 participants 2 messages Aug 18, 2015 – Sep 9, 2015 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: qcom: add memory node to IPQ806x/AP148

On recent bootloaders, the bootloader patches the DT blob with memory information. However, with old bootloader, this operation doesn't happen, which leads the board to freeze in the early init code.

This patch adds the memory node to the AP148 dts explicitly to cover all boot cases.

---
 arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/qcom-ipq8064-ap148.dts +5 -0
index 36e2b04..6886d09 100644
@@ -4,6 +4,11 @@
 	model = "Qualcomm IPQ8064/AP148";
 	compatible = "qcom,ipq8064-ap148", "qcom,ipq8064";
 
+	memory at 0 {
+		reg = <0x42000000 0x1e000000>;
+		device_type = "memory";
+	};
+
 	reserved-memory {
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
2.1.4
#1 lore raw
Quoted 8 lines · Mathieu Olivari

On recent bootloaders, the bootloader patches the DT blob with memory information. However, with old bootloader, this operation doesn't happen, which leads the board to freeze in the early init code.

This patch adds the memory node to the AP148 dts explicitly to cover all boot cases.

Does the old bootloader pass atags? If so we can just enable CONFIG_ARM_ATAG_DTB_COMPAT and then we don't need to add anything to dts files.

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project