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 ?

Reply via email to