ARM: dts: aspeed: Set earlycon boot argument
authorJoel Stanley <joel@jms.id.au>
Wed, 26 May 2021 05:12:20 +0000 (14:42 +0930)
committerJoel Stanley <joel@jms.id.au>
Thu, 3 Jun 2021 05:47:02 +0000 (15:17 +0930)
Most of the aspeed boards have copied the 'earlyprink' string in
the bootargs. However, there's no earlyprink driver configured in the
defconfigs, so this does nothing.

A combination of setting stdout in the chosen node and adding earlycon
to bootargs causes early serial output to appear early. This changes all
boards to use this option.

The console=ttyS4,115200 option is still required, as this is used by
the run time uart driver.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Acked-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Alexander Filippov <a.filippov@yadro.com>
Link: https://lore.kernel.org/r/20210526051220.136432-1-joel@jms.id.au
Signed-off-by: Joel Stanley <joel@jms.id.au>
29 files changed:
arch/arm/boot/dts/aspeed-ast2500-evb.dts
arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts
arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dts
arch/arm/boot/dts/aspeed-bmc-arm-centriq2400-rep.dts
arch/arm/boot/dts/aspeed-bmc-arm-stardragon4800-rep2.dts
arch/arm/boot/dts/aspeed-bmc-asrock-e3c246d4i.dts
arch/arm/boot/dts/aspeed-bmc-bytedance-g220a.dts
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts
arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts
arch/arm/boot/dts/aspeed-bmc-inspur-fp5280g2.dts
arch/arm/boot/dts/aspeed-bmc-inspur-on5263m5.dts
arch/arm/boot/dts/aspeed-bmc-intel-s2600wf.dts
arch/arm/boot/dts/aspeed-bmc-lenovo-hr630.dts
arch/arm/boot/dts/aspeed-bmc-lenovo-hr855xg2.dts
arch/arm/boot/dts/aspeed-bmc-microsoft-olympus.dts
arch/arm/boot/dts/aspeed-bmc-opp-lanyang.dts
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts
arch/arm/boot/dts/aspeed-bmc-opp-mowgli.dts
arch/arm/boot/dts/aspeed-bmc-opp-nicole.dts
arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts
arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
arch/arm/boot/dts/aspeed-bmc-portwell-neptune.dts
arch/arm/boot/dts/aspeed-bmc-quanta-q71l.dts
arch/arm/boot/dts/aspeed-bmc-supermicro-x11spi.dts

