[PATCH net-next v5 00/11] PRU-ICSSM Ethernet Driver

Parvathi Pudi
2025-04-14T11:35:40Z

Hi,

The Programmable Real-Time Unit Industrial Communication Sub-system (PRU-ICSS)
is available on the TI SOCs in two flavors: Gigabit ICSS (ICSSG) and the older
Megabit ICSS (ICSSM).

Support for ICSSG Dual-EMAC mode has already been mainlined [1] and the
fundamental components/drivers such as PRUSS driver, Remoteproc driver,
PRU-ICSS INTC, and PRU-ICSS IEP drivers are already available in the mainline
Linux kernel. The current set of patch series builds on top of these components
and introduces changes to support the Dual-EMAC using ICSSM on the TI AM57xx,
AM437x and AM335x devices.

AM335x, AM437x and AM57xx devices may have either one or two PRU-ICSS instances
with two 32-bit RISC PRU cores. Each PRU core has (a) dedicated Ethernet interface
(MII, MDIO), timers, capture modules, and serial communication interfaces, and
(b) dedicated data and instruction RAM as well as shared RAM for inter PRU
communication within the PRU-ICSS.

These patches add support for the following features:
- RX and TX over PRU Ethernet ports in Dual-EMAC mode
- Full duplex with 100 Mbps link speed.
- VLAN Filtering
- Multicast Filtering
- Promiscuous mode
- Storm prevention
- Interrupt coalescing
- Linux PTP (ptp4l) Ordinary clock

Further, note that these are the first set of patches for a single instance of
PRU-ICSS Ethernet. Switch mode support for AM335x, AM437x and AM57x along with
support for a second instance of PRU-ICSS on AM57x will be posted subsequently.

The patches presented in this series have gone through the patch verification
tools and no warnings or errors are reported. Sample test logs obtained from AM33x,
AM43x and AM57x verifying the functionality on Linux next kernel are available here:

[Interface up Testing](https://gist.github.com/ParvathiPudi/416f61a1957d807d7b01d5c22746b7f6)

[Ping Testing](https://gist.github.com/ParvathiPudi/daab8d4610a0579ba2c40b005499fd7d)

[Iperf Testing](https://gist.github.com/ParvathiPudi/b96e954720ff80b4ab10625e75ff83da)

[1] https://lore.kernel.org/all/20230106121046.886863-1-danishanwar@ti.com/
[2] https://lore.kernel.org/all/20250108125937.10604-1-basharath@couthit.com/

This is the v5 of the patch series [v1]. This version of the patchset
addresses the comments made on [v4] of the series.

Changes from v4 to v5 :

*) Addressed Andrew Lunn and Keller, Jacob E comments on patch 5 of the series.
*) Rebased the series on latest net-next.

Changes from v3 to v4 :

*) Added support for AM33x and AM43x platforms.
*) Removed SOC patch [2] and its dependencies.
*) Addressed Jakub Kicinski, MD Danish Anwar and Nishanth Menon comments on cover
letter of the series.
*) Addressed Rob Herring comments on patch 1 of the series.
*) Addressed Ratheesh Kannoth comments on patch 2 of the series.
*) Addressed Maxime Chevallier comments on patch 4 of the series.
*) Rebased the series on latest net-next.

Changes from v2 to v3 :

*) Addressed Conor Dooley comments on patch 1 of the series.
*) Addressed Simon Horman comments on patch 2, 3, 4, 5 and 6 of the series.
*) Addressed Joe Damato comments on patch 4 of the series.
*) Rebased the series on latest net-next.

Changes from v1 to v2 :

*) Addressed Andrew Lunn, Rob Herring comments on patch 1 of the series.
*) Addressed Andrew Lunn comments on patch 2, 3, and 4 of the series.
*) Addressed Richard Cochran, Jason Xing comments on patch 6 of the series.
*) Rebased patchset on next-202401xx linux-next.

