Skip to content

sunxi: sun8i-emac: Update DT bindings

Andre Przywara u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sunxi: gpio: add missing compatible stringsdrivers/gpio/sunxi_gpio.c+4 -00 replies
2/3net: sun8i-emac: support new pinctrl DT bindingsdrivers/net/sun8i_emac.c+39 -130 replies
3/3net: sun8i-emac: add support for new EMAC DT bindingdrivers/net/sun8i_emac.c+48 -70 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/3] sunxi: sun8i-emac: Update DT bindings

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/3 updates the pinctrl parser used in the sun8i-emac driver, to cope with the new, generic Allwinner pinctrl bindings.
The final patch extends the probe routine in the Ethernet driver to deal with both the old and the new bindings.
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. Hopefully we find some neat trick to work around that.

Cheers,
Andre.

Andre Przywara (3):
sunxi: gpio: add missing compatible strings
net: sun8i-emac: support new pinctrl DT bindings
net: sun8i-emac: add support for new EMAC DT binding

 drivers/gpio/sunxi_gpio.c |   4 ++
 drivers/net/sun8i_emac.c  | 107 +++++++++++++++++++++++++++++++++++++---------
 2 files changed, 91 insertions(+), 20 deletions(-)
Signature · 1 line
2.14.1