Skip to content

sunxi: OrangePi Zero 2: Ethernet support

Andre Przywara u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: sun8i-emac: Always clear syscon EPHY registerdrivers/net/sun8i_emac.c+13 -180 replies
2/3net: sun8i-emac: Determine pinmux based on SoC, not EMAC typedrivers/net/sun8i_emac.c+20 -80 replies
3/3sunxi: OrangePi Zero 2: Enable Ethernetconfigs/orangepi_zero2_defconfig+2 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJernej Skrabec
SeriesT-b R-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] sunxi: OrangePi Zero 2: Ethernet support

The first two patches prepare the sun8i-emac driver to deal with the EMAC as integrated into the H616 SoC. This IP block is compatible with the A64 version, but the current driver prevents us from using that:
- The EPHY syscon register needs to have a bit cleared to select the external PHY. On the A64 it is cleared on reset, but we should not rely on that. The Linux driver does so as well. Fixed in patch 1/3.
- The pinmux setting is tied to the compatible string, but the H616 requires a different value. Fixed in patch 2/3.

The final patch enables Ethernet support for the OrangePi Zero 2 board, which now works without further ado.

Cheers,
Andre

Andre Przywara (3):
net: sun8i-emac: Always clear syscon EPHY register
net: sun8i-emac: Determine pinmux based on SoC, not EMAC type
sunxi: OrangePi Zero 2: Enable Ethernet

 configs/orangepi_zero2_defconfig |  2 ++
 drivers/net/sun8i_emac.c         | 59 ++++++++++++++++++--------------
 2 files changed, 35 insertions(+), 26 deletions(-)
Signature · 1 line
2.17.5