Skip to content

Commit d9ba8f9

Browse files
mugunthanvnmdavem330
authored andcommitted
driver: net: ethernet: cpsw: dual emac interface implementation
The CPSW switch can act as Dual EMAC by segregating the switch ports using VLAN and port VLAN as per the TRM description in 14.3.2.10.2 Dual Mac Mode Following CPSW components will be common for both the interfaces. * Interrupt source is common for both eth interfaces * Interrupt pacing is common for both interfaces * Hardware statistics is common for all the ports * CPDMA is common for both eth interface * CPTS is common for both the interface and it should not be enabled on both the interface as timestamping information doesn't contain port information. Constrains * Reserved VID of One port should not be used in other interface which will enable switching functionality * Same VID must not be used in both the interface which will enable switching functionality Signed-off-by: Mugunthan V N <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9232b16 commit d9ba8f9

File tree

3 files changed

+288
-52
lines changed
  • Documentation/devicetree/bindings/net
  • drivers/net/ethernet/ti
  • include/linux/platform_data

3 files changed

+288
-52
lines changed

Documentation/devicetree/bindings/net/cpsw.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Required properties:
2424
Optional properties:
2525
- ti,hwmods : Must be "cpgmac0"
2626
- no_bd_ram : Must be 0 or 1
27+
- dual_emac : Specifies Switch to act as Dual EMAC
28+
- dual_emac_res_vlan : Specifies VID to be used to segregate the ports
2729

2830
Note: "ti,hwmods" field is used to fetch the base address and irq
2931
resources from TI, omap hwmod data base during device registration.

0 commit comments

Comments
 (0)