ramips: introduce serial0 aliases
authorLuka Perkov <luka@openwrt.org>
Tue, 10 May 2016 22:37:14 +0000 (22:37 +0000)
committerLuka Perkov <luka@openwrt.org>
Tue, 10 May 2016 22:37:14 +0000 (22:37 +0000)
This patch introduces serial0 aliases in the ramips DTS files, which can
then be used to denote the active console instead of relying on bootargs.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
SVN-Revision: 49355

target/linux/ramips/dts/LINKIT7688.dts
target/linux/ramips/dts/mt7620a.dtsi
target/linux/ramips/dts/mt7620n.dtsi
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/dts/mt7628an.dtsi
target/linux/ramips/dts/rt2880.dtsi
target/linux/ramips/dts/rt3050.dtsi
target/linux/ramips/dts/rt3352.dtsi
target/linux/ramips/dts/rt3883.dtsi
target/linux/ramips/dts/rt5350.dtsi

index 2dfb98c12ece2fd3135420be38c580d0ad48aa70..bb38c88460944c281e023db5a873512aa46cfb8c 100644 (file)
                bootargs = "console=ttyS2,57600";
        };
 
+       aliases {
+               serial0 = &uart2;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
index 5edbdf9a9026f6c0ed0f6ba97d73d63a6dfa61e1..3c89880746ecb1f4fb3c934e44cd8e3bc59d2d1b 100644 (file)
@@ -23,6 +23,7 @@
        aliases {
                spi0 = &spi0;
                spi1 = &spi1;
+               serial0 = &uartlite;
        };
 
        palmbus@10000000 {
                        pinctrl-0 = <&spi_cs1>;
                };
 
-               uartlite@c00 {
+               uartlite: uartlite@c00 {
                        compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
                        reg = <0xc00 0x100>;
 
index e8ce3b23720ec6484e3c3072b746f4ab2157e123..7e66abe4fde163ce2b72cdab37ea8529c833ad41 100644 (file)
@@ -23,6 +23,7 @@
        aliases {
                spi0 = &spi0;
                spi1 = &spi1;
+               serial0 = &uartlite;
        };
 
        palmbus@10000000 {
                        pinctrl-0 = <&spi_cs1>;
                };
 
-               uartlite@c00 {
+               uartlite: uartlite@c00 {
                        compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
                        reg = <0xc00 0x100>;
 
index 24e0459666c0c67eee456178e6c83f648ae1fcd9..c055285bc63feab5213ea8361f83e6328410f579 100644 (file)
                compatible = "mti,cpu-interrupt-controller";
        };
 
+       aliases {
+               serial0 = &uartlite;
+       };
+
        cpuclock: cpuclock@0 {
                #clock-cells = <0>;
                compatible = "fixed-clock";
                            reg = <0x1fbf8000 0x8000>;
                };
 
-               uartlite@c00 {
+               uartlite: uartlite@c00 {
                        compatible = "ns16550a";
                        reg = <0xc00 0x100>;
 
index e120e56cf4edf4317f874284fe564f3e00d073a4..c1f03fc76c229054415681f8aad619e36f9dc211 100644 (file)
                bootargs = "console=ttyS0,57600";
        };
 
+       aliases {
+               serial0 = &uartlite;
+       };
+
        cpuintc: cpuintc@0 {
                #address-cells = <0>;
                #interrupt-cells = <1>;
                        status = "disabled";
                };
 
-               uartlite@c00 {
+               uartlite: uartlite@c00 {
                        compatible = "ns16550a";
                        reg = <0xc00 0x100>;
 
                        status = "disabled";
                };
 
-               uart2@e00 {
+               uart2: uart2@e00 {
                        compatible = "ns16550a";
                        reg = <0xe00 0x100>;
 
index 47ea4c343ec72baa213016aab127eedef525f3cc..dc3f0ba99f39651b47fab54b5596a32cfb03907e 100644 (file)
                bootargs = "console=ttyS0,57600";
        };
 
+       aliases {
+               serial0 = &uartlite;
+       };
+
        cpuintc: cpuintc@0 {
                #address-cells = <0>;
                #interrupt-cells = <1>;
                        status = "disabled";
                };
 
-               uartlite@c00 {
+               uartlite: uartlite@c00 {
                        compatible = "ralink,rt2880-uart", "ns16550a";
                        reg = <0xc00 0x100>;
 
index 8fcdeedd2e5a0e3c1b60918cfea7d21228a537ae..0a4cf1e4858f9ae28e8743d727abb729b6739912 100644 (file)
@@ -15,6 +15,7 @@
 
        aliases {
                spi0 = &spi0;
+               serial0 = &uartlite;
        };
 
        cpuintc: cpuintc@0 {
                        status = "disabled";
                };
 
-               uartlite@c00 {
+               uartlite: uartlite@c00 {
                        compatible = "ralink,rt3050-uart", "ralink,rt2880-uart", "ns16550a";
                        reg = <0xc00 0x100>;
 
index 0932b52406c48f62192ae51e72bb1f0e6117ba23..f9721d89e04cba8a02772fa18a5aecd94a459132 100644 (file)
@@ -23,6 +23,7 @@
        aliases {
                spi0 = &spi0;
                spi1 = &spi1;
+               serial0 = &uartlite;
        };
 
        palmbus@10000000 {
                        status = "disabled";
                };
 
-               uartlite@c00 {
+               uartlite: uartlite@c00 {
                        compatible = "ralink,rt3352-uart", "ralink,rt2880-uart", "ns16550a";
                        reg = <0xc00 0x100>;
 
index cd96b74bc7f8edf463cb2a798ff6fa6f23d679d0..fa070a1ec97e206655cfd6e4d16cad28b4dfc819 100644 (file)
@@ -16,6 +16,7 @@
        aliases {
                spi0 = &spi0;
                spi1 = &spi1;
+               serial0 = &uartlite;
        };
 
        cpuintc: cpuintc@0 {
                        status = "disabled";
                };
 
-               uartlite@c00 {
+               uartlite: uartlite@c00 {
                        compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a";
                        reg = <0xc00 0x100>;
 
index b8712e9849e1e4ba5e6605e4eac47f8cce61c062..226d4a401f98f316af0a460c6b6f5ef6e392f373 100644 (file)
@@ -23,6 +23,7 @@
        aliases {
                spi0 = &spi0;
                spi1 = &spi1;
+               serial0 = &uartlite;
        };
 
        palmbus@10000000 {
                        status = "disabled";
                };
 
-               uartlite@c00 {
+               uartlite: uartlite@c00 {
                        compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
                        reg = <0xc00 0x100>;