LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-30-2020, 12:09 AM   #1
Andy041292
LQ Newbie
 
Registered: Apr 2019
Posts: 3

Rep: Reputation: Disabled
MDIO bus for non-phy device


I have a board with three devices on mdio bus connected to SoC (AM3358). Only one phy (AR8035) is connected to SoC through rgmii, the other two devices (MAX24287 and DP83620) have only mdio connection. I've integrated drivers for these devices into linux kernel (4.14.40). Davinchi_mdio finds all devices and attaches appropriate drivers, but I can't access registers through mdio because I only have two interfaces (I don't have Ethernet interfaces for MAX24287 and DP83620). How can I workaround these issue? Maybe there is a way I can describe non-phy MDIO devices in linux device tree?
 
Old 01-05-2023, 09:55 AM   #2
Mahdi_sh
LQ Newbie
 
Registered: Jan 2023
Posts: 1

Rep: Reputation: 0
Hello, I have a similar issue. Did you manage to resolve your case?
 
Old 01-26-2023, 11:52 AM   #3
kaehnd
LQ Newbie
 
Registered: Jan 2023
Posts: 1

Rep: Reputation: 0
One option would be to use mdio-tools, and the associated mdio-netlink kernel module (though this would not have worked for the OP, since this requires kernel 5.6 or later)

https://github.com/wkz/mdio-tools

If building a distro with yocto, this is newly available as a recipe within meta-networking:
https://github.com/openembedded/meta...ort/mdio-tools
 
Old 12-07-2023, 02:34 AM   #4
hueljannie
LQ Newbie
 
Registered: Dec 2023
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by kaehnd View Post
One option would be to use mdio-tools, and the associated mdio-netlink kernel module (though this would not have worked for the OP, since this requires kernel 5.6 or later)

https://github.com/wkz/mdio-tools

If building a distro with yocto, this is newly available as a recipe within meta-networking:
https://github.com/openembedded/meta...ort/mdio-toolsgeometry dash
Thank you, I encountered a comparable issue as well.
I have successfully resolved the issue I was facing. I lack the expertise to identify this.

Last edited by hueljannie; 12-11-2023 at 01:33 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access non ethernet phy device register over mdio bus from user space silversurfertab Linux - Newbie 10 05-05-2018 02:21 AM
How to specify the MDIO Bus details in Device tree (DTS) for a imx28 Board? redbrain17 Programming 0 11-08-2014 01:44 PM
mdio probe function not called. rashyd80 Programming 3 07-20-2010 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration