[U-Boot] [PATCH v2 0/7] sunxi: sun8i-emac: Update DT bindings

Andre Przywara andre.przywara at arm.com
Fri Feb 9 01:30:02 UTC 2018


Compared to the last post, this converts U-Boot's DTs over to use the
new binding, so that the final patch can remove support for the old
binding from U-Boot EMAC driver.
The Linux DTs can be synced in later once we solved the size problem.

================================================
The existing sun8i-emac driver in U-Boot uses some preliminary bindings,
which matched our own DTs. Now that the Linux kernel got a driver, lets
update our probe code to handle those Linux DTs as well.
The first patch adds the missing compatible strings for the pinctrl drivers,
which is needed for using the sunxi_name_to_gpio() lookup function.
Patch 2/7 updates the pinctrl parser used in the sun8i-emac driver, to cope
with the new, generic Allwinner pinctrl bindings.
Patch 3/7 extends the probe routine in the Ethernet driver to deal
with both the old and the new bindings.
Patches 4, 5 and 6 update U-Boot's DTs for boards using the A64, H3 and H5
SoC, respectively, to actually use the new binding in their EMAC nodes.
This allows the final patch 7/7 to remove the support for the old binding
in the EMAC driver, so we use the proper binding only.
This series allows to copy in the DTs from the latest kernel. Unfortunately
right now updating the DTs for the H5 and A64 breaks the build, as the
resulting binary (which embeds the DT) gets to large and triggers our new
image size check. As the H5 and H3 share most of the DT, we can't just
update the H3 DTs either.
I have patches syncing all 64-bit Allwinner SoCs to the 4.15 DTs ready
anyway, which even build (by disabling raw MMC environment support).
If people are interested, I can post them as well.

Cheers,
Andre.

Changelog v1 .. v2:
01, 02, 03: unchanged
04, 05, 06, 07: added

Andre Przywara (7):
  sunxi: gpio: add missing compatible strings
  net: sun8i-emac: support new pinctrl DT bindings
  net: sun8i-emac: add support for new EMAC DT binding
  arm: dts: sunxi: update A64 to new EMAC binding
  arm: dts: sunxi: update H3 to new EMAC binding
  arm: dts: sunxi: update H5 to new EMAC binding
  net: sun8i-emac: remove support for old binding

 arch/arm/dts/sun50i-a64-pine64-plus-u-boot.dtsi | 51 ++++++++------
 arch/arm/dts/sun50i-h5-orangepi-pc2.dts         |  7 +-
 arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts    |  6 +-
 arch/arm/dts/sun8i-h3-libretech-all-h3-cc.dts   |  7 +-
 arch/arm/dts/sun8i-h3-nanopi-neo.dts            |  6 +-
 arch/arm/dts/sun8i-h3-orangepi-2.dts            |  7 +-
 arch/arm/dts/sun8i-h3-orangepi-one.dts          |  7 +-
 arch/arm/dts/sun8i-h3-orangepi-pc.dts           |  7 +-
 arch/arm/dts/sun8i-h3-orangepi-plus.dts         |  8 ++-
 arch/arm/dts/sun8i-h3-orangepi-plus2e.dts       |  9 ++-
 arch/arm/dts/sun8i-h3.dtsi                      | 69 ++++++++++++++-----
 drivers/gpio/sunxi_gpio.c                       |  4 ++
 drivers/net/sun8i_emac.c                        | 89 ++++++++++++++++++-------
 13 files changed, 179 insertions(+), 98 deletions(-)

-- 
2.14.1



More information about the U-Boot mailing list