linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] sun8i: r40: second ethernet support
@ 2021-03-09  1:21 Evgeny Boger
  2021-03-09  1:21 ` [PATCH v2 1/2] net: allwinner: reset control support Evgeny Boger
  2021-03-09  1:21 ` [PATCH v2 2/2] dts: r40: add second ethernet support Evgeny Boger
  0 siblings, 2 replies; 7+ messages in thread
From: Evgeny Boger @ 2021-03-09  1:21 UTC (permalink / raw)
  To: Maxime Ripard, Chen-Yu Tsai, linux-arm-kernel
  Cc: Evgeny Boger, devicetree, linux-kernel, Rob Herring

This patch series adds support for two Ethernet ports on Allwinner R40.

R40 (aka V40,A40i,T3) has two different Ethernet IPs called EMAC and GMAC.
EMAC only support 10/100 Mbit in MII mode, while GMAC support both 10/100
(MII) and 10/100/1000 (RGMII).

In contrast to A10/A20 where GMAC and EMAC share the same pins making EMAC
somewhat pointless, on R40 EMAC can be routed to port H.
Both EMAC (on port H) and GMAC (on port A) can be then enabled at the same 
time, allowing for two ethernet ports.

Tested on custom A40i board with two IP101GRI PHYs in MII mode.

Changes in v2:
 - EMAC reset is no longer optional on R40
 - Add a new DT compatible string for R40 EMAC
 - Deassert reset line before enabling the clock
 - minor fixes: formatting, DT node order, leftover pinctrl props


Evgeny Boger (2):
  net: allwinner: reset control support
  dts: r40: add second ethernet support

 .../net/allwinner,sun4i-a10-emac.yaml         | 11 +++-
 arch/arm/boot/dts/sun8i-r40.dtsi              | 59 +++++++++++++++++
 drivers/net/ethernet/allwinner/sun4i-emac.c   | 65 +++++++++++++++++--
 3 files changed, 129 insertions(+), 6 deletions(-)

-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-03-10  8:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09  1:21 [PATCH v2 0/2] sun8i: r40: second ethernet support Evgeny Boger
2021-03-09  1:21 ` [PATCH v2 1/2] net: allwinner: reset control support Evgeny Boger
2021-03-09 17:19   ` Rob Herring
2021-03-10  8:39   ` Maxime Ripard
2021-03-09  1:21 ` [PATCH v2 2/2] dts: r40: add second ethernet support Evgeny Boger
2021-03-09  1:32   ` Evgeny Boger
2021-03-10  8:40   ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).