Hello,
I am trying to find some examples about how to use the DP83867IR Linux driver in the AM64 SDK but I cannot find any.
Please refer me to something I can look at, even if the example is located in some other SDK.
Best regards,
Paolo
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am trying to find some examples about how to use the DP83867IR Linux driver in the AM64 SDK but I cannot find any.
Please refer me to something I can look at, even if the example is located in some other SDK.
Best regards,
Paolo
I went through some examples in the SDK but I could not find any which referenced the driver.
Also by explicitly searching dp83867.c or dp83867.h I could not find anything.
If you could point out an example (name or path) in the SDK it would be great.
Thank you for you help,
Paolo
Hi Paolo,
Here is the link to the Linux driver:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/phy/dp83867.c
I can forward your ticket to AM64 team to help with SDK queries.
Regards,
Rahul
Hi,
What type of examples are you looking for or what are trying to do? A short summary of operation is that once a driver is identified a common framework by the MDIO driver to access information from the PHY and is made available to ethtool.
Best Regards,
Schuyler
Thank you Rahul, I already found that driver, but I was expecting to see it referenced somewhere via some
#include "dp83867.h".
I have just started to play with AM64 and the SDK so maybe I am making some mistakes or taking wrong assumptions along the way. If you can forward the ticket to the proper team it would be great.
Schuyler Patton I do not udnerstand how the driver is taken into account during the development, as I said above I was expecting some reference to it in the example code. What am I doing wrong?
Regards,
Paolo
Hi,
The dp83867 you are referencing is written to fit into the kernel network driver framework. There is not any development necessary to use a particular PHY. The PHY driver you are pointing to part of the Linux kernel source tree. The TI Linux kernel config is configured to pull in this driver. In addition to kernel config the other step required is adding the PHY node definition to your board DTS file.
From an application perspective the PHY driver is not referenced using socket API. There is a utility called ethtool that allows you to view PHY link status, link advertisements etc. From a developer point of the view the PHY selected fits into this framework and is essentially transparent when functioning properly.
Best Regards,
Schuyler
Thank you Schuyler for your answer.
Where can I find the dts file? is there a tool for creating or editing it?
Best regards,
Paolo
Hi,
You did not mentioned which TI processor that you are using so I will point to two different directories where DTS examples can be found.
All the DTS files for the TI AM64x EVM can be found here.
This directory contains examples for the AM65, AM64 and AM62.
Best Regards,
Schuyler