All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robherring2@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v7 5/9] arm: serial: Add ability to use pre-initialized UARTs
Date: Fri, 23 Oct 2015 13:35:00 -0500	[thread overview]
Message-ID: <CAL_Jsq+U84yskQRO_H3ntFHQZXLe=MKRFPrz0-EzGtuBxbvE-A@mail.gmail.com> (raw)
In-Reply-To: <CAPnjgZ1JN=J1SuKRn+p4u9KkU9i0w=Pqow+=naim5+Xe35hgQA@mail.gmail.com>

On Mon, Oct 19, 2015 at 5:09 PM, Simon Glass <sjg@chromium.org> wrote:
> Hi Rob,
>
> On 19 October 2015 at 14:14, Rob Herring <robherring2@gmail.com> wrote:
>> On Wed, Oct 14, 2015 at 11:55 AM, Sergey Temerkhanov
>> <s.temerkhanov@gmail.com> wrote:
>>> On some systems, UART initialization is performed before running U-Boot.
>>> This commit allows to skip UART re-initializaion on those systems
>>>
>>> Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
>>> Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
>>>
>>> Reviewed-by: Simon Glass <sjg@chromium.org>
>>
>> I'll comment on this now that I'm here, but as the rest of the thread
>> said, please send to DT list.
>>
>>> diff --git a/doc/device-tree-bindings/serial/pl01x.txt b/doc/device-tree-bindings/serial/pl01x.txt
>>> index 61c27d1..0591497 100644
>>> --- a/doc/device-tree-bindings/serial/pl01x.txt
>>> +++ b/doc/device-tree-bindings/serial/pl01x.txt
>>> @@ -5,3 +5,6 @@ Required properties:
>>>  - reg: exactly one register range with length 0x1000
>>>  - clock: input clock frequency for the UART (used to calculate the baud
>>>    rate divisor)
>>> +
>>> +Optional properties:
>>> +- u-boot,skip-init: skip UART initialization at start.
>>
>> What are you trying to accomplish by skipping?
>>
>> stdout-path can take options now, so what about making it an option there:
>>
>> stdout-path = &serial0:no-init
>>
>> I have similar concerns with this as I did with the early init flag.
>> This requires the dtb and u-boot to be in sync. For example, you have
>> this option in the dtb, but then you add clock initialization to your
>> platform which changes the default clock frequency of the UART. Now if
>> you boot with an older dtb and new u-boot, then it will break because
>> the UART is at the wrong baudrate.
>
> If you are saying what I think you are saying, U-Boot expects the
> device tree that IT uses for configuration to come from the same
> commit as the source code. It doesn't support anything else as the DTB
> is bundled with (and replaced at the same time as) U-Boot.. You would
> be on your own in that case.

You can have that expectation, but that is generally not how DT works.
Bindings are an ABI. You may not care for some usecases or boards, but
we generally can't assume a DTB and its user whether u-boot, kernel,
BSD, etc. are linked together. The rule is new s/w version should work
with old DTB.

How is it going to work when/if we put dts files in a standalone repository?

What I want to see WRT u-boot and DTB handling is that they are
independently updateable. That is already the case on some platforms
such as highbank. The way it works is the management processor put
both u-boot and the DTB into memory and then boots the cores. u-boot
does minor tweaks and then passes the DTB on to the OS. I was working
some to add u-boot DT config support for highbank before Calxeda's
demise. IIRC, the main problems I hit were telling u-boot where the
dtb is and then having it pass the same DTB on to the kernel. I doubt
I'm the only one that would like things to work that way.

