Re: [PATCH 3/4] net: lantiq: Add Lantiq / Intel vrx200 Ethernet driver
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: 2018-07-29 15:33:48
Also in:
linux-mips
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: 2018-07-29 15:33:48
Also in:
linux-mips
On 07/25/2018 05:28 PM, Andrew Lunn wrote:
quoted
+ /* Make sure the firmware of the embedded GPHY is loaded before, + * otherwise they will not be detectable on the MDIO bus. + */ + of_for_each_phandle(&it, err, np, "lantiq,phys", NULL, 0) { + phy_np = it.node; + if (phy_np) { + struct platform_device *phy = of_find_device_by_node(phy_np); + + of_node_put(phy_np); + if (!platform_get_drvdata(phy)) + return -EPROBE_DEFER; + } + }Is there a device tree binding document for this somewhere? Andrew
No, but I will create one. I am also not sure iof this is the correct way of doing this. We first have to load the FW into the Ethernet PHY though some generic SoC registers and then we can find it normally on the MDIO bus and interact with it like an external PHY on the MDIO bus. Hauke