[v1] https://lore.kernel.org/all/20250109105600.41297-1-basharath@couthit.com/
[v2] https://lore.kernel.org/all/20250124122353.1457174-1-basharath@couthit.com/
[v3] https://lore.kernel.org/all/20250214054702.1073139-1-parvathi@couthit.com/
[v4] https://lore.kernel.org/all/20250407102528.1048589-1-parvathi@couthit.com/

Thanks and Regards,
Parvathi.

Murali Karicheri (1):
net: ti: prueth: Adds support for RX interrupt coalescing/pacing

Parvathi Pudi (1):
dt-bindings: net: ti: Adds DUAL-EMAC mode support on PRU-ICSS2 for
AM57xx, AM43xx and AM33xx SOCs

Roger Quadros (9):
net: ti: prueth: Adds ICSSM Ethernet driver
net: ti: prueth: Adds PRUETH HW and SW configuration
net: ti: prueth: Adds link detection, RX and TX support.
net: ti: prueth: Adds ethtool support for ICSSM PRUETH Driver
net: ti: prueth: Adds HW timestamping support for PTP using PRU-ICSS
IEP module
net: ti: prueth: Adds support for network filters for traffic control
supported by PRU-ICSS
net: ti: prueth: Adds power management support for PRU-ICSS
net: ti: prueth: Adds support for PRUETH on AM33x and AM43x SOCs
net: ti: prueth: Adds PTP OC Support for AM335x and AM437x

.../devicetree/bindings/net/ti,icss-iep.yaml | 10 +-
.../bindings/net/ti,icssm-prueth.yaml | 233 ++
.../bindings/net/ti,pruss-ecap.yaml | 32 +
.../devicetree/bindings/soc/ti/ti,pruss.yaml | 9 +
drivers/net/ethernet/ti/Kconfig | 24 +
drivers/net/ethernet/ti/Makefile | 5 +
drivers/net/ethernet/ti/icssg/icss_iep.c | 258 +-
drivers/net/ethernet/ti/icssg/icss_iep.h | 11 +
drivers/net/ethernet/ti/icssm/icssm_ethtool.c | 357 +++
drivers/net/ethernet/ti/icssm/icssm_prueth.c | 2483 +++++++++++++++++
drivers/net/ethernet/ti/icssm/icssm_prueth.h | 447 +++
.../net/ethernet/ti/icssm/icssm_prueth_dos.c | 225 ++
.../net/ethernet/ti/icssm/icssm_prueth_ecap.c | 312 +++
.../net/ethernet/ti/icssm/icssm_prueth_ecap.h | 47 +
.../net/ethernet/ti/icssm/icssm_prueth_ptp.h | 85 +
drivers/net/ethernet/ti/icssm/icssm_switch.h | 285 ++
.../ti/icssm/icssm_vlan_mcast_filter_mmap.h | 120 +
17 files changed, 4939 insertions(+), 4 deletions(-)
create mode 100644 Documentation/devicetree/bindings/net/ti,icssm-prueth.yaml
create mode 100644 Documentation/devicetree/bindings/net/ti,pruss-ecap.yaml
create mode 100644 drivers/net/ethernet/ti/icssm/icssm_ethtool.c
create mode 100644 drivers/net/ethernet/ti/icssm/icssm_prueth.c
create mode 100644 drivers/net/ethernet/ti/icssm/icssm_prueth.h
create mode 100644 drivers/net/ethernet/ti/icssm/icssm_prueth_dos.c
create mode 100644 drivers/net/ethernet/ti/icssm/icssm_prueth_ecap.c
create mode 100644 drivers/net/ethernet/ti/icssm/icssm_prueth_ecap.h
create mode 100644 drivers/net/ethernet/ti/icssm/icssm_prueth_ptp.h
create mode 100644 drivers/net/ethernet/ti/icssm/icssm_switch.h
create mode 100644 drivers/net/ethernet/ti/icssm/icssm_vlan_mcast_filter_mmap.h

--
2.34.1