From 25d9df670b850a4e3702e084ff249baa1670ae3f Mon Sep 17 00:00:00 2001
From: Mark-MC Lee (李明昌) <Mark-MC.Lee@mediatek.com>
Date: Mon, 10 Feb 2020 09:33:15 +0100
Subject: [PATCH] arm: dts: mediatek: mt7623n-bpi-r2: add earlycon= to bootargs

Add earlycon=uart8250,mmio32,0x11004000 to the chosen/bootargs property
so that kernel messages are available on the serial console before the
full UART driver is initialised.

Signed-off-by: Mark-MC Lee (李明昌) <Mark-MC.Lee@mediatek.com>
---
--- a/arch/arm/boot/dts/mediatek/mt7623n-bananapi-bpi-r2.dts
+++ b/arch/arm/boot/dts/mediatek/mt7623n-bananapi-bpi-r2.dts
@@ -19,7 +19,7 @@
 
 	chosen {
 		stdout-path = "serial2:115200n8";
-		bootargs = "console=ttyS2,115200n8 console=tty1";
+		bootargs = "earlycon=uart8250,mmio32,0x11004000 console=ttyS2,115200n8 console=tty1";
 	};
 
 	connector {
