Skip to content
Snippets Groups Projects
Commit 148cbb53 authored by Boris Brezillon's avatar Boris Brezillon Committed by David S. Miller
Browse files

net/cadence/macb: add support for dt phy definition


The macb driver only handle PHY description through platform_data
(macb_platform_data).
Thus, when using dt you cannot define phy properties like phy address or
phy irq pin.

This patch makes use of the of_mdiobus_register to add support for
phy device definition using dt.
A fallback to the autoscan procedure is added in case there is no phy
devices defined in dt.

Signed-off-by: default avatarBoris BREZILLON <b.brezillon@overkiz.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b4de77ad
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment