[PATCH] arm64: dts: fsl-ls2085a: Add serial aliases
Arnd Bergmann
arnd at arndb.de
Mon Sep 14 23:43:38 PDT 2015
On Monday 14 September 2015 19:48:27 Scott Wood wrote:
> These will allow U-Boot to set linux,stdout-path in /chosen based on
> the active console device, which will allow devicetree-based earlycon.
>
> Signed-off-by: Scott Wood <scottwood at freescale.com>
> ---
> arch/arm64/boot/dts/freescale/fsl-ls2085a.dtsi | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/fsl-ls2085a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls2085a.dtsi
> index e281ceb..eae454e 100644
> --- a/arch/arm64/boot/dts/freescale/fsl-ls2085a.dtsi
> +++ b/arch/arm64/boot/dts/freescale/fsl-ls2085a.dtsi
> @@ -55,6 +55,11 @@
> #address-cells = <2>;
> #size-cells = <2>;
>
> + aliases {
> + serial0 = &serial0;
> + serial1 = &serial1;
> + };
> +
I normally ask people to put the aliases into the board specific dts file,
to account for machines that do not have all the uarts, or that number them
differently from the SoC.
I didn't know about U-Boot setting the stdout-path property, but that's
great, as long as U-Boot uses the same numbering of the uarts that the
board uses. Do you know if that is normally the case?
Arnd
More information about the linux-arm-kernel
mailing list