Part Number: SK-TDA4VM
Hi, I am JC
I want to verify 1G Ethernet port is OK with IEEE compliant test.
Before that, is there any example set command for IEEE compliant test of PHY in SK-TDA4VM?
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.
Hi JC,
Due to a holiday, half of our team is currently out of the office. Please expect a 1~2 day delay in response.
Thank you,
Fabiana
Hi,
The PHY used in SK-TDA4VM is DP83867.
Please find the more details from Product page.
Before that, is there any example set command for IEEE compliant test of PHY in SK-TDA4VM?
Below is App Note for how to pass IEEE ethernet compliance test for the above PHY, which is available in Technical Documents section of above product page.
https://www.ti.com/lit/an/snla385/snla385.pdf?ts=1714648757101&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FDP83867IR
Best Regards,
Sudheer
Thanks for the link.
Do you know cmd how to set Reg 0x1F = 0x8000 in SK-TDA4VM for example?

Hi,
You may use phytool in Linux for accessing the PHY registers.
Best Regards,
Sudheer
Sorry I am HW engineer and this is first time to use TI PHY,
so I actually don't know how to use phytool for now.
If you have any example command for read/write at Reg 0x1F and share, it would be pleasure.
read : Reg 0x1F
write : Reg 0x1F 0x8000
I found cmd list like this
If I have problem I will let you know. Thanks!
root@tda4vm-sk:/# phytool
Usage: phytool read IFACE/ADDR/REG
phytool write IFACE/ADDR/REG <0-0xffff>
phytool print IFACE/ADDR[/REG]
where
ADDR := C22 | C45
C22 := <0-0x1f>
C45 := <0-0x1f>:<0-0x1f>
REG := <0-0x1f>
Examples:
phytool read eth0/0:3/1
phytool write eth0/0xa/0 0x1140
phytool print eth0/0x1c
Note: Not all MDIO drivers support the `port:device` Clause 45 address
format.
The `read` and `write` commands are simple register level
accessors. The `print` command will pretty-print a register. When
using the `print` command, the register is optional. If left out, the
most common registers will be shown.
Bug report address: https://github.com/wkz/phytool/issues
Am I doing right?
Reg 0x9 = 3B00 seems to be written well, but I don't understand what eth0/0 <- means '0' here.
root@tda4vm-sk:/opt/edgeai-gst-apps# phytool write eth0/0/0x9 0x3B00
root@tda4vm-sk:/opt/edgeai-gst-apps# phytool read eth0/0/0x9
0x3b00
Hi,
Reg 0x9 = 3B00 seems to be written well, but I don't understand what eth0/0 <- means '0' here.
It is ADDR of PHY. It will range from 0 to 31.
You need to pass actual PHY address? the same address you are mentioned in device tree as well.
You can observe the PHY address from CPSW log as DP83867 PHY found at address x.
Best Regards.
Sudheer
While compliant testing for 1000Base-T at the ethernet port of SK-TDA4VM, I observed two failure result at Mask test templateH/F.
set : @tda4vm-sk:/opt/edgeai-gst-apps# phytool write eth0/0/0x9 0x3B00
enabled mode1 at lane 1 and observed lane 1
1) My first question,
Is there any debugging point for this? for example, setting change of VoD,, and so on.


2)
Can I enable mode 1 to 2,3,4 lane?
With this cmd, I could not see any singals on 2,3,4 lane.
root@tda4vm-sk:/opt/edgeai-gst-apps# phytool write eth0/0/0x25 0x480
3)
How much range VoD increase with setting like this?
I don't have register table for VoD set value.
root@tda4vm-sk:/opt/edgeai-gst-apps# phytool write eth0/0/0x1D5 0xF508
root@tda4vm-sk:/opt/edgeai-gst-apps# phytool read eth0/0/0/x1D5
0x1140
Hi,
Is there any debugging point for this? for example, setting change of VoD,, and so on.
You can't change the VoD supplied to PHY. It is fixed
Can I enable mode 1 to 2,3,4 lane?
With this cmd, I could not see any singals on 2,3,4 lane.
root@tda4vm-sk:/opt/edgeai-gst-apps# phytool write eth0/0/0x25 0x480
The way you are accessing is wrong.
0x25 is falls under Extended registers set. you have to access using the REGCR (0x000D) and ADDAR (0x000E) register. Please refer to Data sheet for more information.
Also, if you have any queries related to PHY, please create new thread with PHY title not with TDA device name.
Thread will be assigned to PHY Team and they will address PHY related queries.
Best Regards,
Sudheer