[PATCH v2 0/6] net: dwc_eth_qos: add support of device tree configuration for reset delay

Patrick Delaunay patrick.delaunay at foss.st.com
Mon Apr 26 17:46:46 CEST 2021


It is the V2 version of [1] after Marek remarks: all commit are new.

I change the DWC_ETH_QOS STM32 variant by using generic eth phy driver.

This driver is updated to use the gpio reset and assert/deassert delay
from DT with the generic binding defined in linux:
  Documentation/devicetree/bindings/net/ethernet-phy.yaml
or in U-Boot: doc/device-tree-bindings/net/phy.txt

[1] net: dwc_eth_qos: add support of device tree configuration for reset delay
    http://patchwork.ozlabs.org/project/uboot/list/?series=238253&state=*


Changes in v2:
- Update eth-phy driver (NEW)
- use log macro in eth-phy driver (NEW)
- update eth-phy driver to support STM32 binding with a mdio0 subnode (NEW)
- remove unused element in the struct eqos_priv (NEW)
- use generic ethernet phy for stm32 variant, this patch is a REWORK of
  previous serie: the device parsing is done in eth-phy driver and the gpio
  support is removed in stm32 variant: eqos_start/stop_resets_stm32 and
  eqos_probe_resources_stm32.
- cleanup ops by adding a common null ops (NEW)

Patrick Delaunay (6):
  net: eth-phy: add support of device tree configuration for gpio reset
  net: eth-phy: use dev_dbg and log_notice
  net: eth-phy: manage subnode mdio0
  net: dwc_eth_qos: remove the field phyaddr of the struct eqos_priv
  net: dwc_eth_qos: use generic ethernet phy for stm32 variant
  net: dwc: add a common empty ops eqos_null_ops

 drivers/net/Kconfig          |   1 +
 drivers/net/dwc_eth_qos.c    | 152 +++++------------------------------
 drivers/net/eth-phy-uclass.c |  78 +++++++++++++++---
 3 files changed, 91 insertions(+), 140 deletions(-)

-- 
2.17.1



More information about the U-Boot mailing list