mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-14 07:13:03 +00:00
a744a284e3
Ethernet phy like dp83867 is using strapping resistors to setup PHY address. On Xilinx boards strapping is setup on wires which are connected to SOC where internal pull ups/downs influnce phy address. That's why there is a need to setup pins properly (via pinctrl driver for example) and then perform phy reset. I can be workarounded by reset gpio done for mdio bus but this is not working properly when multiply phys sitting on the same bus. That's why it needs to be done via ethernet-phy-id driver where dt binding has gpio reset per phy. DT binding is available here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/net/ethernet-phy.yaml The driver is are reading the vendor and device id from valid phy node using ofnode_read_eth_phy_id() and creating a phy device. Kconfig PHY_ETHERNET_ID symbol is used because not every platform has gpio support. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com> Link: https://lore.kernel.org/r/70ab7d71c812b2c972d48c129e416c921af0d7f5.1645627539.git.michal.simek@xilinx.com
39 lines
1.4 KiB
Makefile
39 lines
1.4 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2008
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
obj-$(CONFIG_BITBANGMII) += miiphybb.o
|
|
obj-$(CONFIG_B53_SWITCH) += b53.o
|
|
obj-$(CONFIG_MV88E61XX_SWITCH) += mv88e61xx.o
|
|
obj-$(CONFIG_MV88E6352_SWITCH) += mv88e6352.o
|
|
|
|
obj-$(CONFIG_PHYLIB) += phy.o
|
|
obj-$(CONFIG_PHYLIB_10G) += generic_10g.o
|
|
obj-$(CONFIG_PHY_AQUANTIA) += aquantia.o
|
|
obj-$(CONFIG_PHY_ATHEROS) += atheros.o
|
|
obj-$(CONFIG_PHY_BROADCOM) += broadcom.o
|
|
obj-$(CONFIG_PHY_CORTINA) += cortina.o
|
|
obj-$(CONFIG_PHY_CORTINA_ACCESS) += ca_phy.o
|
|
obj-$(CONFIG_PHY_DAVICOM) += davicom.o
|
|
obj-$(CONFIG_PHY_ET1011C) += et1011c.o
|
|
obj-$(CONFIG_PHY_LXT) += lxt.o
|
|
obj-$(CONFIG_PHY_MARVELL) += marvell.o
|
|
obj-$(CONFIG_PHY_MICREL_KSZ8XXX) += micrel_ksz8xxx.o
|
|
obj-$(CONFIG_PHY_MICREL_KSZ90X1) += micrel_ksz90x1.o
|
|
obj-$(CONFIG_PHY_MESON_GXL) += meson-gxl.o
|
|
obj-$(CONFIG_PHY_NATSEMI) += natsemi.o
|
|
obj-$(CONFIG_PHY_NXP_C45_TJA11XX) += nxp-c45-tja11xx.o
|
|
obj-$(CONFIG_PHY_REALTEK) += realtek.o
|
|
obj-$(CONFIG_PHY_SMSC) += smsc.o
|
|
obj-$(CONFIG_PHY_TERANETICS) += teranetics.o
|
|
obj-$(CONFIG_PHY_TI) += ti_phy_init.o
|
|
obj-$(CONFIG_PHY_TI_DP83867) += dp83867.o
|
|
obj-$(CONFIG_PHY_TI_DP83869) += dp83869.o
|
|
obj-$(CONFIG_PHY_XILINX) += xilinx_phy.o
|
|
obj-$(CONFIG_PHY_XILINX_GMII2RGMII) += xilinx_gmii2rgmii.o
|
|
obj-$(CONFIG_PHY_ETHERNET_ID) += ethernet_id.o
|
|
obj-$(CONFIG_PHY_VITESSE) += vitesse.o
|
|
obj-$(CONFIG_PHY_MSCC) += mscc.o
|
|
obj-$(CONFIG_PHY_FIXED) += fixed.o
|
|
obj-$(CONFIG_PHY_NCSI) += ncsi.o
|