Skip to content

Commit 0f03088

Browse files
feat(linux): Add ICSSM doc support for link speed and duplexity configuration
Add section for configuring link speed and duplexity for a given network interface in ICSSM driver and highlight the known issue that half duplex doesn't work for eth1 interface of am335x platform Signed-off-by: Meghana Malladi <[email protected]>
1 parent c0ad8d8 commit 0f03088

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

source/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/PRU-ICSS_Ethernet.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,42 @@ mode.
523523
524524
ip link set eth0 promisc on
525525
526+
Configure interface (ethtool)
527+
=============================
528+
529+
``ethtool -s|--change DEVNAME`` command can be used for configuring interface generic options.
530+
The main purpose of this command is to configure physical link settings (PHY) like speed, duplex, auto-negotiation.
531+
532+
The PRU Ethernet driver forwards the following commands to the PHY driver:
533+
534+
.. code-block:: console
535+
536+
# ethtool -s <dev>
537+
[ speed %d ]
538+
[ duplex half|full ]
539+
[ autoneg on|off ]
540+
[ wol p|u|m|b|a|g|s|d... ]
541+
[ sopass %x:%x:%x:%x:%x:%x ]
542+
543+
.. ifconfig:: CONFIG_part_variant in ('AM335X')
544+
545+
.. note::
546+
547+
Half Duplex is only supported for `pruss_emac0` interface. Configuring `pruss_emac1` in half duplex
548+
is not functional. This is a known issue that is being tracked separately.
549+
550+
Below is an example of forcing link speed to 100M/10M and duplexity to full:
551+
552+
.. code-block:: console
553+
554+
# ethtool -s eth0 duplex half speed 100
555+
[ 169.620032] prueth pruss-eth eth0: Link is Down
556+
[ 171.727166] prueth pruss-eth eth0: Link is Up - 100Mbps/Half - flow control off
557+
558+
# ethtool -s eth0 duplex half speed 10
559+
[ 266.901225] prueth pruss-eth eth0: Link is Down
560+
[ 269.018796] prueth pruss-eth eth0: Link is Up - 10Mbps/Half - flow control off
561+
526562
PTP Ordinary Clock
527563
==================
528564

0 commit comments

Comments
 (0)