SDAA410 June 2026 AM2611 , AM2612 , AM2612-Q1 , AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1 , AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
Figure 3-2 CPSW SubSystem Block diagramCPSW or Common Platform Switch is a TI proprietary HW IP which enables the networking capabilities on the AM26x devices. CPSW subsystem provides IEEE 802.3 standard Ethernet gigabit speed packet communication for the device and can also be configured as an Ethernet switch. CPSW3G supports 10/100/1000 Ethernet ports with selectable MII, RMII, RGMII interfaces. The AM26x devices carry a 3-port Gigabit CPSW3G subsystem. The 3-port gigabit ethernet subsystem supports two external MAC ports and one internal CPPI port (communications port programming interface) or Host port.
Internal Port - One port (Port-0) is always reserved as the CPPI host port (CPDMA port) responsible for transfer of data between the CPU and the CPSW Peripheral core. Only the Host port can communicate with the CPDMA or R5F. Any incoming or outgoing data passes through the host port.
External Ports - The other (n-1) ports in CPSWNG are external MAC ports. E.g. CPSW3G has 2 MAC ports (port-1 and port-2) and one Host port (port-0). The external ports are MAC ports supporting Media Independent Interface (MII) like MII, Gigabit Media Independent Interface (GMII), Reduced Media Independent Interface (RMII), Reduced Gigabit Media Independent Interface (RGMII), Serial Gigabit Media Independent Interface (SGMII) and Quad Serial Gigabit Media Independent Interface (QSGMII).
The software configuration for the above sub-blocks is taken care of by the Syscfg auto-generated code and the Enet-LLD drivers. Based on the requirements of the application, these sub-blocks can be further configured in the application layer.
Apart from the above, the CPSW is also capable of features such as Packet classification, VLAN support, Policing/Rate limiting which are relevant to this app-note. Certain applications require the functionality of classifying ethernet packets before processing them. Different packet classes might have different processing logic or need a quicker turn-around time. CPSW can perform packet classification based on the following parameters:
VLAN Support
Virtual LAN (VLAN) support provides a mechanism for logical segmentation of network traffic within a daisy-chained topology. By assigning different VLAN IDs to traffic originating from or destined for specific nodes or functional blocks, developers can isolate control traffic from data streams, prioritize safety-critical messages, or enable multi-tenant communication over the same physical network. This is particularly useful in industrial automation or modular robotic systems, where different subsystems need to securely share a common Ethernet backbone without interfering with each other's data domains. VLAN tagging also helps in managing broadcast domains and reducing unnecessary traffic propagation across the chain, improving determinism and bandwidth utilization. The CPSW and Enet-LLD driver supports ethernet packets having VLAN Tags and even hardware classification based on VLAN Tags
CPSW also supports InterVLAN and IntraVLAN routing in Hardware. This means that based on the VLAN tag in the ethernet packets, CPSW can decide which VLAN the packet needs to be forwarded to.
Rate Limiting
Policers and rate limiting mechanisms enable fine control over Ethernet traffic, particularly important in daisy-chained topologies. Policers monitor the rate of incoming or outgoing packets and enforce defined bandwidth limits by dropping or remarking packets that exceed configured thresholds. This ensures that no single device or application overwhelms the shared network medium, thereby preserving fairness and preventing congestion across the chain. Rate limiting can be applied at the ingress or egress of each MAC port to cap the bandwidth used by specific traffic classes or flows. In daisy-chained deployments, this helps maintain predictable latency and ensures that low-priority or non-critical traffic does not starve time-sensitive control or synchronization packets. When used in conjunction with QoS and VLAN tagging, policers and rate limiting provide a robust traffic management framework that enhances the reliability and determinism of multi-node industrial Ethernet systems.
Each AM261x node is configured at boot to initialize its CPSW, set up port VLAN IDs, populate the ALE table with MAC-to-port mappings, and run the network application logic based on its chain position.
Read more about CPSW here.