Skip to contentSkip to conversation

ARM: dts: aspeed: Assign vuart to serial5

PATCH Applied Lei YU 2 participants 2 messages Aug 24, 2017 – Aug 25, 2017

Subsystems (2)
lore
Share & tools
lore

Lei YU

author
#0 lore raw

PATCH 1/1 ARM: dts: aspeed: Assign vuart to serial5

vuart may be initialized earlier than uart1 and occupies ttyS0, and causes uart1 to be ttyS1, while uart1 is expected to be ttyS0. Add alias of serial5 for vuart, so it is guaranteed to be ttyS5 and does not conflict with other uarts.

---
 arch/arm/boot/dts/aspeed-g4.dtsi | 1 +
 arch/arm/boot/dts/aspeed-g5.dtsi | 1 +
 2 files changed, 2 insertions(+)
arch/arm/boot/dts/aspeed-g4.dtsi +1 -0
index 1525932..a83b6a8 100644
@@ -38,6 +38,7 @@
 		serial2 = &uart3;
 		serial3 = &uart4;
 		serial4 = &uart5;
+		serial5 = &vuart;
 	};
 
 	clocks {
arch/arm/boot/dts/aspeed-g5.dtsi +1 -0
index 72b6638..cdea4f4 100644
@@ -38,6 +38,7 @@
 		serial2 = &uart3;
 		serial3 = &uart4;
 		serial4 = &uart5;
+		serial5 = &vuart;
 	};
 
 	ahb {
Signature · 1 line
1.9.1
#1 lore raw
Quoted 6 lines · Lei YU

vuart may be initialized earlier than uart1 and occupies ttyS0, and causes uart1 to be ttyS1, while uart1 is expected to be ttyS0. Add alias of serial5 for vuart, so it is guaranteed to be ttyS5 and does not conflict with other uarts.

Applied to dev-4.10.

Thanks,

Andrew

Quoted 29 lines

---
 arch/arm/boot/dts/aspeed-g4.dtsi | 1 +
 arch/arm/boot/dts/aspeed-g5.dtsi | 1 +

 2 files changed, 2 insertions(+)
arch/arm/boot/dts/aspeed-g4.dtsi +0 -0
index 1525932..a83b6a8 100644
@@ -38,6 +38,7 @@
 >  		serial2 = &uart3;
 >  		serial3 = &uart4;
 >  		serial4 = &uart5;
 > +		serial5 = &vuart;
 >  	};

Quoted 1 line

  clocks {

arch/arm/boot/dts/aspeed-g5.dtsi +0 -0
index 72b6638..cdea4f4 100644
@@ -38,6 +38,7 @@
 >  		serial2 = &uart3;
 >  		serial3 = &uart4;
 >  		serial4 = &uart5;
 > +		serial5 = &vuart;
 >  	};

Quoted 1 line

  ahb {