u-boot/drivers/net/phy
Hannes Schmelzer db40c1aa1c drivers/net/phy: add fixed-phy / fixed-link support
This patch adds support for having a "fixed-link" to some other MAC
(like some embedded switch-device).

For this purpose we introduce a new phy-driver, called "Fixed PHY".

Fixed PHY works only with CONFIG_DM_ETH enabled, since the fixed-link is
described with a subnode below ethernet interface.

Most ethernet drivers (unfortunately not all are following same scheme
for searching/attaching phys) are calling "phy_connect(...)" for getting
a phy-device.
At this point we link in, we search here for a subnode called "fixed-
link", once found we start phy_device_create(...) with the special phy-
id PHY_FIXED_ID (0xa5a55a5a).

During init the "Fixed PHY" driver has registered with this id and now
gets probed, during probe we get all the details about fixed-link out of
dts, later on the phy reports this values.

Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>

Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
2017-03-26 09:58:26 -05:00
..
aquantia.c driver: net: phylib: add support for aquantia AQR106/107 PHY 2016-07-06 10:45:04 -05:00
atheros.c drivers: net: phy: atheros: add separate config for AR8031 2016-10-13 12:24:55 -05:00
broadcom.c net: phy: Handle phy_startup() error codes properly 2016-05-24 13:17:59 +02:00
cortina.c nand: Embed mtd_info in struct nand_chip 2016-06-03 20:27:48 -05:00
davicom.c net: phy: Handle phy_startup() error codes properly 2016-05-24 13:17:59 +02:00
et1011c.c net: phy: Handle phy_startup() error codes properly 2016-05-24 13:17:59 +02:00
fixed.c drivers/net/phy: add fixed-phy / fixed-link support 2017-03-26 09:58:26 -05:00
generic_10g.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Kconfig drivers/net/phy: add fixed-phy / fixed-link support 2017-03-26 09:58:26 -05:00
lxt.c net: phy: Handle phy_startup() error codes properly 2016-05-24 13:17:59 +02:00
Makefile drivers/net/phy: add fixed-phy / fixed-link support 2017-03-26 09:58:26 -05:00
marvell.c net: phy: Improve the Marvell 151x constants 2017-02-07 10:54:35 -06:00
micrel.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
miiphybb.c net: mii: Changes not made by spatch 2016-08-15 15:29:03 -05:00
mscc.c net: phy: MSCC Add Support for VSC8530-VSC8531-VSC8540-VSC8541 2017-02-08 16:32:58 -06:00
mv88e61xx.c net: mv88e61xx: Add support for fixed links 2016-10-13 12:25:18 -05:00
mv88e6352.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
natsemi.c net: phy: Handle phy_startup() error codes properly 2016-05-24 13:17:59 +02:00
phy.c drivers/net/phy: add fixed-phy / fixed-link support 2017-03-26 09:58:26 -05:00
realtek.c net: phy: realtek: Only force master mode on rtl8211b/c 2016-12-08 10:36:22 -06:00
smsc.c net: phy: add SMSC LAN8742 phy 2017-01-28 14:04:47 -05:00
teranetics.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ti.c Merge branch 'master' of git://git.denx.de/u-boot-net 2017-02-09 11:56:35 -05:00
vitesse.c net: phy: vitesse: Fix cis8204 RGMII_ID code 2017-02-07 10:54:34 -06:00
xilinx_phy.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00