xref: /linux/Documentation/devicetree/bindings/net/cpsw.txt (revision 549985ee9c723fea8fd7759b5046fb8249896d50)
12eb32b0aSMugunthan V NTI SoC Ethernet Switch Controller Device Tree Bindings
22eb32b0aSMugunthan V N------------------------------------------------------
32eb32b0aSMugunthan V N
42eb32b0aSMugunthan V NRequired properties:
52eb32b0aSMugunthan V N- compatible		: Should be "ti,cpsw"
62eb32b0aSMugunthan V N- reg			: physical base address and size of the cpsw
72eb32b0aSMugunthan V N			  registers map
82eb32b0aSMugunthan V N- interrupts		: property with a value describing the interrupt
92eb32b0aSMugunthan V N			  number
102eb32b0aSMugunthan V N- interrupt-parent	: The parent interrupt controller
112eb32b0aSMugunthan V N- cpdma_channels 	: Specifies number of channels in CPDMA
122eb32b0aSMugunthan V N- ale_entries		: Specifies No of entries ALE can hold
132eb32b0aSMugunthan V N- bd_ram_size		: Specifies internal descriptor RAM size
142eb32b0aSMugunthan V N- rx_descs		: Specifies number of Rx descriptors
152eb32b0aSMugunthan V N- mac_control		: Specifies Default MAC control register content
162eb32b0aSMugunthan V N			  for the specific platform
172eb32b0aSMugunthan V N- slaves		: Specifies number for slaves
1878ca0b28SRichard Cochran- cpts_active_slave	: Specifies the slave to use for time stamping
1900ab94eeSRichard Cochran- cpts_clock_mult	: Numerator to convert input clock ticks into nanoseconds
2000ab94eeSRichard Cochran- cpts_clock_shift	: Denominator to convert input clock ticks into nanoseconds
212eb32b0aSMugunthan V N- phy_id		: Specifies slave phy id
222eb32b0aSMugunthan V N- mac-address		: Specifies slave MAC address
232eb32b0aSMugunthan V N
242eb32b0aSMugunthan V NOptional properties:
252eb32b0aSMugunthan V N- ti,hwmods		: Must be "cpgmac0"
262eb32b0aSMugunthan V N- no_bd_ram		: Must be 0 or 1
272eb32b0aSMugunthan V N
282eb32b0aSMugunthan V NNote: "ti,hwmods" field is used to fetch the base address and irq
292eb32b0aSMugunthan V Nresources from TI, omap hwmod data base during device registration.
302eb32b0aSMugunthan V NFuture plan is to migrate hwmod data base contents into device tree
312eb32b0aSMugunthan V Nblob so that, all the required data will be used from device tree dts
322eb32b0aSMugunthan V Nfile.
332eb32b0aSMugunthan V N
342eb32b0aSMugunthan V NExamples:
352eb32b0aSMugunthan V N
362eb32b0aSMugunthan V N	mac: ethernet@4A100000 {
372eb32b0aSMugunthan V N		compatible = "ti,cpsw";
382eb32b0aSMugunthan V N		reg = <0x4A100000 0x1000>;
392eb32b0aSMugunthan V N		interrupts = <55 0x4>;
402eb32b0aSMugunthan V N		interrupt-parent = <&intc>;
41e07b94f1SMugunthan V N		cpdma_channels = <8>;
42e07b94f1SMugunthan V N		ale_entries = <1024>;
43e07b94f1SMugunthan V N		bd_ram_size = <0x2000>;
44e07b94f1SMugunthan V N		no_bd_ram = <0>;
45e07b94f1SMugunthan V N		rx_descs = <64>;
46e07b94f1SMugunthan V N		mac_control = <0x20>;
47e07b94f1SMugunthan V N		slaves = <2>;
4878ca0b28SRichard Cochran		cpts_active_slave = <0>;
4900ab94eeSRichard Cochran		cpts_clock_mult = <0x80000000>;
5000ab94eeSRichard Cochran		cpts_clock_shift = <29>;
51e07b94f1SMugunthan V N		cpsw_emac0: slave@0 {
52*549985eeSRichard Cochran			phy_id = <&davinci_mdio>, <0>;
53e07b94f1SMugunthan V N			/* Filled in by U-Boot */
54e07b94f1SMugunthan V N			mac-address = [ 00 00 00 00 00 00 ];
552eb32b0aSMugunthan V N		};
56e07b94f1SMugunthan V N		cpsw_emac1: slave@1 {
57*549985eeSRichard Cochran			phy_id = <&davinci_mdio>, <1>;
58e07b94f1SMugunthan V N			/* Filled in by U-Boot */
59e07b94f1SMugunthan V N			mac-address = [ 00 00 00 00 00 00 ];
602eb32b0aSMugunthan V N		};
612eb32b0aSMugunthan V N	};
622eb32b0aSMugunthan V N
632eb32b0aSMugunthan V N(or)
642eb32b0aSMugunthan V N	mac: ethernet@4A100000 {
652eb32b0aSMugunthan V N		compatible = "ti,cpsw";
662eb32b0aSMugunthan V N		ti,hwmods = "cpgmac0";
67e07b94f1SMugunthan V N		cpdma_channels = <8>;
68e07b94f1SMugunthan V N		ale_entries = <1024>;
69e07b94f1SMugunthan V N		bd_ram_size = <0x2000>;
70e07b94f1SMugunthan V N		no_bd_ram = <0>;
71e07b94f1SMugunthan V N		rx_descs = <64>;
72e07b94f1SMugunthan V N		mac_control = <0x20>;
73e07b94f1SMugunthan V N		slaves = <2>;
7478ca0b28SRichard Cochran		cpts_active_slave = <0>;
7500ab94eeSRichard Cochran		cpts_clock_mult = <0x80000000>;
7600ab94eeSRichard Cochran		cpts_clock_shift = <29>;
77e07b94f1SMugunthan V N		cpsw_emac0: slave@0 {
78*549985eeSRichard Cochran			phy_id = <&davinci_mdio>, <0>;
79e07b94f1SMugunthan V N			/* Filled in by U-Boot */
80e07b94f1SMugunthan V N			mac-address = [ 00 00 00 00 00 00 ];
812eb32b0aSMugunthan V N		};
82e07b94f1SMugunthan V N		cpsw_emac1: slave@1 {
83*549985eeSRichard Cochran			phy_id = <&davinci_mdio>, <1>;
84e07b94f1SMugunthan V N			/* Filled in by U-Boot */
85e07b94f1SMugunthan V N			mac-address = [ 00 00 00 00 00 00 ];
862eb32b0aSMugunthan V N		};
872eb32b0aSMugunthan V N	};
88