All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/8] arm: ls1021atwr: Convert to driver model and enable serial support
Date: Thu, 14 Jan 2016 10:13:54 +0800	[thread overview]
Message-ID: <CAEUhbmUxhA--1TY0VVgE5BekUH9zByQh2A13ChgnbEz3jv=pog@mail.gmail.com> (raw)
In-Reply-To: <1a3102e040e2d890d414a4f95aa8f1c8@agner.ch>

On Thu, Jan 14, 2016 at 3:03 AM, Stefan Agner <stefan@agner.ch> wrote:
> On 2016-01-07 01:22, Bin Meng wrote:
>> Hi Alison,
>>
>> On Thu, Jan 7, 2016 at 2:19 PM, Huan Wang <alison.wang@nxp.com> wrote:
>>> Hi, Bin,
>>>
>>>> On Thu, Jan 7, 2016 at 2:01 PM, Huan Wang <alison.wang@nxp.com> wrote:
>>>> > Hi, Bin,
>>>> >
>>>> >> On Wed, Jan 6, 2016 at 1:31 PM, Huan Wang <alison.wang@nxp.com> wrote:
>>>> >> > Hi,
>>>> >> >
>>>> >> >         I tested this set on my LS1021ATWR board. NOR boot using
>>>> >> > DUART
>>>> >> as serial output is ok. But NOR boot using LPUART as serial output
>>>> >> failed. How about your test result?
>>>> >> >
>>>> >>
>>>> >> Yes, I tested NOR boot using DUART or LPUART. Both boot. I suspect
>>>> >> you forgot to update the RCW for LPUART, or change the jumper setting
>>>> >> (J19,
>>>> >> J20) to route the LPUART signal.
>>>> >>
>>>> > [Alison Wang] I updated the RCW for LPUART and changed the jumper
>>>> > setting (J19, J20). Without this set, NOR boot using LPUART is ok. But
>>>> > after adding this set, NOR boot using LPUART failed.
>>>> >
>>>>
>>>> That's strange. Can you please send your build instructions? Did you
>>>> program the u-boot-dtb.bin (not u-boot.bin anymore) to the NOR?
>>>>
>>> [Alison Wang] My build instructions are,
>>>
>>> make ARCH=arm ls1021atwr_nor_lpuart_defconfig
>>> make
>>>
>>> Yes. I programmed u-boot-dtb.bin to NOR flash.
>>>
>>
>> Oh, it turns out the last thing to suspect is the /chose node :)
>>
>> See comments in patch#8 in this series
>> (http://patchwork.ozlabs.org/patch/561859/)
>>
>>   chosen {
>> + /*
>> + * With ls1021atwr_nor_lpuart_defconfig configuration,
>> + * this needs to be changed to &lpuart0.
>> + */
>>   stdout-path = &uart0;
>>   };
>>
>> I was wondering whether I should introduce another separate dts file
>> for this LPUART configuration, something like ls1021a-twr_lpuart.dts,
>> but I felt it's quite some duplication thus I chose to just add some
>> comments under the /chosen node in the original dts file.
>
> How about:
> ls1021a-twr.dts => ls1021a-twr.dtsi
>
> And include that from
> ls1021a-twr-uart.dts
> ls1021a-twr-lpuart.dts
> and add the /chosen node to those files.
>

Yep, will take this approach in v2. Thanks!

Regards,
Bin

      reply	other threads:[~2016-01-14  2:13 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-31  8:53 [U-Boot] [PATCH 0/8] arm: ls1021atwr: Convert to driver model and enable serial support Bin Meng
2015-12-31  8:53 ` [U-Boot] [PATCH 1/8] fdt: Fix up stdout correctly in fdt_fixup_stdout() Bin Meng
2016-01-08  3:34   ` Simon Glass
2016-01-11  3:02     ` Bin Meng
2016-01-11 16:58       ` Simon Glass
2016-01-13  9:14         ` Bin Meng
2016-01-13 20:10           ` Simon Glass
2015-12-31  8:53 ` [U-Boot] [PATCH 2/8] arm: ls1021atwr: Convert to driver model and enable serial support Bin Meng
2015-12-31  8:53 ` [U-Boot] [PATCH 3/8] serial: lpuart: Move CONFIG_FSL_LPUART to Kconfig Bin Meng
2016-01-06  0:25   ` Simon Glass
2016-01-13 18:45   ` Stefan Agner
2015-12-31  8:53 ` [U-Boot] [PATCH 4/8] serial: lpuart: Fix several cosmetic issues Bin Meng
2016-01-06  0:25   ` Simon Glass
2015-12-31  8:53 ` [U-Boot] [PATCH 5/8] serial: lpuart: Call local version of setbrg and putc directly Bin Meng
2016-01-06  0:25   ` Simon Glass
2015-12-31  8:53 ` [U-Boot] [PATCH 6/8] serial: lpuart: Prepare the driver for DM conversion Bin Meng
2016-01-06  0:25   ` Simon Glass
2016-01-13 18:51   ` Stefan Agner
2016-01-14  2:11     ` Bin Meng
2015-12-31  8:53 ` [U-Boot] [PATCH 7/8] serial: lpuart: Add driver model serial support Bin Meng
2016-01-06  0:25   ` Simon Glass
2016-01-11  3:08     ` Bin Meng
2016-01-13  5:49   ` Bhuvanchandra DV
2016-01-13  6:13     ` Bin Meng
2016-01-13  8:07       ` Bhuvanchandra DV
2016-01-13  8:19         ` Bin Meng
2016-01-13 19:20           ` Stefan Agner
2016-01-14  2:24             ` Bin Meng
2016-01-14  8:10               ` Bhuvanchandra DV
2015-12-31  8:53 ` [U-Boot] [PATCH 8/8] arm: ls1021atwr: Enable driver model lpuart serial driver Bin Meng
2016-01-06  0:25   ` Simon Glass
2016-01-06  5:31 ` [U-Boot] [PATCH 0/8] arm: ls1021atwr: Convert to driver model and enable serial support Huan Wang
2016-01-07  2:26   ` Bin Meng
2016-01-07  6:01     ` Huan Wang
2016-01-07  6:15       ` Bin Meng
2016-01-07  6:19         ` Huan Wang
2016-01-07  9:22           ` Bin Meng
2016-01-11  3:10             ` Bin Meng
2016-01-11 16:58               ` Simon Glass
2016-01-13 19:03             ` Stefan Agner
2016-01-14  2:13               ` Bin Meng [this message]

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='CAEUhbmUxhA--1TY0VVgE5BekUH9zByQh2A13ChgnbEz3jv=pog@mail.gmail.com' \
    --to=bmeng.cn@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.