[U-Boot] [PATCH v1 07/11] DTS: Add imx6q-display5-u-boot.dtsi file with u-boot specific properties

Adam Ford aford173 at gmail.com
Mon Jun 10 10:52:24 UTC 2019


On Sun, Jun 9, 2019 at 3:55 PM Lukasz Majewski <lukma at denx.de> wrote:
>
> This file setups UART5 based serial to be used as pre-relocation
> console in the U-Boot proper.
>
> On purpose pinux configuration is omitted here as it has been already
> done in SPL. For early pre-relocation code we only need the serial
> device from DTS.
>
> Signed-off-by: Lukasz Majewski <lukma at denx.de>
> ---
>
>  arch/arm/dts/imx6q-display5-u-boot.dtsi | 44 +++++++++++++++++++++++++++++++++
>  1 file changed, 44 insertions(+)
>  create mode 100644 arch/arm/dts/imx6q-display5-u-boot.dtsi
>
> diff --git a/arch/arm/dts/imx6q-display5-u-boot.dtsi b/arch/arm/dts/imx6q-display5-u-boot.dtsi
> new file mode 100644
> index 0000000000..b942218b7a
> --- /dev/null
> +++ b/arch/arm/dts/imx6q-display5-u-boot.dtsi
> @@ -0,0 +1,44 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Copyright 2019
> + * Lukasz Majewski, DENX Software Engineering, lukma at denx.de
> + *
> + * SPDX-License-Identifier:     GPL-2.0+ or X11
> + */
> +
> +/*
> + * The minimal augmentation DTS U-Boot file to allow UART5
> + * configuration in the pre-relocation stage of U-Boot
> + * proper.
> + *
> + * As the same UART is already configured in SPL, we don't need
> + * setup pinmux for it again.
> + */
> +
> +/ {
> +       aliases {
> +               mmc0 = &usdhc4;
> +       };
> +
> +       soc {
> +               u-boot,dm-pre-reloc;
> +
> +               aips-bus at 2100000 {
> +                       u-boot,dm-pre-reloc;
> +               };
> +       };

You could consider including  arch/arm/dts/imx6qdl-u-boot.dtsi.  This
would have the soc node, aips-bus node, and the iomuxc and then you
could just add the uart, stdio-patch and aliases.  It's just a
suggestion.


adam
> +
> +       chosen {
> +               stdout-path = &uart5;
> +       };
> +};
> +
> +&i2c3 {
> +       at24 at 50 {
> +               u-boot,i2c-offset-len = <2>;
> +       };
> +};
> +
> +&uart5 {
> +       u-boot,dm-pre-reloc;
> +};
> --
> 2.11.0
>


More information about the U-Boot mailing list