Rob

  reply	other threads:[~2015-10-23 18:35 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14 16:55 [U-Boot] [PATCH v7 0/9] Add support for ThunderX 88xx SoC family Sergey Temerkhanov
2015-10-14 16:55 ` [U-Boot] [PATCH v7 1/9] armv8: Add read_mpidr() function Sergey Temerkhanov
2016-01-19 22:33   ` [U-Boot] [U-Boot,v7,1/9] " Tom Rini
2015-10-14 16:55 ` [U-Boot] [PATCH v7 2/9] armv8: New MMU setup code allowing to use 48+ bits PA/VA Sergey Temerkhanov
2016-01-19 22:33   ` [U-Boot] [U-Boot, v7, " Tom Rini
2015-10-14 16:55 ` [U-Boot] [PATCH v7 3/9] armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure Sergey Temerkhanov
2016-01-06 13:04   ` Mateusz Kulikowski
2016-01-07 15:06     ` Michal Simek
2016-01-07 16:26       ` Tom Rini
2016-01-07 19:00         ` Michal Simek
2016-01-07 21:39       ` Mateusz Kulikowski
2016-01-08 10:19         ` Michal Simek
2016-06-23 11:33         ` Dirk Behme
2016-06-25 19:04           ` Mateusz Kulikowski
2016-06-27 11:26             ` Dirk Behme
2016-01-19 22:34   ` [U-Boot] [U-Boot, v7, " Tom Rini
2015-10-14 16:55 ` [U-Boot] [PATCH v7 4/9] armv8: Add psci.h from the Linux kernel Sergey Temerkhanov
2016-01-19 22:34   ` [U-Boot] [U-Boot, v7, " Tom Rini
2015-10-14 16:55 ` [U-Boot] [PATCH v7 5/9] arm: serial: Add ability to use pre-initialized UARTs Sergey Temerkhanov
2015-10-16 21:23   ` Linus Walleij
2015-10-16 22:27     ` Simon Glass
2015-10-17  0:23       ` Tom Rini
2015-10-19  2:41         ` Simon Glass
2015-10-19 22:04           ` Tom Rini
2015-10-19  7:15       ` Linus Walleij
2015-10-19 12:44         ` Simon Glass
2015-10-19 12:57           ` Linus Walleij
2015-10-19 16:12             ` Mark Rutland
2015-10-19 19:21             ` Rob Herring
2015-10-20  8:10               ` Linus Walleij
2015-10-20  8:15                 ` Linus Walleij
2015-10-20 13:05                   ` Rob Herring
2015-10-21 20:49                     ` Simon Glass
2015-10-23 16:44                       ` Tom Rini
2015-10-20 13:00                 ` Rob Herring
2015-10-19 22:04           ` Tom Rini
2015-10-19 20:14   ` Rob Herring
2015-10-19 22:09     ` Simon Glass
2015-10-23 18:35       ` Rob Herring [this message]
2015-10-26 14:37         ` Simon Glass
2015-10-23 22:51     ` Sergei Temerkhanov
2016-01-19 22:34   ` [U-Boot] [U-Boot, v7, " Tom Rini
2015-10-14 16:55 ` [U-Boot] [PATCH v7 6/9] armv8: cavium: Add the device tree for ThunderX Sergey Temerkhanov
2016-01-19 22:34   ` [U-Boot] [U-Boot, v7, " Tom Rini
2015-10-14 16:55 ` [U-Boot] [PATCH v7 7/9] armv8: cavium: Add ThunderX 88xx board definition Sergey Temerkhanov
2016-01-19 22:34   ` [U-Boot] [U-Boot, v7, " Tom Rini
2015-10-14 16:55 ` [U-Boot] [PATCH v7 8/9] armv8: cavium: Add an implementation of ATF calling functions Sergey Temerkhanov
2016-01-19 22:34   ` [U-Boot] [U-Boot, v7, " Tom Rini
2015-10-14 16:55 ` [U-Boot] [PATCH v7 9/9] armv8: cavium: Get DRAM size from ATF Sergey Temerkhanov
2016-01-19 22:34   ` [U-Boot] [U-Boot,v7,9/9] " Tom Rini

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='CAL_Jsq+U84yskQRO_H3ntFHQZXLe=MKRFPrz0-EzGtuBxbvE-A@mail.gmail.com' \
    --to=robherring2@gmail.com \
    --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.