u-boot/drivers/net
Fabio Estevam 89b5bd54c1 net: fec: Allow the PHY node to be retrieved
As we move towards driver model, it is required to let the FEC driver
know how to properly deal with an Ethernet PHY subnode in the device tree.

For example:

 &fec {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_microsom_enet_ar8035>;
	phy-handle = <&phy>;
 	phy-mode = "rgmii-id";
 	phy-reset-duration = <2>;
 	phy-reset-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
 	status = "okay";

	mdio {
		#address-cells = <1>;
		#size-cells = <0>;

		phy: ethernet-phy@0 {
			reg = <0>;
			qca,clk-out-frequency = <125000000>;
		};
	};
 };

Currently the PHY node pointer is incorrectly associated with the
Ethernel controller instead of the PHY node itself.

This causes the PHY properties, such as "qca,clk-out-frequency" in
the example above to not get parsed.

Fix this problem by populating the phy_of_node node.

Suggested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Tom Rini <trini@konsulko.com>
2020-06-22 17:40:49 +02:00
..
fm Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq 2020-05-20 08:46:56 -04:00
fsl-mc Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq 2020-05-20 08:46:56 -04:00
ldpaa_eth common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mscc_eswitch common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pfe_eth common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
phy phy: atheros: ar8035: Fix clock output calculation 2020-06-22 17:40:41 +02:00
ti common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
8390.h
ag7xxx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
altera_tse.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
altera_tse.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
armada100_fec.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
armada100_fec.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
at91_emac.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ax88180.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ax88180.h
ax88796.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ax88796.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm-sf2-eth-gmac.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bcm-sf2-eth-gmac.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm-sf2-eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
bcm-sf2-eth.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm6348-eth.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bcm6368-eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
bcmgenet.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
calxedaxgmac.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
cs8900.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
cs8900.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dc2114x.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
designware.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
designware.h common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
dm9000x.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dm9000x.h
dnet.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dnet.h
dwc_eth_qos.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dwmac_socfpga.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
e1000.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
e1000.h command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
e1000_spi.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
eepro100.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ep93xx_eth.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
ep93xx_eth.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eth-phy-uclass.c net: Add eth phy generic driver for shared MDIO 2020-05-10 13:24:48 +02:00
ethoc.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fec_mxc.c net: fec: Allow the PHY node to be retrieved 2020-06-22 17:40:49 +02:00
fec_mxc.h net: fec: Allow the PHY node to be retrieved 2020-06-22 17:40:49 +02:00
fsl_enetc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fsl_enetc.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
fsl_enetc_mdio.c drivers: net: fsl_enetc_mdio: return with time-out if HW is stuck 2019-12-09 09:47:43 -06:00
fsl_ls_mdio.c drivers: net: add Layerscape mEMAC MDIO driver 2020-04-29 10:49:20 +05:30
fsl_mcdmafec.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fsl_mdio.c net: tsec: fsl_mdio: add DM MDIO support 2020-06-04 18:53:14 +05:30
ftgmac100.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ftgmac100.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ftmac100.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ftmac100.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ftmac110.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ftmac110.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gmac_rockchip.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
higmacv300.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Kconfig drivers: net: e1000: with DM_ETH needs DM_PCI too 2020-06-03 12:14:27 +05:30
ks8851_mll.c net: ks8851: Add DM support 2020-05-22 19:46:45 +02:00
ks8851_mll.h
lan91c96.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
lan91c96.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lpc32xx_eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
macb.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
macb.h net: macb: add support for faster clk rates 2019-07-25 13:13:30 -05:00
Makefile net: Add eth phy generic driver for shared MDIO 2020-05-10 13:24:48 +02:00
mcffec.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mcfmii.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mdio_mux_i2creg.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mdio_mux_sandbox.c test: dm: add a test for MDIO MUX DM uclass 2019-07-18 16:37:13 -05:00
mdio_sandbox.c test: dm_mdio: avoid out of bounds access 2019-09-04 11:37:19 -05:00
mpc8xx_fec.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mt7628-eth.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mtk_eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mtk_eth.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mvgbe.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mvgbe.h net: mvgbe: convert to DM 2018-07-26 14:08:21 -05:00
mvmdio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mvneta.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mvpp2.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
natsemi.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ne2000.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ne2000.h
ne2000_base.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ne2000_base.h common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
netconsole.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ns8382x.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pch_gbe.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pch_gbe.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pcnet.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pic32_eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pic32_eth.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pic32_mdio.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ravb.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rtl8139.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rtl8169.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
sandbox-raw-bus.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sandbox-raw.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sandbox.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sh_eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
sh_eth.h net: sh_eth: Fix 64bit build warnings 2019-08-09 23:15:01 +02:00
smc911x.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
smc911x.h common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
smc91111.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
smc91111.h common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
sni_ave.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sun8i_emac.c net: sun8i_emac: Add support for the H6 variant 2020-06-01 22:38:37 +05:30
sunxi_emac.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tsec.c net: tsec: Access TBI PHY through the corresponding MII 2020-06-04 18:53:20 +05:30
uli526x.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
vsc7385.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
vsc9953.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
xilinx_axi_emac.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
xilinx_emaclite.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
zynq_gem.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00