blob: ecfdf756d10fb31b05dcf161ebe6ddfa4a5c31c1 [file] [log] [blame]
Mugunthan V N2eb32b02012-07-30 10:17:14 +00001TI SoC Ethernet Switch Controller Device Tree Bindings
2------------------------------------------------------
3
4Required properties:
5- compatible : Should be "ti,cpsw"
6- reg : physical base address and size of the cpsw
7 registers map
8- interrupts : property with a value describing the interrupt
9 number
10- interrupt-parent : The parent interrupt controller
11- cpdma_channels : Specifies number of channels in CPDMA
Mugunthan V N2eb32b02012-07-30 10:17:14 +000012- ale_entries : Specifies No of entries ALE can hold
Mugunthan V N2eb32b02012-07-30 10:17:14 +000013- bd_ram_size : Specifies internal descriptor RAM size
14- rx_descs : Specifies number of Rx descriptors
15- mac_control : Specifies Default MAC control register content
16 for the specific platform
17- slaves : Specifies number for slaves
Richard Cochran78ca0b22012-10-29 08:45:18 +000018- cpts_active_slave : Specifies the slave to use for time stamping
Richard Cochran00ab94e2012-10-29 08:45:19 +000019- cpts_clock_mult : Numerator to convert input clock ticks into nanoseconds
20- cpts_clock_shift : Denominator to convert input clock ticks into nanoseconds
Mugunthan V N2eb32b02012-07-30 10:17:14 +000021- phy_id : Specifies slave phy id
22- mac-address : Specifies slave MAC address
23
24Optional properties:
25- ti,hwmods : Must be "cpgmac0"
26- no_bd_ram : Must be 0 or 1
Mugunthan V Nd9ba8f92013-02-11 09:52:20 +000027- dual_emac : Specifies Switch to act as Dual EMAC
28- dual_emac_res_vlan : Specifies VID to be used to segregate the ports
Mugunthan V N2eb32b02012-07-30 10:17:14 +000029
30Note: "ti,hwmods" field is used to fetch the base address and irq
31resources from TI, omap hwmod data base during device registration.
32Future plan is to migrate hwmod data base contents into device tree
33blob so that, all the required data will be used from device tree dts
34file.
35
36Examples:
37
38 mac: ethernet@4A100000 {
39 compatible = "ti,cpsw";
40 reg = <0x4A100000 0x1000>;
41 interrupts = <55 0x4>;
42 interrupt-parent = <&intc>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000043 cpdma_channels = <8>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000044 ale_entries = <1024>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000045 bd_ram_size = <0x2000>;
46 no_bd_ram = <0>;
47 rx_descs = <64>;
48 mac_control = <0x20>;
49 slaves = <2>;
Richard Cochran78ca0b22012-10-29 08:45:18 +000050 cpts_active_slave = <0>;
Richard Cochran00ab94e2012-10-29 08:45:19 +000051 cpts_clock_mult = <0x80000000>;
52 cpts_clock_shift = <29>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000053 cpsw_emac0: slave@0 {
Richard Cochran549985e2012-11-14 09:07:56 +000054 phy_id = <&davinci_mdio>, <0>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000055 /* Filled in by U-Boot */
56 mac-address = [ 00 00 00 00 00 00 ];
Mugunthan V N2eb32b02012-07-30 10:17:14 +000057 };
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000058 cpsw_emac1: slave@1 {
Richard Cochran549985e2012-11-14 09:07:56 +000059 phy_id = <&davinci_mdio>, <1>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000060 /* Filled in by U-Boot */
61 mac-address = [ 00 00 00 00 00 00 ];
Mugunthan V N2eb32b02012-07-30 10:17:14 +000062 };
63 };
64
65(or)
Mugunthan V N2eb32b02012-07-30 10:17:14 +000066 mac: ethernet@4A100000 {
67 compatible = "ti,cpsw";
68 ti,hwmods = "cpgmac0";
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000069 cpdma_channels = <8>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000070 ale_entries = <1024>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000071 bd_ram_size = <0x2000>;
72 no_bd_ram = <0>;
73 rx_descs = <64>;
74 mac_control = <0x20>;
75 slaves = <2>;
Richard Cochran78ca0b22012-10-29 08:45:18 +000076 cpts_active_slave = <0>;
Richard Cochran00ab94e2012-10-29 08:45:19 +000077 cpts_clock_mult = <0x80000000>;
78 cpts_clock_shift = <29>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000079 cpsw_emac0: slave@0 {
Richard Cochran549985e2012-11-14 09:07:56 +000080 phy_id = <&davinci_mdio>, <0>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000081 /* Filled in by U-Boot */
82 mac-address = [ 00 00 00 00 00 00 ];
Mugunthan V N2eb32b02012-07-30 10:17:14 +000083 };
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000084 cpsw_emac1: slave@1 {
Richard Cochran549985e2012-11-14 09:07:56 +000085 phy_id = <&davinci_mdio>, <1>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000086 /* Filled in by U-Boot */
87 mac-address = [ 00 00 00 00 00 00 ];
Mugunthan V N2eb32b02012-07-30 10:17:14 +000088 };
Mugunthan V N2eb32b02012-07-30 10:17:14 +000089 };