Skip to content

arm: ls1021atwr: Convert to driver model and enable serial support

Stefan Agner u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 of 8 patches 0 repliesNew

3 of 8 patches are in this archive. The cover letter announces 8.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
3/8serial: lpuart: Move CONFIG_FSL_LPUART to Kconfig+0 -00 replies
6/8serial: lpuart: Prepare the driver for DM conversion+0 -01 reply
7/8serial: lpuart: Add driver model serial support+0 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/8] arm: ls1021atwr: Convert to driver model and enable serial support
Quoted 51 lines · Bin Meng

Hi Alison,

Quoted 27 lines · Huan Wang

Hi, Bin,

Quoted 17 lines · Huan Wang
Quoted 16 lines

Hi, Bin,

Quoted 14 lines · Huan Wang
Quoted 4 lines

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?

Quoted 1 line

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.

Quoted 8 lines
Quoted 4 lines

[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?

Quoted 7 lines

[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;
};

Quoted 4 lines

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.

--
Stefan