u-boot/drivers/net
Stefan Roese 0ef02619ef net: phy: marvell: Support reg config via "marvell, reg-init" DT property
This patch adds support for the "marvell,reg-init" DT property, which
is used to describe board specific Marvell PHY register configurations
in the board dts file. This DT property is supported in the Linux Kernel
since a longer time. Adding it to U-Boot now, enables the boards which
describe the register settings in their DT files here as well.

I've included calling this marvell_of_reg_init() to all foo_config()
functions in this patch as well. If CONFIG_DM_ETH is not set, there is
no ofnode, or no "marvell,reg-init" property, the PHY initialization is
unchanged.

The function marvell_of_reg_init() is a port of the Linux version.
Please note that I explicitly did not add error checking and handling
to the U-Boot version, as this is basically not done for phy_read/write
in this Marvell PHY code.

This will be used by the upcoming ethernet support on the MIPS
Octeon EBB 7304 board.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Aaron Williams <awilliams@marvell.com>
Cc: Chandrakala Chavva <cchavva@marvell.com>
Cc: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
2022-08-08 10:50:20 -04:00
..
bnxt pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
fm Convert CONFIG_FSL_MEMAC et al to Kconfig 2022-08-04 16:18:48 -04:00
fsl-mc drivers: net: fsl-mc: add a command which dumps the MC log 2021-11-09 17:18:06 +05:30
ldpaa_eth treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
mscc_eswitch pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
octeon net: Add ethernet support for MIPS Octeon 2022-05-04 03:38:21 +02:00
octeontx pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
octeontx2 pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
pfe_eth spi: spi_flash_probe_bus_cs() rely on DT for spi speed and mode 2022-05-23 09:33:10 -04:00
phy net: phy: marvell: Support reg config via "marvell, reg-init" DT property 2022-08-08 10:50:20 -04:00
qe treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
ti driver: net: ti: keystone_net: Change priv member type 2022-04-13 15:12:03 +03:00
ag7xxx.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
altera_tse.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
altera_tse.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
aspeed_mdio.c drivers: net: add Aspeed MDIO driver 2021-11-23 09:57:56 +02:00
bcm6348-eth.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
bcm6368-eth.c net: bcm63xx: Don't check clk_free 2022-03-30 13:02:55 -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 net: bcm-sf2: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03: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
bcmgenet.c bcmgenet, sun8i_emac: Don't connect PHY two times 2022-04-10 08:44:13 +03:00
calxedaxgmac.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
cortina_ni.c net: cortina_ni: buffer overrun 2021-02-24 16:51:49 -05:00
cortina_ni.h net: cortina_ni: Add eth support for Cortina Access CAxxxx SoCs 2021-01-27 10:47:44 -05:00
dc2114x.c dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00
designware.c stm32mp1: fix reference for STMicroelectronics 2022-06-17 14:12:27 +02:00
designware.h net: designware: Rename CONFIG_DW_GMAC_DEFAULT_DMA_PBL to GMAC_DEFAULT_DMA_PBL 2022-07-05 17:03:01 -04:00
dm9000x.c net: dm9000: Add DM support 2022-04-13 15:13:54 +03:00
dm9000x.h
dsa_sandbox.c net: update NXP copyright text 2021-09-28 18:50:56 +03:00
dwc_eth_qos_imx.c net: dwc_eth_qos: introduce eqos hook eqos_get_enetaddr 2022-07-26 11:29:01 +02:00
dwc_eth_qos.c net: dwc_eth_qos: introduce eqos hook eqos_get_enetaddr 2022-07-26 11:29:01 +02:00
dwc_eth_qos.h net: dwc_eth_qos: introduce eqos hook eqos_get_enetaddr 2022-07-26 11:29:01 +02:00
dwmac_meson8b.c net: designware: meson8b: add g12a compatible 2021-05-14 17:46:50 +02:00
dwmac_s700.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
dwmac_socfpga.c net: designware: socfpga: Add ATF support for MAC driver 2021-01-15 17:48:37 +08:00
e1000_spi.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
e1000.c pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
e1000.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
eepro100.c net: eepro100: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03:00
eth-phy-uclass.c net: eth-phy: prevent undesired de-assertion of phy-reset on request 2022-04-10 08:44:13 +03:00
ethoc.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
fec_mxc.c net: fec_mxc: support i.MX93 2022-07-26 11:29:01 +02:00
fec_mxc.h net: fec_mxc: Declare 'promisc' as bool 2021-11-23 09:57:56 +02:00
fsl_enetc_mdio.c pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
fsl_enetc.c net: enetc: unregister mdiobus 2022-06-03 11:15:24 -04:00
fsl_enetc.h net: enetc: force the RGMII MAC speed/duplex instead of using in-band signaling 2021-07-06 05:22:41 +03:00
fsl_ls_mdio.c net: fsl: Fix busy flag polling register 2022-01-15 18:53:16 +02:00
fsl_mcdmafec.c Convert CONFIG_SYS_DISCOVER_PHY to Kconfig 2022-07-07 09:29:08 -04:00
fsl_mdio.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
ftgmac100.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
ftgmac100.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ftmac100.c Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
ftmac100.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gmac_rockchip.c clk: Allow force setting clock defaults before relocation 2021-06-17 09:40:57 +08:00
higmacv300.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
Kconfig Convert CONFIG_FSL_MEMAC et al to Kconfig 2022-08-04 16:18:48 -04:00
ks8851_mll.c net: ks8851: Reset internal RXFC count on bad packet 2021-01-19 09:15:02 -05:00
ks8851_mll.h net: ks8851_mll: add ethernet support 2013-06-24 19:11:14 -05:00
ksz9477.c net: add support for KSZ9477/KSZ9897/KSZ9567 GbE switch 2021-07-10 18:12:42 +02:00
lpc32xx_eth.c net: lpc32xx: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03:00
macb.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
macb.h net: macb: Add DMA 64-bit address support for macb 2021-01-18 11:06:38 +08:00
Makefile net: dwc_eth_qos: move i.MX code out 2022-07-26 11:29:01 +02:00
mcffec.c Convert CONFIG_SYS_DISCOVER_PHY to Kconfig 2022-07-07 09:29:08 -04:00
mcfmii.c Convert CONFIG_MII_INIT to Kconfig 2022-03-25 12:01:15 +00:00
mdio_mux_i2creg.c dm: core: Access device ofnode through functions 2021-01-05 12:24:41 -07:00
mdio_mux_meson_g12a.c net: add Amlogic Meson G12A MDIO MUX driver 2021-04-06 11:10:29 +02:00
mdio_mux_mmioreg.c net: add MMIO Register MDIO MUX driver 2021-04-06 11:10:29 +02:00
mdio_mux_sandbox.c treewide: use dm_mdio_read/write/reset() wrappers 2022-04-10 08:44:12 +03:00
mdio_sandbox.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mdio-ipq4019.c dm: core: Access device ofnode through functions 2021-01-05 12:24:41 -07:00
mpc8xx_fec.c net: mpc8xx_fec: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03:00
mt7620-eth.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
mt7628-eth.c dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00
mtk_eth.c net: mediatek: add support for MediaTek MT7621 SoC 2022-07-13 23:03:37 +02:00
mtk_eth.h eth: mtk-eth: enable mt7629 sgmii mode support in mediatek eth driver 2020-07-28 22:44:00 -04:00
mvgbe.c net: marvell: mvgbe: Set PHY page 0 before phy_connect 2022-05-02 07:47:26 +02:00
mvgbe.h net: mvgbe: convert to DM 2018-07-26 14:08:21 -05:00
mvmdio.c WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
mvneta.c net: mvneta: Drop unneeded macro 2022-05-04 07:05:51 +02:00
mvpp2.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
netconsole.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
pch_gbe.c pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -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 dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00
pic32_eth.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03: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 net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
rtl8139.c dm: treewide: Rename dev_get_platdata() to dev_get_plat() 2020-12-13 16:51:09 -07:00
rtl8169.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07: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 sandbox: net: Ensure host name is always a valid string 2021-07-15 18:42:05 -04:00
sandbox.c sandbox: net: Remove fake-host-hwaddr 2022-06-08 13:59:52 -04:00
sh_eth.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
sh_eth.h sh: Remove sh7757lcr board 2021-02-15 10:16:24 -05:00
sja1105.c net: dsa: sja1105: fix device id detection 2022-01-15 18:49:13 +02:00
smc911x.c net: smc911x: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03:00
smc911x.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
smc91111.c net: Use phys_addr_t for SMC net device addresses 2021-07-22 21:55:05 +03:00
smc91111.h arm: pxa: Remove CONFIG_CPU_PXA25X 2022-06-06 12:09:12 -04:00
sni_ave.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
sni_netsec.c spi: spi_flash_probe_bus_cs() rely on DT for spi speed and mode 2022-05-23 09:33:10 -04:00
sun8i_emac.c net: sun8i-emac: Drop use of arch-specific header 2022-07-18 11:27:29 +01:00
sunxi_emac.c Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net 2022-04-15 08:10:32 -04:00
tsec.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
vsc7385.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
vsc9953.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
xilinx_axi_emac.c net: xilinx: axi_emac: Use shared MDIO bus support for axi emac driver 2022-06-24 14:11:05 +02:00
xilinx_axi_mrmac.c net: xilinx: axi_mrmac: Add MRMAC driver 2021-07-26 09:18:45 +02:00
xilinx_axi_mrmac.h net: xilinx: axi_mrmac: Add MRMAC driver 2021-07-26 09:18:45 +02:00
xilinx_emaclite.c net: xilinx: axi_emaclite: Use shared MDIO bus support for axi emaclite driver 2022-06-24 14:11:05 +02:00
zynq_gem.c Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net 2022-04-15 08:10:32 -04:00