10-02-2019 11:29 AM
I have turned on the MDIO GPIO module, in hopes that I will be able to use it to interface with the MDIO registers through GPIO manipulation. However, I cannot find any documentation on how to use this module.
I know the ID of my Phy, and the registers I want to read/write. All I need to know is how to utilize the module to do this. I have included it in my kernel, and used insmod to insert the module "mdio_gpio" at runtime. But now I don't know how to proceed.
My end goal is to write a driver (kernel or userspace, either one would be fine) that can interface with a specific Phy, at specific registers, through MDIO. If I'm barking up the wrong tree with this mdio-gpio driver, then please point me in the right direction.
12-10-2019 01:59 PM
@eliezer did you manage to get anywhere with this ?.
I need to use GPIO pins for MDIO communication to the PHY.
Thanks
Tim
12-10-2019 02:10 PM
I did end up solving my problem without touching the GPIO pins. Here are the links that led me to my solution, hope you can find a solution as well:
https://www.xilinx.com/html_docs/registers/ug1087/ug1087-zynq-ultrascale-registers.html
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/145031176/Reading+PHY+registers+over+MDIO+via+the+PHY+Management+GEM+Register
https://forums.xilinx.com/t5/Embedded-Linux/MDC-MDIO-bus-on-petalinux-how-to-use/m-p/1026748/highlight/false#M36944
12-11-2019 12:40 AM
thanks @eliezer , Although not sure the same approach will work for me.
Although some good related information, Thanks.