linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] ARM: sun4i: a10: Add missing serial aliases
@ 2014-01-05 18:13 Maxime Ripard
  2014-01-05 18:13 ` [PATCH 2/5] ARM: sun5i: a10s: " Maxime Ripard
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Maxime Ripard @ 2014-01-05 18:13 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/boot/dts/sun4i-a10.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
index 040bb0e..28273f9 100644
--- a/arch/arm/boot/dts/sun4i-a10.dtsi
+++ b/arch/arm/boot/dts/sun4i-a10.dtsi
@@ -19,6 +19,12 @@
 		ethernet0 = &emac;
 		serial0 = &uart0;
 		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
+		serial4 = &uart4;
+		serial5 = &uart5;
+		serial6 = &uart6;
+		serial7 = &uart7;
 	};
 
 	cpus {
-- 
1.8.4.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/5] ARM: sun5i: a10s: Add missing serial aliases
  2014-01-05 18:13 [PATCH 1/5] ARM: sun4i: a10: Add missing serial aliases Maxime Ripard
@ 2014-01-05 18:13 ` Maxime Ripard
  2014-01-05 18:13 ` [PATCH 3/5] ARM: sun5i: a13: " Maxime Ripard
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2014-01-05 18:13 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/boot/dts/sun5i-a10s.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi
index ea16054..2318082 100644
--- a/arch/arm/boot/dts/sun5i-a10s.dtsi
+++ b/arch/arm/boot/dts/sun5i-a10s.dtsi
@@ -18,6 +18,10 @@
 
 	aliases {
 		ethernet0 = &emac;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
 	};
 
 	cpus {
-- 
1.8.4.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/5] ARM: sun5i: a13: Add missing serial aliases
  2014-01-05 18:13 [PATCH 1/5] ARM: sun4i: a10: Add missing serial aliases Maxime Ripard
  2014-01-05 18:13 ` [PATCH 2/5] ARM: sun5i: a10s: " Maxime Ripard
@ 2014-01-05 18:13 ` Maxime Ripard
  2014-01-06 12:47   ` Arnd Bergmann
  2014-01-05 18:13 ` [PATCH 4/5] ARM: sun6i: " Maxime Ripard
  2014-01-05 18:13 ` [PATCH 5/5] ARM: sun7i: " Maxime Ripard
  3 siblings, 1 reply; 7+ messages in thread
From: Maxime Ripard @ 2014-01-05 18:13 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/boot/dts/sun5i-a13.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi
index 320335a..15d66ac 100644
--- a/arch/arm/boot/dts/sun5i-a13.dtsi
+++ b/arch/arm/boot/dts/sun5i-a13.dtsi
@@ -16,6 +16,11 @@
 / {
 	interrupt-parent = <&intc>;
 
+	aliases {
+		serial1 = &uart1;
+		serial3 = &uart3;
+	};
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
-- 
1.8.4.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 4/5] ARM: sun6i: Add missing serial aliases
  2014-01-05 18:13 [PATCH 1/5] ARM: sun4i: a10: Add missing serial aliases Maxime Ripard
  2014-01-05 18:13 ` [PATCH 2/5] ARM: sun5i: a10s: " Maxime Ripard
  2014-01-05 18:13 ` [PATCH 3/5] ARM: sun5i: a13: " Maxime Ripard
@ 2014-01-05 18:13 ` Maxime Ripard
  2014-01-05 18:13 ` [PATCH 5/5] ARM: sun7i: " Maxime Ripard
  3 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2014-01-05 18:13 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/boot/dts/sun6i-a31.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
index 5256ad9..092bf97 100644
--- a/arch/arm/boot/dts/sun6i-a31.dtsi
+++ b/arch/arm/boot/dts/sun6i-a31.dtsi
@@ -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>;
-- 
1.8.4.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 5/5] ARM: sun7i: Add missing serial aliases
  2014-01-05 18:13 [PATCH 1/5] ARM: sun4i: a10: Add missing serial aliases Maxime Ripard
                   ` (2 preceding siblings ...)
  2014-01-05 18:13 ` [PATCH 4/5] ARM: sun6i: " Maxime Ripard
@ 2014-01-05 18:13 ` Maxime Ripard
  3 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2014-01-05 18:13 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/boot/dts/sun7i-a20.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
index 119f066..b476855 100644
--- a/arch/arm/boot/dts/sun7i-a20.dtsi
+++ b/arch/arm/boot/dts/sun7i-a20.dtsi
@@ -18,6 +18,14 @@
 
 	aliases {
 		ethernet0 = &emac;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
+		serial4 = &uart4;
+		serial5 = &uart5;
+		serial6 = &uart6;
+		serial7 = &uart7;
 	};
 
 	cpus {
-- 
1.8.4.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/5] ARM: sun5i: a13: Add missing serial aliases
  2014-01-05 18:13 ` [PATCH 3/5] ARM: sun5i: a13: " Maxime Ripard
@ 2014-01-06 12:47   ` Arnd Bergmann
  2014-01-07 22:49     ` Maxime Ripard
  0 siblings, 1 reply; 7+ messages in thread
From: Arnd Bergmann @ 2014-01-06 12:47 UTC (permalink / raw)
  To: linux-arm-kernel

On Sunday 05 January 2014, Maxime Ripard wrote:
> +       aliases {
> +               serial1 = &uart1;
> +               serial3 = &uart3;
> +       };
> +

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

	Arnd

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 3/5] ARM: sun5i: a13: Add missing serial aliases
  2014-01-06 12:47   ` Arnd Bergmann
@ 2014-01-07 22:49     ` Maxime Ripard
  0 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2014-01-07 22:49 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Arnd,

On Mon, Jan 06, 2014 at 01:47:57PM +0100, Arnd Bergmann wrote:
> On Sunday 05 January 2014, Maxime Ripard wrote:
> > +       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

-- 
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>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-07 22:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-05 18:13 [PATCH 1/5] ARM: sun4i: a10: Add missing serial aliases Maxime Ripard
2014-01-05 18:13 ` [PATCH 2/5] ARM: sun5i: a10s: " Maxime Ripard
2014-01-05 18:13 ` [PATCH 3/5] ARM: sun5i: a13: " Maxime Ripard
2014-01-06 12:47   ` Arnd Bergmann
2014-01-07 22:49     ` Maxime Ripard
2014-01-05 18:13 ` [PATCH 4/5] ARM: sun6i: " Maxime Ripard
2014-01-05 18:13 ` [PATCH 5/5] ARM: sun7i: " Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).