Skip to content

Commit a95df15

Browse files
MeghanaMalladiTIjeevantelukula
authored andcommitted
fix(PRU-ICSS): Fix MII support documentation
Current documentation doesn't explicitly talk about single and dual EMAC support for a given MII configuration and its limitations. Add these details to avoid confusion in terms of MII configuration. Signed-off-by: Meghana Malladi <[email protected]>
1 parent 2282eab commit a95df15

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

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

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ Features supported
5757
- Different MII modes for Real-Time Ethernet ports (MII_G_RT1 and MII_G_RT2) on a single PRU_ICSSG instance. For example, MII_G_RT1=MII and MII_G_RT2=RGMII.
5858
- XDP with Zero-copy mode
5959

60-
.. rubric:: **Limitations**
61-
62-
Both MIIx ports have to be enabled in DT even if one of them is not used (no Ethernet PHY wired) for proper PRU_ICSSG Ethernet driver work.
63-
Use fixed-link for unused port as workaround.
64-
6560
Driver Configuration
6661
####################
6762

@@ -826,24 +821,32 @@ MII Support
826821
setenv bootcmd 'run findfdt; run envboot; run init_${boot}; run get_kern_${boot}; run get_fdt_${boot};
827822
setenv name_overlays ti/k3-am642-evm-icssg1-dualemac-mii.dtbo; run get_overlay_${boot}; run run_kern'
828823

824+
.. rubric:: **Limitations**
825+
826+
Both MIIx ports have to be enabled in DT even if one of them is not used (no Ethernet PHY wired) for proper PRU_ICSSG Ethernet driver to work.
827+
Use fixed-link for unused port as workaround.
828+
829829

830830
CPSW / PRU Ethernet Selection
831831
#############################
832832

833833
.. ifconfig:: CONFIG_part_variant in ('AM64X')
834834

835-
On AM64x EVM (`TMDS64EVM <https://www.ti.com/tool/TMDS64EVM>`__ & `TMDS64GPEVM <https://www.ti.com/tool/TMDS64GPEVM>`__), one Ethernet port is connected to CPSW, one Ethernet port is connected to PRU Ethernet, and one Ethernet port can be muxed to either CPSW or PRU Ethernet depending on the device tree settings.
836-
The Ethernet port is muxed to CPSW by default in the AM64x EVM device tree file k3-am642-evm.dts. In order to mux the Ethernet port to PRU Ethernet, override the mux settings by applying one of these two overlay files in uboot:
837-
k3-am642-evm-icssg1-dualemac.dtbo (both PRU Ethernet PHYs set to RGMII)
838-
k3-am642-evm-icssg1-dualemac-mii.dtbo (both PRU Ethernet PHYs set to MII)
835+
Driver supports two Ethernet port modes, "Single EMAC" and "Dual EMAC" based on how many ports will be operated for a given ICSSG instance, for both MII and RGMII mode.
836+
837+
- Single EMAC: 1 Ethernet port on a single PRU_ICSSG instance
838+
- Dual EMAC: 2 Ethernet ports on a single PRU_ICSSG instance
839+
840+
On AM64x EVM (`TMDS64EVM <https://www.ti.com/tool/TMDS64EVM>`__ & `TMDS64GPEVM <https://www.ti.com/tool/TMDS64GPEVM>`__), one Ethernet port is connected to CPSW, one Ethernet port is connected to PRU Ethernet, and one Ethernet port can be muxed to either CPSW or PRU Ethernet depending on the device tree settings.
841+
The Ethernet port is muxed to CPSW by default in the AM64x EVM device tree :file:`k3-am642-evm.dts`, disabling this port for ICSSG (Single EMAC).
839842

840-
To use RGMII interface the k3-am642-evm-icssg1-dualemac.dtbo overlay file has to be applied using the following command in uboot.
843+
To use RGMII interface in Dual EMAC mode the :file:`k3-am642-evm-icssg1-dualemac.dtbo` overlay file has to be applied using the following command in u-boot.
841844

842845
::
843846

844847
setenv bootcmd 'run findfdt; run envboot;run init_${boot}; run get_kern_${boot}; run get_fdt_${boot};setenv name_overlays ti/k3-am642-evm-icssg1-dualemac.dtbo; run get_overlay_${boot}; run run_kern'
845848

846-
To use MII interface the k3-am642-evm-icssg1-dualemac-mii.dtbo overlay file has to be applied using the following command in uboot.
849+
To use MII interface in Dual EMAC mode the :file:`k3-am642-evm-icssg1-dualemac-mii.dtbo` overlay file has to be applied using the following command in u-boot.
847850

848851
::
849852

0 commit comments

Comments
 (0)