[linux-sunxi] Re: [U-Boot] [PATCH v6 0/7] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-05-18 Thread Andre Przywara
Hi,

On 18/05/18 11:41, Peter Robinson wrote:
> On Wed, May 16, 2018 at 9:00 AM, Andre Przywara  
> wrote:
>> This is an updated version of the series which brings the exact mainline
>> Linux device tree files for various Allwinner boards into U-Boot.
>> Apart from using the usually more correct reference DT files, this offers
>> the big benefit of being able to use U-Boot's DT copy for directly passing
>> it to the kernel. This avoids to actually load a .dtb file from somewhere,
>> and allows seamless and automatic UEFI booting, so distribution installer
>> images should just work (TM).
>>
>> This cover the ARMv8 SoCs (H5, A64), but also all boards with the H3, as
>> this is somewhat married to the H5 and can only be updated together.
>> The H3 and H5 DT files have diverged quite a bit, but as U-Boot's own
>> usage of the DT is (yet) quite limited, there should be no regressions.
>> The patches are split to first update the SoC .dtsi file, then the board
>> .dts files in a second patch. They are grouped to handle the A64 first,
>> then the H5 and H3. I put the respective kernel commit IDs in the commit
>> messages.
>> Patch 6 brings in the mainline DT for the SoPine baseboard, for which we
>> didn't have a separate .dts in U-Boot so far.
>> Patch 7 adds a separate .dts file for the Pine64-LTS board, which is
>> virtually identical to the SoPine baseboard, but, due to the SoC being
>> named differently, deserves a separate file.
>>
>> This is based on origin/master (ca70cbabdcd1).
>>
>> Maxime, I kept you Acked-by: from the previous posts, as I literally
>> just updated to the latest Linux master, which went through your review
>> anyway. Hope that's OK for you.
>>
>> Cheers,
>> Andre.
>>
>> Changelog v5 .. v6:
>> - bring back DT update patches
>> - update to Linux v4.17-rc5
> 
> Are these based purely on 4.17rc5 because I don't see
> sun50i-a64-pine64-lts.dts in Linus's upstream.

Well, yes, I added this trivial wrapper. I can (and probably will) post
it to Linux, but actually it would be sufficient to have some DT in
U-Boot (and on the SPI flash!), so that one can just use $fdtcontroladdr
and be done.

In case you wonder about (other) differences between mainline and this
series: There is this one path name change in the sun50i-h5.dtsi,
mentioned in the 3/7 commit message, plus I left in the common libretech
.dtsi Chen-Yu created for U-Boot. I guess we will see this sooner or
later in Linux and can then sync this back, if needed.

Cheers,
Andre.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] Re: [U-Boot] [PATCH v6 0/7] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-05-18 Thread Peter Robinson
On Wed, May 16, 2018 at 9:00 AM, Andre Przywara  wrote:
> This is an updated version of the series which brings the exact mainline
> Linux device tree files for various Allwinner boards into U-Boot.
> Apart from using the usually more correct reference DT files, this offers
> the big benefit of being able to use U-Boot's DT copy for directly passing
> it to the kernel. This avoids to actually load a .dtb file from somewhere,
> and allows seamless and automatic UEFI booting, so distribution installer
> images should just work (TM).
>
> This cover the ARMv8 SoCs (H5, A64), but also all boards with the H3, as
> this is somewhat married to the H5 and can only be updated together.
> The H3 and H5 DT files have diverged quite a bit, but as U-Boot's own
> usage of the DT is (yet) quite limited, there should be no regressions.
> The patches are split to first update the SoC .dtsi file, then the board
> .dts files in a second patch. They are grouped to handle the A64 first,
> then the H5 and H3. I put the respective kernel commit IDs in the commit
> messages.
> Patch 6 brings in the mainline DT for the SoPine baseboard, for which we
> didn't have a separate .dts in U-Boot so far.
> Patch 7 adds a separate .dts file for the Pine64-LTS board, which is
> virtually identical to the SoPine baseboard, but, due to the SoC being
> named differently, deserves a separate file.
>
> This is based on origin/master (ca70cbabdcd1).
>
> Maxime, I kept you Acked-by: from the previous posts, as I literally
> just updated to the latest Linux master, which went through your review
> anyway. Hope that's OK for you.
>
> Cheers,
> Andre.
>
> Changelog v5 .. v6:
> - bring back DT update patches
> - update to Linux v4.17-rc5

