ARM: dts: socfpga: fix definitions of serial console
authorMatthew Gerlach <mgerlach@opensource.altera.com>
Thu, 12 May 2016 17:24:42 +0000 (10:24 -0700)
committerDinh Nguyen <dinguyen@kernel.org>
Wed, 8 Jun 2016 19:09:11 +0000 (14:09 -0500)
The notion of which uart instance is serial0 or serial1
is board specific rather than generic to the chip. This
patch removes the serial aliases from generic chip dtsi
and adds an appropriate alias to the board specific dtsi.
By making the alias for serial0 point to uart1 for the arria10_socdk,
the linux boot command line supports specifying console=ttyS0,115200
for backwards compatibility, and it supports not specifying
the console at all.

Signed-off-by: Matthew Gerlach <mgerlach@opensource.altera.com>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
arch/arm/boot/dts/socfpga_arria10.dtsi
arch/arm/boot/dts/socfpga_arria10_socdk.dtsi

index 21f6c3ce2c524c8ad7b39a024bce2eb944269303..1c4fc275c661cbcb39abe74c10930dfdf20ff3fa 100644 (file)
        #address-cells = <1>;
        #size-cells = <1>;
 
-       aliases {
-               serial0 = &uart0;
-               serial1 = &uart1;
-       };
-
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
index ab33ee3cc8c31931a7abeda3842d62c60f47602b..8e3a4adc389f5b105f94437ded33e238fe64708e 100644 (file)
 
        aliases {
                ethernet0 = &gmac0;
+               serial0 = &uart1;
        };
 
        chosen {
                bootargs = "earlyprintk";
-               stdout-path = "serial1:115200n8";
+               stdout-path = "serial0:115200n8";
        };
 
        memory {
This page took 0.043357 seconds and 5 git commands to generate.