cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
eliezer
Explorer
Explorer
966 Views
Registered: ‎03-21-2019

How to use the mdio gpio driver?

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.

 

0 Kudos
Reply
3 Replies
tmonaghan84
Explorer
Explorer
825 Views
Registered: ‎04-19-2018

@eliezer did you manage to get anywhere with this ?.

 

I need to use GPIO pins for MDIO communication to the PHY.

 

Thanks

Tim

0 Kudos
Reply
eliezer
Explorer
Explorer
818 Views
Registered: ‎03-21-2019

0 Kudos
Reply
tmonaghan84
Explorer
Explorer
782 Views
Registered: ‎04-19-2018

thanks @eliezer  , Although not sure the same approach will work for me.

Although some good related information, Thanks.

0 Kudos
Reply