If the EMAC hardware of H3 is same like A31, I think according to this 
documentation http://www.stlinux.com/kernel/network/phy-howto

There is no need to handle phy because it's a generic driver for MII PHY.
There is already a glue patch for sunxy device in linux 4.4 for stmmac driver.
So the only thing have to do is to activate flag "PHY_IS_INTERNAL" in stmmac 
driver (dwmac-sunxi.c) to notice the driver don't need phy adresse, because 
it's internal. 

"Add a new flag (PHY_IS_INTERNAL) which can be set by PHY drivers
just like other flags, and a corresponding helper: phy_is_internal()
which can be used by networking drivers to query if a given
PHY device is internal." 
http://code.metager.de/source/history/linux/stable/drivers/net/phy/

Don't forget to poweron the specific reg that generic driver can't know and 
maybe using bus_ephy clock in dtsi. next step so far : adding eth support in 
uboot for tftp update ;)

 

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to