u-boot/include/dm
Vladimir Oltean 2dd6acb795 net: introduce a helper to determine whether to use in-band autoneg
Certain serial SERDES protocols like 1000base-x, 2500base-x, SGMII,
USXGMII can operate either in a mode where the PHY (be it on-board or
inside an SFP module) passes the link parameters (speed, duplex, pause)
to the MAC through in-band through control words standardized by IEEE
802.3 clause 37, or in a mode where the MAC must configure (force) its
link parameters based on information obtained out-of-band (MDIO reads,
guesswork etc).

In Linux, the OF node property named "managed" is parsed by the phylink
framework, and the convention is that if a driver uses phylink, then the
presence of this property means that in-band autoneg should be enabled,
otherwise it shouldn't.

To be compatible with the OF node bindings of drivers that use phylink
in Linux, introduce parsing support for this property in U-Boot too.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
2021-11-23 09:57:55 +02:00
..
platform_data WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
acpi.h common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
device-internal.h dm: core: Add warnings to private / platform setters 2021-03-26 17:03:09 +13:00
device.h Xilinx changes for v2022.01-rc1 2021-09-30 11:29:41 -04:00
device_compat.h dm: Don't undefine dev_xxx macros 2020-10-16 09:44:27 -04:00
devres.h dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
fdtaddr.h dm: core: Add a new API devfdt_get_addr_index_ptr() 2021-10-20 10:59:09 +08:00
lists.h cmd: bind: Fix driver binding on a device 2021-10-12 14:19:52 +02:00
of.h dm: Avoid using #ifdef for CONFIG_OF_LIVE 2020-10-29 14:42:17 -06:00
of_access.h dm: add cells_count parameter in *_count_phandle_with_args 2020-10-06 09:07:54 -06:00
of_addr.h dm: Introduce xxx_get_dma_range() 2021-02-18 11:56:25 +01:00
of_extra.h net: introduce a helper to determine whether to use in-band autoneg 2021-11-23 09:57:55 +02:00
ofnode.h dm: core: add ofnode_for_each_compatible_node() 2021-11-09 17:18:23 +05:30
pci.h dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
pinctrl.h cmd: pinmux: update result of do_status 2021-07-23 07:13:25 -04:00
platdata.h dm: core: Drop device_get_by_driver_info() 2021-03-26 17:03:08 +13:00
read.h dm: Provide dev_read_addr_index_ptr() wrapper 2021-10-20 10:59:09 +08:00
root.h dm: core: Adjust uclass setup with of-platdata 2021-03-22 19:23:28 +13:00
simple_bus.h dm: core: Correctly read <ranges> of simple-bus 2021-04-15 14:22:17 +05:30
test.h Prepare v2021.04-rc5 2021-03-29 18:00:21 -04:00
uclass-id.h iommu: Add IOMMU uclass 2021-10-31 08:46:44 -04:00
uclass-internal.h dm: core: Add warnings to private / platform setters 2021-03-26 17:03:09 +13:00
uclass.h dm: core: Fix a few incorrect comments on first/next functions 2021-09-16 13:19:25 -04:00
util.h dm: Fix util.h's broken include guard 2021-10-21 12:50:48 -06:00