Skip to content

Commit

Permalink
ARM: ux500: define serial port aliases
Browse files Browse the repository at this point in the history
This enumerates the PL011 serial ports on the Ux500. This is
necessary to do if we want to remove one of the serial ports,
since userspace depends on console to be present on ttyAMA2
and we must not break userspace.

Cc: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Linus Walleij authored and Olof Johansson committed Jul 14, 2015
1 parent b2b9dc6 commit 109978d
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 3 deletions.
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/ste-ccu8540.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
model = "ST-Ericsson U8540 platform with Device Tree";
compatible = "st-ericsson,ccu8540", "st-ericsson,u8540";

/* This stablilizes the serial port enumeration */
aliases {
serial0 = &ux500_serial0;
serial1 = &ux500_serial1;
serial2 = &ux500_serial2;
};

memory@0 {
device_type = "memory";
reg = <0x20000000 0x1f000000>, <0xc0000000 0x3f000000>;
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/ste-ccu9540.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
model = "ST-Ericsson CCU9540 platform with Device Tree";
compatible = "st-ericsson,ccu9540", "st-ericsson,u9540";

/* This stablilizes the serial port enumeration */
aliases {
serial0 = &ux500_serial0;
serial1 = &ux500_serial1;
serial2 = &ux500_serial2;
};

memory {
reg = <0x00000000 0x20000000>;
};
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/boot/dts/ste-dbx5x0.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@
power-domains = <&pm_domains DOMAIN_VAPE>;
};

uart@80120000 {
ux500_serial0: uart@80120000 {
compatible = "arm,pl011", "arm,primecell";
reg = <0x80120000 0x1000>;
interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
Expand All @@ -986,7 +986,7 @@
status = "disabled";
};

uart@80121000 {
ux500_serial1: uart@80121000 {
compatible = "arm,pl011", "arm,primecell";
reg = <0x80121000 0x1000>;
interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>;
Expand All @@ -1001,7 +1001,7 @@
status = "disabled";
};

uart@80007000 {
ux500_serial2: uart@80007000 {
compatible = "arm,pl011", "arm,primecell";
reg = <0x80007000 0x1000>;
interrupts = <0 26 IRQ_TYPE_LEVEL_HIGH>;
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/ste-hrefprev60-stuib.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
model = "ST-Ericsson HREF (pre-v60) and ST UIB";
compatible = "st-ericsson,mop500", "st-ericsson,u8500";

/* This stablilizes the serial port enumeration */
aliases {
serial0 = &ux500_serial0;
serial1 = &ux500_serial1;
serial2 = &ux500_serial2;
};

soc {
/* Reset line for the BU21013 touchscreen */
i2c@80110000 {
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/ste-hrefprev60-tvk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@
/ {
model = "ST-Ericsson HREF (pre-v60) and TVK1281618 UIB";
compatible = "st-ericsson,mop500", "st-ericsson,u8500";

/* This stablilizes the serial port enumeration */
aliases {
serial0 = &ux500_serial0;
serial1 = &ux500_serial1;
serial2 = &ux500_serial2;
};
};
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/ste-hrefv60plus-stuib.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
model = "ST-Ericsson HREF (v60+) and ST UIB";
compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";

/* This stablilizes the serial port enumeration */
aliases {
serial0 = &ux500_serial0;
serial1 = &ux500_serial1;
serial2 = &ux500_serial2;
};

soc {
/* Reset line for the BU21013 touchscreen */
i2c@80110000 {
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@
/ {
model = "ST-Ericsson HREF (v60+) and TVK1281618 UIB";
compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";

/* This stablilizes the serial port enumeration */
aliases {
serial0 = &ux500_serial0;
serial1 = &ux500_serial1;
serial2 = &ux500_serial2;
};
};
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/ste-snowball.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
model = "Calao Systems Snowball platform with device tree";
compatible = "calaosystems,snowball-a9500", "st-ericsson,u9500";

/* This stablilizes the serial port enumeration */
aliases {
serial0 = &ux500_serial0;
serial1 = &ux500_serial1;
serial2 = &ux500_serial2;
};

memory {
reg = <0x00000000 0x20000000>;
};
Expand Down

0 comments on commit 109978d

Please sign in to comment.