index 8bec21ed0de536472948b35b78801e0b6efa52b9..583a241f115188bcda9a1cb79d46b9172b6f76cd 100644 (file)
@@ -13,7 +13,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=tty0 console=ttyS4,115200 earlyprintk";
+               bootargs = "console=tty0 console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 6aeb47c44eba27b06b9680d7e608c2e2409b2788..79d17841b3d7005604f7c1bb7ea6938e3c6c3bb9 100644 (file)
@@ -34,7 +34,7 @@
        };
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
        leds {
                compatible = "gpio-leds";
index 8f5ec22e51c25f4a752d9bbbd80010c34cb6d507..bbf8d548397bbe6f3a8280f5ff4d926434999840 100644 (file)
@@ -9,7 +9,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index c2ece0b91885e19a582fd38c8aac6b3b7ef6c985..3395de96ee1162a789bbe795768baa157b57ae58 100644 (file)
@@ -10,7 +10,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 2c29ac037d32535a5cb002422fc1a41f1d6ba745..7c6af7f226e75c064b9733fcb14cdca7814853f2 100644 (file)
@@ -10,7 +10,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index dcab6e78dfa4107e0eb0633163ef8dfc5174a58c..33e413ca07e4a2e49a118a1acfc3a0667b1e621a 100644 (file)
@@ -15,7 +15,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=tty0 console=ttyS4,115200 earlyprintk";
+               bootargs = "console=tty0 console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 5ef88c377358bce8d42fe7a8f4251e2ccd825135..01dace8f5e5f7ee7588a2e55310d322d0351dea9 100644 (file)
@@ -55,7 +55,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 2fb8b147f489a62ea72f56ec83d231dd350cb4ec..90a3f485c67a9895a9bdce1b50add50be57b4015 100644 (file)
 
        chosen {
                stdout-path = &uart1;
-               bootargs = "console=ttyS1,9600n8 root=/dev/ram rw earlyprintk";
+               bootargs = "console=ttyS1,9600n8 root=/dev/ram rw earlycon";
        };
 
        ast-adc-hwmon {
index 7b4b2b126ad849c483c1b67eac368a3847250081..b6b16356f571a2e901e9b58639d06d3dfdea7bb8 100644 (file)
@@ -37,7 +37,7 @@
        };
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 07593897fc9a1c13aac5034122890d7ab9cbcaee..1752f3250e44d9dc75745b749e56d1ccc13f5675 100644 (file)
@@ -10,7 +10,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 80c92e065a10a1fe84ce8ce61ba82f593c0c7f27..5a98a19f445e038c4ababe1cfc3966972f2b156e 100644 (file)
@@ -11,7 +11,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "earlyprintk";
+               bootargs = "earlycon";
        };
 
        memory {
index 6e9baf3bba5310c8b891014d3b110cda4786631f..d5b7d28cda887ca3521e01a07c0ea0ae209d1e0e 100644 (file)
@@ -10,7 +10,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "earlyprintk";
+               bootargs = "earlycon";
        };
 
        memory@80000000 {
index c29e5f4d86adb5bcd414e1ba8f00637aafb59f77..8f543cca7c21f154926de991b706640214bac826 100644 (file)
@@ -27,7 +27,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=tty0 console=ttyS4,115200 earlyprintk";
+               bootargs = "console=tty0 console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 084c455ad4cbfd99c2bd72ab11d856038be4db2d..bcc1820f5c073374992c23277669471ca97db9f2 100644 (file)
@@ -27,7 +27,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=tty0 console=ttyS4,115200 earlyprintk";
+               bootargs = "console=tty0 console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 73319917cb743d263d46ab8d5391c338399d0099..3ef8358ff764a0ec0470c54a59c5eb569c8613a6 100644 (file)
@@ -11,7 +11,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@40000000 {
index 42b37a2042417615b9c0721495063b5dc96ce4a2..c0847636f20b908b8069b842a6043e10e07cc21a 100644 (file)
@@ -11,7 +11,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 15c1f0ac81dcd8267e4791c1fc6bd2e7fa12283e..a52a289cee85ec944ff386493a0b67c0048a815e 100644 (file)
@@ -57,7 +57,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 8503152faaf085034a85c46c7f7c13687613b804..7d38d121ec6da91f80f6452d7f6ca1b46ea9dbba 100644 (file)
@@ -11,7 +11,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 91dced7e7849891485274206db0358dfa9beaaa7..3d4bdad27c2dcc278e93cf775cf6308b2e30ba91 100644 (file)
@@ -10,7 +10,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index eb4e93a57ff443fbff4c116d0b204a5150f2aacc..cd660c1ff3f503fd5afae505487e436146b0a635 100644 (file)
@@ -10,7 +10,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@40000000 {
index fd2e014dae75268516ed2a295bccea11028781bb..084f54866f386ee7abaa41b6b06e11fe070f96b2 100644 (file)
@@ -9,7 +9,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index d56b5ed09b37065411e16db0fc3851a50a074942..4816486c0c9eb8c2481ef3cf05078fa54d2cfba5 100644 (file)
@@ -10,7 +10,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index c1478d2db6026cedcdb266a91c75b3caf2c4e8ee..e863ec08897071158046c5c707a4795750d71857 100644 (file)
@@ -13,7 +13,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200n8";
+               bootargs = "console=ttyS4,115200n8 earlycon";
        };
 
        memory@80000000 {
index 01074b6e3e03e6e2327e93888f7bc7e133f6ca8f..328ef472c479d921f48a0d1ff0296d67af378a67 100644 (file)
@@ -11,7 +11,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@40000000 {
index 85d58a63ae90507d6e889cd2095e84f0767ee21d..230f3584bcab01d683d4c2a79ed065956e51b0d0 100644 (file)
@@ -10,7 +10,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 4bcc82046362b1bab988046ddf50c66fce2dc2ca..7ae4ea0d2931bf4c9b1c99b6b86c909292c9d042 100644 (file)
@@ -17,7 +17,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index 03c161493ffc44465470127368e512527bb7a298..61bc74b423cf3e5c0ae8672401f370fed2f9af15 100644 (file)
@@ -14,7 +14,7 @@
        };
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@80000000 {
index a68ff0675c28a05e1ed266da769625754f7cb656..9605e53f5bbfc0c1fba10d206d5d52fba3b4d05f 100644 (file)
@@ -28,7 +28,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "console=ttyS4,115200 earlyprintk";
+               bootargs = "console=ttyS4,115200 earlycon";
        };
 
        memory@40000000 {
index bc16ad2b5c80a379a1c8c3dea2e160ce06571ce6..50f3c6a5c0c8dfa592b643058420d1d893b35ec2 100644 (file)
@@ -11,7 +11,7 @@
 
        chosen {
                stdout-path = &uart5;
-               bootargs = "earlyprintk";
+               bootargs = "earlycon";
        };
 
        memory@80000000 {