Skip to contentSkip to conversation

arm64: dts: meson-axg-s400: Add chosen and memory nodes

PATCH Applied Neil Armstrong 3 participants 4 messages Sep 10, 2018 – Sep 13, 2018

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

PATCH 1/1 arm64: dts: meson-axg-s400: Add chosen and memory nodes

Add missing chosen and memory nodes.

---
 arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +9 -0
index d399078..f0de884 100644
@@ -60,6 +60,15 @@
 		serial1 = &uart_A;
 	};
 
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	memory at 0 {
+		device_type = "memory";
+		reg = <0x0 0x0 0x0 0x40000000>;
+	};
+
 	main_12v: regulator-main_12v {
 		compatible = "regulator-fixed";
 		regulator-name = "12V";
Signature · 1 line
2.7.4
#2 lore raw

Hi Martin,

Quoted 8 lines · Martin Blumenstingl
Quoted 4 lines · Neil Armstrong

Add missing chosen and memory nodes.

out of curiosity:
- does the bootloader add the memory node (meaning that this is just a cosmetic bit)?

Yes, but it's always better to already have the node so it only change the memory, otherwise it has to relocate and insert a node in the middle of the dtb.

Quoted 5 lines

- setting stdout-path is always a good idea, without it you can't use earlycon (without parameters)

Thanks,
Neil