diff mbox

[3/5] ARM: sun5i: a13: Add missing serial aliases

Message ID 1388945627-3432-3-git-send-email-maxime.ripard@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Maxime Ripard Jan. 5, 2014, 6:13 p.m. UTC
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(+)

Comments

Arnd Bergmann Jan. 6, 2014, 12:47 p.m. UTC | #1
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
Maxime Ripard Jan. 7, 2014, 10:49 p.m. UTC | #2
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
diff mbox

Patch

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