Skip to contentSkip to conversation

ARM: dts: DRA7: Add aliases for all serial ports

PATCH In review Nishanth Menon 3 participants 4 messages Oct 21, 2014 – Nov 10, 2014 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: DRA7: Add aliases for all serial ports

Add serial port aliases for consoles > 6.

---
 arch/arm/boot/dts/dra7.dtsi |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/dra7.dtsi +4 -0
index 9cc9843..208dd83 100644
@@ -34,6 +34,10 @@
 		serial3 = &uart4;
 		serial4 = &uart5;
 		serial5 = &uart6;
+		serial6 = &uart7;
+		serial7 = &uart8;
+		serial8 = &uart9;
+		serial9 = &uart10;
 	};
 
 	timer {
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 12 lines · On Tuesday 21 October 2014 11:18:15 Nishanth Menon wrote:

Add serial port aliases for consoles > 6.

---
 arch/arm/boot/dts/dra7.dtsi |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/dra7.dtsi +0 -0
index 9cc9843..208dd83 100644

arch/arm/boot/dts/dra7.dtsi line 41

Quoted 8 lines
arch/arm/boot/dts/dra7.dtsi +4 -0
@@ -34,6 +34,10 @@
                serial3 = &uart4;
                serial4 = &uart5;
                serial5 = &uart6;
+               serial6 = &uart7;
+               serial7 = &uart8;
+               serial8 = &uart9;
+               serial9 = &uart10;
 

I think this was wrong to start with: The aliases should be in the per-board .dts file and only list the ones that are actually connected to the outside.

Otherwise the numbering won't match what's written on the board.

Arnd

#2 lore raw
Quoted 25 lines · Arnd Bergmann
Quoted 12 lines · On Tuesday 21 October 2014 11:18:15 Nishanth Menon wrote:

Add serial port aliases for consoles > 6.

---
 arch/arm/boot/dts/dra7.dtsi |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/dra7.dtsi +0 -0
index 9cc9843..208dd83 100644

arch/arm/boot/dts/dra7.dtsi line 41

Quoted 8 lines
arch/arm/boot/dts/dra7.dtsi +4 -0
@@ -34,6 +34,10 @@
                serial3 = &uart4;
                serial4 = &uart5;
                serial5 = &uart6;
+               serial6 = &uart7;
+               serial7 = &uart8;
+               serial8 = &uart9;
+               serial9 = &uart10;
 

I think this was wrong to start with: The aliases should be in the per-board .dts file and only list the ones that are actually connected to the outside.

Quoted 1 line

Otherwise the numbering won't match what's written on the board.

At least in the case of DRA7 boards, they are not written specifically since they come out over onboard FTDI usb2serial.

This will at least ensure that /dev/ttyO9 will always point to uart10 no matter the board, instead of having ttyO0 always pointing to console serial port no matter the board (and having to guess which figure out it actually was aliased to).

Signature · 2 lines
Regards,
Nishanth Menon
#3 lore raw
Quoted 28 lines · Nishanth Menon
Quoted 25 lines · Arnd Bergmann
Quoted 12 lines · On Tuesday 21 October 2014 11:18:15 Nishanth Menon wrote:

Add serial port aliases for consoles > 6.

---
 arch/arm/boot/dts/dra7.dtsi |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/dra7.dtsi +0 -0
index 9cc9843..208dd83 100644

arch/arm/boot/dts/dra7.dtsi line 41

Quoted 8 lines
arch/arm/boot/dts/dra7.dtsi +4 -0
@@ -34,6 +34,10 @@
                serial3 = &uart4;
                serial4 = &uart5;
                serial5 = &uart6;
+               serial6 = &uart7;
+               serial7 = &uart8;
+               serial8 = &uart9;
+               serial9 = &uart10;
 

I think this was wrong to start with: The aliases should be in the per-board .dts file and only list the ones that are actually connected to the outside.

Quoted 1 line

Otherwise the numbering won't match what's written on the board.

Quoted 7 lines

At least in the case of DRA7 boards, they are not written specifically since they come out over onboard FTDI usb2serial.

This will at least ensure that /dev/ttyO9 will always point to uart10 no matter the board, instead of having ttyO0 always pointing to console serial port no matter the board (and having to guess which figure out it actually was aliased to).

It seems that having the UART numbering make sense is a good reason to apply this one. So applying into omap-for-v3.19/dt.

Regards,

Tony