Skip to contentSkip to conversation

ARM: sun4i: a10: Add missing serial aliases

PATCH New Maxime Ripard 2 participants 7 messages Jan 5, 2014 – Jan 7, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/5 ARM: sun4i: a10: Add missing serial aliases

Some UART aliases have been defined, but not all of them. Add the remaining ones to be consistent and to ease the parsing of the DT by the bootloaders.

---
 arch/arm/boot/dts/sun4i-a10.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/sun4i-a10.dtsi +6 -0
index 040bb0e..28273f9 100644
@@ -19,6 +19,12 @@
 		ethernet0 = &emac;
 		serial0 = &uart0;
 		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
+		serial4 = &uart4;
+		serial5 = &uart5;
+		serial6 = &uart6;
+		serial7 = &uart7;
 	};
 
 	cpus {
Signature · 1 line
1.8.4.2
#1 lore raw

PATCH 2/5 ARM: sun5i: a10s: Add missing serial aliases

Some UART aliases have been defined, but not all of them. Add the remaining ones to be consistent and to ease the parsing of the DT by the bootloaders.

---
 arch/arm/boot/dts/sun5i-a10s.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/sun5i-a10s.dtsi +4 -0
index ea16054..2318082 100644
@@ -18,6 +18,10 @@
 
 	aliases {
 		ethernet0 = &emac;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
 	};
 
 	cpus {
Signature · 1 line
1.8.4.2
#2 lore raw

PATCH 3/5 ARM: sun5i: a13: Add missing serial aliases

In reply to Maxime Ripard

Some UART aliases have been defined, but not all of them. Add the remaining ones to be consistent and to ease the parsing of the DT by the bootloaders.

---
 arch/arm/boot/dts/sun5i-a13.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/sun5i-a13.dtsi +5 -0
index 320335a..15d66ac 100644
@@ -16,6 +16,11 @@
 / {
 	interrupt-parent = <&intc>;
 
+	aliases {
+		serial1 = &uart1;
+		serial3 = &uart3;
+	};
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
Signature · 1 line
1.8.4.2
#3 lore raw

PATCH 3/5 ARM: sun5i: a13: Add missing serial aliases

arch/arm/boot/dts/sun5i-a13.dtsi line 23

Quoted 5 lines · Maxime Ripard
arch/arm/boot/dts/sun5i-a13.dtsi +5 -0
+       aliases {
+               serial1 = &uart1;
+               serial3 = &uart3;
+       };
+

If you only have two uarts active, shouldn't they be aliases serial0 and serial1?

Arnd

#4 lore raw

PATCH 3/5 ARM: sun5i: a13: Add missing serial aliases

Hi Arnd,

Quoted 9 lines · Arnd Bergmann

arch/arm/boot/dts/sun5i-a13.dtsi line 23

Quoted 5 lines · Maxime Ripard
arch/arm/boot/dts/sun5i-a13.dtsi +5 -0
+       aliases {
+               serial1 = &uart1;
+               serial3 = &uart3;
+       };
+

If you only have two uarts active, shouldn't they be aliases serial0 and serial1?

Ah, yep, right.

Thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140107/37d38299/attachment.sig>
#5 lore raw

PATCH 4/5 ARM: sun6i: Add missing serial aliases

In reply to Maxime Ripard

Some UART aliases have been defined, but not all of them. Add the remaining ones to be consistent and to ease the parsing of the DT by the bootloaders.

---
 arch/arm/boot/dts/sun6i-a31.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/sun6i-a31.dtsi +10 -0
index 5256ad9..092bf97 100644
@@ -16,6 +16,16 @@
 / {
 	interrupt-parent = <&gic>;
 
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
+		serial4 = &uart4;
+		serial5 = &uart5;
+	};
+
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
Signature · 1 line
1.8.4.2
#6 lore raw

PATCH 5/5 ARM: sun7i: Add missing serial aliases

In reply to Maxime Ripard

Some UART aliases have been defined, but not all of them. Add the remaining ones to be consistent and to ease the parsing of the DT by the bootloaders.

---
 arch/arm/boot/dts/sun7i-a20.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/sun7i-a20.dtsi +8 -0
index 119f066..b476855 100644
@@ -18,6 +18,14 @@
 
 	aliases {
 		ethernet0 = &emac;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
+		serial4 = &uart4;
+		serial5 = &uart5;
+		serial6 = &uart6;
+		serial7 = &uart7;
 	};
 
 	cpus {
Signature · 1 line
1.8.4.2