[PATCH] net: dwc_eth_qos: add support of device tree configuration for reset delay

Marek Vasut marex at denx.de
Fri Apr 9 14:22:05 CEST 2021


On 4/9/21 10:00 AM, Patrick Delaunay wrote:
> The gpio reset assert/deassert delay are today harcoded in U-Boot driver
> but the value should be read from DT.
> 
> STM32 use the generic binding defined in linux:
> Documentation/devicetree/bindings/net/ethernet-phy.yaml
> 
>    reset-gpios:
>      maxItems: 1
>      description:
>        The GPIO phandle and specifier for the PHY reset signal.
> 
>    reset-assert-us:
>      description:
>        Delay after the reset was asserted in microseconds. If this
>        property is missing the delay will be skipped.
> 
>    reset-deassert-us:
>      description:
>        Delay after the reset was deasserted in microseconds. If
>        this property is missing the delay will be skipped.
> 
> See also U-Boot: doc/device-tree-bindings/net/phy.txt

Since this is a PHY property, shouldn't that be handled in 
drivers/net/phy/ instead of MAC driver ?


More information about the U-Boot mailing list