All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Agner <stefan@agner.ch>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 01/10] dm: imx: serial: support device tree
Date: Wed, 05 Oct 2016 14:58:01 -0700	[thread overview]
Message-ID: <a058cc34b7a1dfe003a146caab2e6b2e@agner.ch> (raw)
In-Reply-To: <ac5f574c-3f6c-c5aa-eab9-b25bf87183a4@denx.de>

On 2016-10-04 06:02, Stefano Babic wrote:
> Hi Stefan,
> 
> On 29/08/2016 02:00, Stefan Agner wrote:
>>>
>>> I have applied it, I just noted a slight drawback because this breaks
>>> boards that do not have CONFIG_FIT set.
>>
>> Hm, maybe due to missing CONFIG_OF_LIBFDT? Do you want me to fix it, do
>> you have a certain board you can reproduce it?
> 
> No, I have found it. The patchset breaks two boards (gwventana and
> cmx6), and the reason is that lib/fdtdec.c is not compiled. This is
> because CONFIG_OF_CONTROL is not set for these two boards, but as far as
> I understand this should be not set, because there is no device tree for
> these two boards.
> 
> The issue is generate by the feature use_dte: in fact:
> 
>        plat->use_dte = fdtdec_get_bool(gd->fdt_blob, dev->of_offset,
>                                         "fsl,dte-mode");
> 
> but for boards without DT, fdtdec is not built and gd->fdt_blob is maybe
> not set.
> 
> Can you take a look ? What do you think about it ?

Hm, I see... I guess we need to add a CONFIG_IS_ENABLED(OF_CONTROL)
there, that is what other drivers also do (e.g.
drivers/gpio/mpc85xx_gpio.c).

> 
> The second issue is related to CONFIG_CUSTOM_BOARDINFO:
> 
>        arm:  +   colibri_imx7
> +Error: You must add new CONFIG options using Kconfig
> +The following new ad-hoc CONFIG options were detected:
> +CONFIG_CUSTOM_BOARDINFO
> +
> +Please add these via Kconfig instead. Find a suitable Kconfig
> +file and add a 'config' or 'menuconfig' option.

Yeah I saw that and we either drop that config or will convert it to a
proper Kconfig soon, see also this thread:
http://lists.denx.de/pipermail/u-boot/2016-October/268669.html

> 
> This is related to:
> 
> Author: Stefan Agner <stefan.agner@toradex.com>
> Date:   Mon Aug 1 22:50:24 2016 -0700
> 
>     configs: enable device tree for Colibri iMX7
> 
>     Enable device tree configuration and specify default device tree
>     for Toradex Colibri iMX7. Also configure CONFIG_CUSTOM_BOARDINFO
>     to avoid that board info get printed twice (once from the device
>     tree and one from the runtime detection in board specific code).
> 
>     Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
> 
> What about to split it ? I will let this patch to just enable the device
> tree, and let fix the double output with a follow up patch. What do you
> think ?

Sure, lets just not add CONFIG_CUSTOM_BOARDINFO for now and fix that
once we figure out what we do with that config. I'll send new version of
these two patches, or do you want a new patch which works ontop of your
next branch?

--
Stefan

  reply	other threads:[~2016-10-05 21:58 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-26  6:22 [U-Boot] [PATCH 00/10] mx7: add dt support for Colibri iMX7S/iMX7D Stefan Agner
2016-07-26  6:22 ` [U-Boot] [PATCH 01/10] dm: imx: serial: support device tree Stefan Agner
2016-08-01  1:01   ` Simon Glass
2016-08-02  5:33     ` Stefan Agner
2016-08-26 14:10   ` Stefano Babic
2016-08-29  0:00     ` Stefan Agner
2016-10-04 13:02       ` Stefano Babic
2016-10-05 21:58         ` Stefan Agner [this message]
2016-10-06  7:25           ` Stefano Babic
2016-07-26  6:22 ` [U-Boot] [PATCH 02/10] pinctrl: imx: do not announce driver initialization Stefan Agner
2016-08-01  1:01   ` Simon Glass
2016-07-26  6:22 ` [U-Boot] [PATCH 03/10] arm: dts: imx7: add pinctrl defines Stefan Agner
2016-07-26  6:35   ` Wolfgang Denk
2016-07-26  6:22 ` [U-Boot] [PATCH 04/10] arm: dts: imx7: add basic i.MX 7/Colibri iMX7 device tree Stefan Agner
2016-08-01  1:01   ` Simon Glass
2016-07-26  6:22 ` [U-Boot] [PATCH 05/10] colibri_imx7: remove legancy I2C support Stefan Agner
2016-07-26  6:22 ` [U-Boot] [PATCH 06/10] colibri_imx7: remove legancy UART platform data Stefan Agner
2016-07-26  6:22 ` [U-Boot] [PATCH 07/10] power: pmic: add Ricoh RN5T567 PMIC support Stefan Agner
2016-08-01  1:01   ` Simon Glass
2016-07-26  6:22 ` [U-Boot] [PATCH 08/10] arm: dts: imx7: add Ricoh RN5T567 PMIC node Stefan Agner
2016-07-26  6:22 ` [U-Boot] [PATCH 09/10] colibri_imx7: use Ricoh RN5T567 to reboot the board Stefan Agner
2016-07-26  6:22 ` [U-Boot] [PATCH 10/10] configs: enable device tree for Colibri iMX7 Stefan Agner
2016-08-26 13:25 ` [U-Boot] [PATCH 00/10] mx7: add dt support for Colibri iMX7S/iMX7D Stefano Babic
2016-10-03 19:59   ` Stefan Agner
2016-10-04  8:07     ` Stefano Babic

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=a058cc34b7a1dfe003a146caab2e6b2e@agner.ch \
    --to=stefan@agner.ch \
    --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.