Skip to content

sunxi: update Pine64/A64 DTs

Andre Przywara u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6sunxi: GPIO: introduce sunxi_gpio_setup_dt_pins()arch/arm/include/asm/arch-sunxi/gpio.h arch/arm/mach-sunxi/pinmux.c+81 -02 replies
1/6sunxi: GPIO: introduce sunxi_gpio_setup_dt_pins()+0 -00 replies
2/6net: sun8i-emac: use new, generic GPIO setup routinedrivers/net/sun8i_emac.c+6 -320 replies
3/6sunxi: dts: update sun50i-a64.dtsi from Linuxarch/arm/dts/sun50i-a64-pine64-common.dtsi arch/arm/dts/sun50i-a64.dtsi include/dt-bindings/clock/sun50i-a64-ccu.h +1 more+411 -4380 replies
4/6sunxi: dts: update Pine64 .dtsarch/arm/dts/sun50i-a64-pine64-plus.dts arch/arm/dts/sun50i-a64-pine64.dts+72 -160 replies
5/6sunxi: dts: remove now obsolete pine64-common.dtsiarch/arm/dts/sun50i-a64-pine64-common.dtsi+0 -930 replies
6/6sunxi: dts: add Bananapi M64 .dtsarch/arm/dts/Makefile arch/arm/dts/sun50i-a64-bananapi-m64.dts+137 -10 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/6] sunxi: update Pine64/A64 DTs

Hi,

in the wake of the sunxi DM enablement series it became apparent that the current device tree files for the A64 SoC and its board are outdated.

Since Linux v4.10-rc1 there are now basic .dts files for the Allwinner A64 SoC and the Pine64 boards in the mainline kernel.
Linux v4.11-rc1 added MMC and USB support.
Because our preliminary device trees used in U-Boot differ significantly, let's update our copy with what's in the current Linus' master tree. Since in contrast to U-Boot the kernel still lacks support for Ethernet, we keep our preliminary nodes for that IP, but adjust it slightly to match the new clocks and reset bindings.

As the sun8i-emac driver is actually using the DT for the pinmux setup, we teach it how to cope with the new pinctrl bindings in the first two patches. This is probably becoming somewhat obsolete very soon (with DM GPIO support on the list already), however I consider these two patches as merely fixes for the existing driver to maintain bisectability. It would make sense to merge the new DTs before the DM patches, so we need to have something in place which works meanwhile.

Let me know what you think.

Cheers,
Andre.

Andre Przywara (6):
sunxi: GPIO: introduce sunxi_gpio_setup_dt_pins()
net: sun8i-emac: use new, generic GPIO setup routine
sunxi: dts: update sun50i-a64.dtsi from Linux
sunxi: dts: update Pine64 .dts
sunxi: dts: remove now obsolete pine64-common.dtsi
sunxi: dts: add Bananapi M64 .dts

 arch/arm/dts/Makefile                      |   3 +-
 arch/arm/dts/sun50i-a64-bananapi-m64.dts   | 135 +++++++
 arch/arm/dts/sun50i-a64-pine64-common.dtsi |  93 -----
 arch/arm/dts/sun50i-a64-pine64-plus.dts    |  16 +-
 arch/arm/dts/sun50i-a64-pine64.dts         |  72 +++-
 arch/arm/dts/sun50i-a64.dtsi               | 615 +++++++++--------------------
 arch/arm/include/asm/arch-sunxi/gpio.h     |   4 +
 arch/arm/mach-sunxi/pinmux.c               |  77 ++++
 drivers/net/sun8i_emac.c                   |  38 +-
 include/dt-bindings/clock/sun50i-a64-ccu.h | 134 +++++++
 include/dt-bindings/reset/sun50i-a64-ccu.h |  98 +++++
 11 files changed, 706 insertions(+), 579 deletions(-)
 create mode 100644 arch/arm/dts/sun50i-a64-bananapi-m64.dts
 delete mode 100644 arch/arm/dts/sun50i-a64-pine64-common.dtsi
 create mode 100644 include/dt-bindings/clock/sun50i-a64-ccu.h
 create mode 100644 include/dt-bindings/reset/sun50i-a64-ccu.h
Signature · 1 line
2.8.2