Are these based purely on 4.17rc5 because I don't see
sun50i-a64-pine64-lts.dts in Linus's upstream.

Peter

> Changelog v4 .. v5:
> - drop Linux DT update patches for now
> - fix minor checkpatch complaints
>
> Changelog v3 .. v4:
> - remove MMC environment for all Allwinner boards (including 32 bit ones)
> - keep MMC environment offset to the old values
> - drop DT adjustments to use fixed MMC regulator
>
> Changelog v2 .. v3:
> 01: added, was on the list before
> 02: drop redundant H5 line
> 03-08: unchanged
> 09-20: added
>
> Changelog v1 .. v2:
> 01, 02, 03: unchanged
> 04, 05, 06, 07: added
>
> Andre Przywara (7):
>   sunxi: DT: A64: update device tree file for Allwinner A64 SoC
>   sunxi: DT: A64: update board .dts files from Linux
>   sunxi: DT: update device tree files for Allwinner H3 and H5 SoCs
>   sunxi: DT: H5: update board .dts files from Linux
>   sunxi: DT: H3: update board .dts files from Linux
>   sunxi: DT: A64: add proper SoPine baseboard device tree
>   sunxi: DT: A64: add Pine64-LTS support
>
>  arch/arm/dts/Makefile   |   4 +-
>  arch/arm/dts/axp803.dtsi| 150 +
>  arch/arm/dts/sun50i-a64-bananapi-m64.dts| 200 +-
>  arch/arm/dts/sun50i-a64-nanopi-a64.dts  | 111 +++-
>  arch/arm/dts/sun50i-a64-olinuxino.dts   | 153 -
>  arch/arm/dts/sun50i-a64-orangepi-win.dts| 135 +++-
>  arch/arm/dts/sun50i-a64-pine64-lts.dts  |  13 +
>  arch/arm/dts/sun50i-a64-pine64-plus-u-boot.dtsi |  59 --
>  arch/arm/dts/sun50i-a64-pine64-plus.dts |  17 +-
>  arch/arm/dts/sun50i-a64-pine64.dts  | 186 +-
>  arch/arm/dts/sun50i-a64-sopine-baseboard.dts| 150 +
>  arch/arm/dts/sun50i-a64-sopine.dtsi | 142 
>  arch/arm/dts/sun50i-a64.dtsi| 303 -
>  arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 122 +++-
>  arch/arm/dts/sun50i-h5-nanopi-neo2.dts  |  91 ++-
>  arch/arm/dts/sun50i-h5-orangepi-pc2.dts | 186 +-
>  arch/arm/dts/sun50i-h5-orangepi-prime.dts   | 189 +-
>  arch/arm/dts/sun50i-h5-orangepi-zero-plus2.dts  |  64 +-
>  arch/arm/dts/sun50i-h5.dtsi |  36 +-
>  arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts|  55 +-
>  arch/arm/dts/sun8i-h3-bananapi-m2-plus.dts  | 109 ++-
>  arch/arm/dts/sun8i-h3-nanopi-m1-plus.dts|  78 +++
>  arch/arm/dts/sun8i-h3-nanopi-m1.dts |  42 ++
>  arch/arm/dts/sun8i-h3-nanopi-neo-air.dts|  28 +-
>  arch/arm/dts/sun8i-h3-nanopi-neo.dts|  17 +
>  arch/arm/dts/sun8i-h3-nanopi.dtsi   |  13 +-
>  arch/arm/dts/sun8i-h3-orangepi-2.dts|  92 ++-
>  arch/arm/dts/sun8i-h3-orangepi-lite.dts |  57 +-
>  arch/arm/dts/sun8i-h3-orangepi-one.dts  |  94 ++-
>  arch/arm/dts/sun8i-h3-orangepi-pc-plus.dts  |  11 +-
>  arch/arm/dts/sun8i-h3-orangepi-pc.dts   | 113 +++-
>  arch/arm/dts/sun8i-h3-orangepi-plus.dts |  29 +-
>  arch/arm/dts/sun8i-h3-orangepi-plus2e.dts   |  15 +-
>  arch/arm/dts/sun8i-h3.dtsi  | 544 ++-
>  arch/arm/dts/sunxi-h3-h5.dtsi   | 842 
> 
>