On board S32G-VNP-RDB2 , BSP 42.0.
How to set SJA1110 100BASE-T1 PHY master/slave in Linux user space?
Solved! Go to Solution.
for example, the wires "100BASE-T1 TRX8" of J53 Cable on the board.
after enable DSA and up the interface trx8(default in slave mode), set it to be master mode like this:
ethtool -s trx8 master-slave forced-master
for example, the wires "100BASE-T1 TRX8" of J53 Cable on the board.
after enable DSA and up the interface trx8(default in slave mode), set it to be master mode like this:
ethtool -s trx8 master-slave forced-master
Hello, @liujialu_2024
Thanks for your clarification and sorry for my previous misunderstanding on it.
I could understand now that you are interested in the PHY Master/Slave, as far as I know, PHY management for these ports can be done only from SJA1110 firmware, I do not think it could not be set from Linux user space directly with default S32G BSP.
Actually the issue is not directly related with S32G, but SJA1110, for detailes, I suggest post your questions to the following board:
https://community.nxp.com/t5/Other-NXP-Products/bd-p/other
There should be more professional support for the internal components/features of SJA1110 itself.
I apologize for your inconvenience.
BR
Chenyin
Hello, @liujialu_2024
Thanks for your reply.
PFE master/slave is a feature of PFE(A IP of S32G), while the 100BASE-T1 is a PHY(included in the SJA1110 Switch).
There is not a feature called "100BASE-T1 slave".
On RDBs, the PFE0 connected to port4 of the SJA1110 by default, while the PFE0 is configured as multi-instance(for example, M core master, A core slave), for example in one configuration, T100BASE-T1(port6) is connected to the network segment that targeted to the A core side, AR8035 PHY(port 2) connected to the network segment that targeted to the M core side, then the traffic from T100BASE-T1 could be routed to the port4, then to A core via PFE0(PFE-slave),while the traffic from AR8035 could be routed to M core side also via PFE0(PFE master).
Hope it will help.
BR
Chenyin
In SJA1110 User Manual (um549820-UM11107 Software User Manual for SJA1110(2.0).pdf)
How can I set/clear the bit 14 of B100T1_PMA_CONTROL register in Linux user space?
note: the reigster is used to set the mode of 100BASE-T1 PHY (Master / Slave)
the mode is initialized by the pin strapping (PHY_M_Sx)
Hello, @liujialu_2024
Thanks for your post.
For enabling the master/slave feature on RDB2, you may reference the chapter 7.3.4 from BSP42.0 UM.
PFE master/slave is the function for PFE, on RDB2, by default, the PFE0 connect to the SJA1110, then the T100 port from sja1110 could be used for testing this feature.
BR
Chenyin
Thanks for your reply.
But "pfe-slave" is not "100BASE-T1 slave".
My question is how to set the 100BASE-T1 PHYs in SJA1110 to Master/Slave Mode.