ramips: introduce serial0 aliases

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>
This commit is contained in:
Stanislav Galabov 2016-05-09 07:20:02 +03:00 committed by Jo-Philipp Wich
parent b062266ad6
commit b8f73d7f0a
10 changed files with 32 additions and 10 deletions

View file

@ -10,6 +10,10 @@
bootargs = "console=ttyS2,57600"; bootargs = "console=ttyS2,57600";
}; };
aliases {
serial0 = &uart2;
};
memory@0 { memory@0 {
device_type = "memory"; device_type = "memory";
reg = <0x0 0x8000000>; reg = <0x0 0x8000000>;

View file

@ -23,6 +23,7 @@
aliases { aliases {
spi0 = &spi0; spi0 = &spi0;
spi1 = &spi1; spi1 = &spi1;
serial0 = &uartlite;
}; };
palmbus@10000000 { palmbus@10000000 {
@ -239,7 +240,7 @@
pinctrl-0 = <&spi_cs1>; pinctrl-0 = <&spi_cs1>;
}; };
uartlite@c00 { uartlite: uartlite@c00 {
compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a"; compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
reg = <0xc00 0x100>; reg = <0xc00 0x100>;

View file

@ -23,6 +23,7 @@
aliases { aliases {
spi0 = &spi0; spi0 = &spi0;
spi1 = &spi1; spi1 = &spi1;
serial0 = &uartlite;
}; };
palmbus@10000000 { palmbus@10000000 {
@ -191,7 +192,7 @@
pinctrl-0 = <&spi_cs1>; pinctrl-0 = <&spi_cs1>;
}; };
uartlite@c00 { uartlite: uartlite@c00 {
compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a"; compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
reg = <0xc00 0x100>; reg = <0xc00 0x100>;

View file

@ -22,6 +22,10 @@
compatible = "mti,cpu-interrupt-controller"; compatible = "mti,cpu-interrupt-controller";
}; };
aliases {
serial0 = &uartlite;
};
cpuclock: cpuclock@0 { cpuclock: cpuclock@0 {
#clock-cells = <0>; #clock-cells = <0>;
compatible = "fixed-clock"; compatible = "fixed-clock";
@ -100,7 +104,7 @@
reg = <0x1fbf8000 0x8000>; reg = <0x1fbf8000 0x8000>;
}; };
uartlite@c00 { uartlite: uartlite@c00 {
compatible = "ns16550a"; compatible = "ns16550a";
reg = <0xc00 0x100>; reg = <0xc00 0x100>;

View file

@ -13,6 +13,10 @@
bootargs = "console=ttyS0,57600"; bootargs = "console=ttyS0,57600";
}; };
aliases {
serial0 = &uartlite;
};
cpuintc: cpuintc@0 { cpuintc: cpuintc@0 {
#address-cells = <0>; #address-cells = <0>;
#interrupt-cells = <1>; #interrupt-cells = <1>;
@ -154,7 +158,7 @@
status = "disabled"; status = "disabled";
}; };
uartlite@c00 { uartlite: uartlite@c00 {
compatible = "ns16550a"; compatible = "ns16550a";
reg = <0xc00 0x100>; reg = <0xc00 0x100>;
@ -192,7 +196,7 @@
status = "disabled"; status = "disabled";
}; };
uart2@e00 { uart2: uart2@e00 {
compatible = "ns16550a"; compatible = "ns16550a";
reg = <0xe00 0x100>; reg = <0xe00 0x100>;

View file

@ -13,6 +13,10 @@
bootargs = "console=ttyS0,57600"; bootargs = "console=ttyS0,57600";
}; };
aliases {
serial0 = &uartlite;
};
cpuintc: cpuintc@0 { cpuintc: cpuintc@0 {
#address-cells = <0>; #address-cells = <0>;
#interrupt-cells = <1>; #interrupt-cells = <1>;
@ -110,7 +114,7 @@
status = "disabled"; status = "disabled";
}; };
uartlite@c00 { uartlite: uartlite@c00 {
compatible = "ralink,rt2880-uart", "ns16550a"; compatible = "ralink,rt2880-uart", "ns16550a";
reg = <0xc00 0x100>; reg = <0xc00 0x100>;

View file

@ -15,6 +15,7 @@
aliases { aliases {
spi0 = &spi0; spi0 = &spi0;
serial0 = &uartlite;
}; };
cpuintc: cpuintc@0 { cpuintc: cpuintc@0 {
@ -164,7 +165,7 @@
status = "disabled"; status = "disabled";
}; };
uartlite@c00 { uartlite: uartlite@c00 {
compatible = "ralink,rt3050-uart", "ralink,rt2880-uart", "ns16550a"; compatible = "ralink,rt3050-uart", "ralink,rt2880-uart", "ns16550a";
reg = <0xc00 0x100>; reg = <0xc00 0x100>;

View file

@ -23,6 +23,7 @@
aliases { aliases {
spi0 = &spi0; spi0 = &spi0;
spi1 = &spi1; spi1 = &spi1;
serial0 = &uartlite;
}; };
palmbus@10000000 { palmbus@10000000 {
@ -175,7 +176,7 @@
status = "disabled"; status = "disabled";
}; };
uartlite@c00 { uartlite: uartlite@c00 {
compatible = "ralink,rt3352-uart", "ralink,rt2880-uart", "ns16550a"; compatible = "ralink,rt3352-uart", "ralink,rt2880-uart", "ns16550a";
reg = <0xc00 0x100>; reg = <0xc00 0x100>;

View file

@ -16,6 +16,7 @@
aliases { aliases {
spi0 = &spi0; spi0 = &spi0;
spi1 = &spi1; spi1 = &spi1;
serial0 = &uartlite;
}; };
cpuintc: cpuintc@0 { cpuintc: cpuintc@0 {
@ -195,7 +196,7 @@
status = "disabled"; status = "disabled";
}; };
uartlite@c00 { uartlite: uartlite@c00 {
compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a"; compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a";
reg = <0xc00 0x100>; reg = <0xc00 0x100>;

View file

@ -23,6 +23,7 @@
aliases { aliases {
spi0 = &spi0; spi0 = &spi0;
spi1 = &spi1; spi1 = &spi1;
serial0 = &uartlite;
}; };
palmbus@10000000 { palmbus@10000000 {
@ -184,7 +185,7 @@
status = "disabled"; status = "disabled";
}; };
uartlite@c00 { uartlite: uartlite@c00 {
compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a"; compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
reg = <0xc00 0x100>; reg = <0xc00 0x100>;