> This adds an MDIO driver for PIC64-HPSC/HX. The hardware supports C22
> and C45 but only C22 is implemented in this commit.
>
> This MDIO hardware is based on a Microsemi design supported in U-Boot by
> mdio-mscc-miim.c. However, The register interface is completely
> different with pic64hpsc, hence the need for a separate driver.
>
> The documentation recommends an input clock of 156.25MHz and a prescaler
> of 39, which yields an MDIO clock of 1.95MHz.
>
> The hardware supports an interrupt pin or a "TRIGGER" bit that can be
> polled to signal transaction completion. This commit uses polling.
>
> This was tested on Microchip HB1301 evalkit with a VSC8574 and a
> VSC8541.
>
> A Linux driver is also available for this hardware. See these links:
> https://elixir.bootlin.com/linux/v7.2.10/source/drivers/net/mdio/mdio-pic64hpsc.c
> https://patch.msgid.link/[email protected]
>
> Signed-off-by: Charles Perry <[email protected]>
> ---
>  drivers/net/Kconfig          |   8 ++
>  drivers/net/Makefile         |   1 +
>  drivers/net/mdio-pic64hpsc.c | 178 
> +++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 187 insertions(+)

Applied to u-boot-net branch for-main [1], thanks!

[1] 
https://git.u-boot-project.org/u-boot/custodians/u-boot-net/-/commits/for-main

[1/1] net: mdio-pic64hpsc.c: add a driver for PIC64-HPSC/HX MDIO controller
      commit: 64fe14b53ccaaf4444617552bc82463fe757b109

Best regards,
-- 
Jerome Forissier <[email protected]>

Reply via email to