All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 07/11] DTS: Add imx6q-display5-u-boot.dtsi file with u-boot specific properties
Date: Mon, 10 Jun 2019 14:23:07 +0200	[thread overview]
Message-ID: <20190610142307.7b939277@jawa> (raw)
In-Reply-To: <CAHCN7xJeFLSU6BXu+B+fFB-JDTKv_EgGXLV4DLQPc7evPcRf3w@mail.gmail.com>

Hi Adam,

> On Sun, Jun 9, 2019 at 3:55 PM Lukasz Majewski <lukma@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@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.

Thanks for the suggestion. Indeed in the first draft of this conversion
I indeed used the imx6qdl-u-boot.dts [1] and then included the rest.

However, my goal is to not start any unnecessary devices before
relocation for U-Boot proper (excluding the serial, which is only used).

Unfortunately, the imx6qdl-u-boot.dts defines the above properties as
'u-boot,dm-spl' which I want to avoid (as SPL for now must be left
untouched).

Moreover, the gpio1 and iomux have the 'u-boot,dm-spl' property, which
I do not want to use.

I will probably reuse this file when we convert SPL to DM. 



[1] -
http://git.denx.de/?p=u-boot/u-boot-dfu.git;a=blob;f=arch/arm/dts/imx6qdl-u-boot.dtsi;h=0aa29e38b831deb48db8990bc00929dbd3877a39;hb=refs/heads/master

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




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190610/c7a61d21/attachment.sig>

  reply	other threads:[~2019-06-10 12:23 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-09 20:54 [U-Boot] [PATCH v1 00/11] DM: display5: Convert display5 board to DM/DTS (including 'factory' setup) Lukasz Majewski
2019-06-09 20:54 ` [U-Boot] [PATCH v1 01/11] cosmetic: display5: Remove not needed comments Lukasz Majewski
2019-06-10  1:36   ` Peng Fan
2019-07-20  8:57   ` sbabic at denx.de
2019-06-09 20:54 ` [U-Boot] [PATCH v1 02/11] cosmetic: Update comment in cmd/eeprom.c Lukasz Majewski
2019-06-10  1:36   ` Peng Fan
2019-07-20  8:45   ` sbabic at denx.de
2019-06-09 20:54 ` [U-Boot] [PATCH v1 03/11] ARM: display5: Fix CS check after moving some SPI related CONFIGs to Kconfig Lukasz Majewski
2019-07-20  8:46   ` sbabic at denx.de
2019-06-09 20:54 ` [U-Boot] [PATCH v1 04/11] gpio: Add missing parenthesis to the GPIO_TO_PORT define Lukasz Majewski
2019-06-10  1:38   ` Peng Fan
2019-07-20  8:46   ` sbabic at denx.de
2019-06-09 20:54 ` [U-Boot] [PATCH v1 05/11] ARM: display5: Increase the pre-relocation malloc pool size to 4KiB Lukasz Majewski
2019-06-10  1:41   ` Peng Fan
2019-06-10  6:04     ` Lukasz Majewski
2019-06-10  6:43       ` Peng Fan
2019-07-20  8:46   ` sbabic at denx.de
2019-06-09 20:54 ` [U-Boot] [PATCH v1 06/11] DTS: imx: Add display5 board (imx6q based) device tree description (v5.1) Lukasz Majewski
2019-06-10  1:41   ` Peng Fan
2019-07-20  8:57   ` sbabic at denx.de
2019-06-09 20:54 ` [U-Boot] [PATCH v1 07/11] DTS: Add imx6q-display5-u-boot.dtsi file with u-boot specific properties Lukasz Majewski
2019-06-10  1:43   ` Peng Fan
2019-06-10 10:52   ` Adam Ford
2019-06-10 12:23     ` Lukasz Majewski [this message]
2019-07-20  8:45   ` sbabic at denx.de
2019-06-09 20:54 ` [U-Boot] [PATCH v1 08/11] ARM: display5: Remove U_BOOT_DEVICE definition of serial_mxc Lukasz Majewski
2019-06-10  1:44   ` Peng Fan
2019-07-20  8:45   ` sbabic at denx.de
2019-06-09 20:54 ` [U-Boot] [PATCH v1 09/11] DM: display5: Convert display5 board to use DM/DTS Lukasz Majewski
2019-06-10  1:45   ` Peng Fan
2019-06-09 20:54 ` [U-Boot] [PATCH v1 10/11] ARM: display5: Remove UART initialization code after DM/DTS conversion (non-console) Lukasz Majewski
2019-06-10  1:44   ` Peng Fan
2019-06-09 20:54 ` [U-Boot] [PATCH v1 11/11] ARM: display5: Remove common.c file (after DM/DTS U-Boot proper conversion) Lukasz Majewski
2019-06-10  1:46   ` Peng Fan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190610142307.7b939277@jawa \
    --to=lukma@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.