The H616 second Ethernet MAC uses the H6-family controller with RMII support, but its syscon control register is at offset 0x34 rather than the first MAC's offset.
Add the dedicated compatible and variant data so Linux-compatible H616 EMAC1 nodes can bind. Signed-off-by: James Hilliard <[email protected]> --- drivers/net/sun8i_emac.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 29562e14e16..30e3553647f 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -918,6 +918,11 @@ static const struct emac_variant emac_variant_h6 = { .support_rmii = true, }; +static const struct emac_variant emac_variant_h616_emac1 = { + .syscon_offset = 0x34, + .support_rmii = true, +}; + static const struct udevice_id sun8i_emac_eth_ids[] = { { .compatible = "allwinner,sun8i-a83t-emac", .data = (ulong)&emac_variant_a83t }, @@ -931,6 +936,8 @@ static const struct udevice_id sun8i_emac_eth_ids[] = { .data = (ulong)&emac_variant_a64 }, { .compatible = "allwinner,sun50i-h6-emac", .data = (ulong)&emac_variant_h6 }, + { .compatible = "allwinner,sun50i-h616-emac1", + .data = (ulong)&emac_variant_h616_emac1 }, { } }; -- 2.53.0
