Skip to contentSkip to conversation

ARM: dts: sun6i: Add serial0 alias and stdout-path to a31s-primo81.dts

PATCH New Hans de Goede 3 participants 5 messages Mar 16, 2016 – Mar 21, 2016

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

PATCH 1/1 ARM: dts: sun6i: Add serial0 alias and stdout-path to a31s-primo81.dts

u-boot uses the kernel as the canonical source for its sunxi dts files and u-boot needs these.

---
 arch/arm/boot/dts/sun6i-a31s-primo81.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/sun6i-a31s-primo81.dts +8 -0
index 68b479b..379746a 100644
@@ -53,6 +53,14 @@
 / {
 	model = "MSI Primo81 tablet";
 	compatible = "msi,primo81", "allwinner,sun6i-a31s";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
 };
 
 &cpu0 {
Signature · 1 line
2.7.2
#2 lore raw

PATCH 1/1 ARM: dts: sun6i: Add serial0 alias and stdout-path to a31s-primo81.dts

Quoted 7 lines · Chen-Yu Tsai
Quoted 4 lines · Hans de Goede

u-boot uses the kernel as the canonical source for its sunxi dts files and u-boot needs these.

Queued, thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160318/3e95778f/attachment-0001.sig>
#3 lore raw

Hi,

Quoted 10 lines · Maxime Ripard
Quoted 7 lines · Chen-Yu Tsai
Quoted 4 lines · Hans de Goede

u-boot uses the kernel as the canonical source for its sunxi dts files and u-boot needs these.

Queued, thanks!

I just got an of-list mail from Karsten Merker that you nacked the addition if this during the initial submission, because there are no accessible uart test pads on this tablet.

In that case the proper fix would be to change the u-boot defconfig to have:

# CONFIG_REQUIRE_SERIAL_CONSOLE is not set

Which will stop u-boot from panicking (with nowhere to print the panic msg) when it has no stdout-path.

Can you unqueue this one until we've figured out what the best fix is ?

Thanks & Regards,

Hans

#4 lore raw
Quoted 18 lines · Hans de Goede

Hi,

Quoted 10 lines · Maxime Ripard
Quoted 7 lines · Chen-Yu Tsai
Quoted 4 lines · Hans de Goede

u-boot uses the kernel as the canonical source for its sunxi dts files and u-boot needs these.

Queued, thanks!

I just got an of-list mail from Karsten Merker that you nacked the addition if this during the initial submission, because there are no accessible uart test pads on this tablet.

Quoted 8 lines

In that case the proper fix would be to change the u-boot defconfig to have:

# CONFIG_REQUIRE_SERIAL_CONSOLE is not set

Which will stop u-boot from panicking (with nowhere to print the panic msg) when it has no stdout-path.

Can you unqueue this one until we've figured out what the best fix is ?

Done, thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160321/1933a8a8/attachment.sig>