blob: 6ddd0286a9b7514fe00a5f150e05859da0f25e36 [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
27
28Note: "ti,hwmods" field is used to fetch the base address and irq
29resources from TI, omap hwmod data base during device registration.
30Future plan is to migrate hwmod data base contents into device tree
31blob so that, all the required data will be used from device tree dts
32file.
33
34Examples:
35
36 mac: ethernet@4A100000 {
37 compatible = "ti,cpsw";
38 reg = <0x4A100000 0x1000>;
39 interrupts = <55 0x4>;
40 interrupt-parent = <&intc>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000041 cpdma_channels = <8>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000042 ale_entries = <1024>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000043 bd_ram_size = <0x2000>;
44 no_bd_ram = <0>;
45 rx_descs = <64>;
46 mac_control = <0x20>;
47 slaves = <2>;
Richard Cochran78ca0b22012-10-29 08:45:18 +000048 cpts_active_slave = <0>;
Richard Cochran00ab94e2012-10-29 08:45:19 +000049 cpts_clock_mult = <0x80000000>;
50 cpts_clock_shift = <29>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000051 cpsw_emac0: slave@0 {
Richard Cochran549985e2012-11-14 09:07:56 +000052 phy_id = <&davinci_mdio>, <0>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000053 /* Filled in by U-Boot */
54 mac-address = [ 00 00 00 00 00 00 ];
Mugunthan V N2eb32b02012-07-30 10:17:14 +000055 };
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000056 cpsw_emac1: slave@1 {
Richard Cochran549985e2012-11-14 09:07:56 +000057 phy_id = <&davinci_mdio>, <1>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000058 /* Filled in by U-Boot */
59 mac-address = [ 00 00 00 00 00 00 ];
Mugunthan V N2eb32b02012-07-30 10:17:14 +000060 };
61 };
62
63(or)
Mugunthan V N2eb32b02012-07-30 10:17:14 +000064 mac: ethernet@4A100000 {
65 compatible = "ti,cpsw";
66 ti,hwmods = "cpgmac0";
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000067 cpdma_channels = <8>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000068 ale_entries = <1024>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000069 bd_ram_size = <0x2000>;
70 no_bd_ram = <0>;
71 rx_descs = <64>;
72 mac_control = <0x20>;
73 slaves = <2>;
Richard Cochran78ca0b22012-10-29 08:45:18 +000074 cpts_active_slave = <0>;
Richard Cochran00ab94e2012-10-29 08:45:19 +000075 cpts_clock_mult = <0x80000000>;
76 cpts_clock_shift = <29>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000077 cpsw_emac0: slave@0 {
Richard Cochran549985e2012-11-14 09:07:56 +000078 phy_id = <&davinci_mdio>, <0>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000079 /* Filled in by U-Boot */
80 mac-address = [ 00 00 00 00 00 00 ];
Mugunthan V N2eb32b02012-07-30 10:17:14 +000081 };
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000082 cpsw_emac1: slave@1 {
Richard Cochran549985e2012-11-14 09:07:56 +000083 phy_id = <&davinci_mdio>, <1>;
Mugunthan V Ne07b94f2012-08-06 05:05:58 +000084 /* Filled in by U-Boot */
85 mac-address = [ 00 00 00 00 00 00 ];
Mugunthan V N2eb32b02012-07-30 10:17:14 +000086 };
Mugunthan V N2eb32b02012-07-30 10:17:14 +000087 };