mbox series

[net-next,0/5] net/fsl: xgmac_mdio: Preamble suppression and custom MDC frequencies

Message ID 20220126101432.822818-1-tobias@waldekranz.com (mailing list archive)
Headers show
Series net/fsl: xgmac_mdio: Preamble suppression and custom MDC frequencies | expand

Message

Tobias Waldekranz Jan. 26, 2022, 10:14 a.m. UTC
The first patch removes the docs for a binding that has never been
supported by the driver as far as I can see. This is a bit of a
mystery to me, maybe Freescale/NXP had/has support for it in an
internal version?

We then start working on the xgmac_mdio driver, converting the driver
to exclusively use managed resources, thereby simplifying the error
paths. Suggested by Andrew.

Preamble suppression is then added, followed by MDC frequency
customization. Neither code will change any bits if the corresponding
dt properties are not specified, so as to not trample on any setup
done by the bootloader, which boards might have relied on up to now.

Finally, we document the new bindings.

Tested on a T1023 based board.

Tobias Waldekranz (5):
  dt-bindings: net: xgmac_mdio: Remove unsupported "bus-frequency"
  net/fsl: xgmac_mdio: Use managed device resources
  net/fsl: xgmac_mdio: Support preamble suppression
  net/fsl: xgmac_mdio: Support setting the MDC frequency
  dt-bindings: net: xgmac_mdio: Add "clock-frequency" and
    "suppress-preamble"

 .../devicetree/bindings/net/fsl-fman.txt      | 22 +++--
 drivers/net/ethernet/freescale/xgmac_mdio.c   | 88 ++++++++++++-------
 2 files changed, 74 insertions(+), 36 deletions(-)