1 TI SoC Ethernet Switch Controller Device Tree Bindings
2 ------------------------------------------------------
5 - compatible : Should be one of the below:-
6 "ti,cpsw" for backward compatible
7 "ti,am335x-cpsw" for AM335x controllers
8 "ti,am4372-cpsw" for AM437x controllers
9 "ti,dra7-cpsw" for DRA7x controllers
10 - reg : physical base address and size of the cpsw
12 - interrupts : property with a value describing the interrupt
14 - interrupt-parent : The parent interrupt controller
15 - cpdma_channels : Specifies number of channels in CPDMA
16 - ale_entries : Specifies No of entries ALE can hold
17 - bd_ram_size : Specifies internal descriptor RAM size
18 - rx_descs : Specifies number of Rx descriptors
19 - mac_control : Specifies Default MAC control register content
20 for the specific platform
21 - slaves : Specifies number for slaves
22 - active_slave : Specifies the slave to use for time stamping,
23 ethtool and SIOCGMIIPHY
24 - cpts_clock_mult : Numerator to convert input clock ticks into nanoseconds
25 - cpts_clock_shift : Denominator to convert input clock ticks into nanoseconds
28 - ti,hwmods : Must be "cpgmac0"
29 - no_bd_ram : Must be 0 or 1
30 - dual_emac : Specifies Switch to act as Dual EMAC
31 - syscon : Phandle to the system control device node, which is
32 the control module device of the am33x
33 - mode-gpios : Should be added if one/multiple gpio lines are
34 required to be driven so that cpsw data lines
35 can be connected to the phy via selective mux.
36 For example in dra72x-evm, pcf gpio has to be
37 driven low so that cpsw slave 0 and phy data
38 lines are connected via mux.
43 - phy_id : Specifies slave phy id
44 - phy-mode : See ethernet.txt file in the same directory
47 - dual_emac_res_vlan : Specifies VID to be used to segregate the ports
48 - mac-address : See ethernet.txt file in the same directory
49 - phy-handle : See ethernet.txt file in the same directory
51 Note: "ti,hwmods" field is used to fetch the base address and irq
52 resources from TI, omap hwmod data base during device registration.
53 Future plan is to migrate hwmod data base contents into device tree
54 blob so that, all the required data will be used from device tree dts
59 mac: ethernet@4A100000 {
60 compatible = "ti,cpsw";
61 reg = <0x4A100000 0x1000>;
62 interrupts = <55 0x4>;
63 interrupt-parent = <&intc>;
66 bd_ram_size = <0x2000>;
72 cpts_clock_mult = <0x80000000>;
73 cpts_clock_shift = <29>;
76 phy_id = <&davinci_mdio>, <0>;
77 phy-mode = "rgmii-txid";
78 /* Filled in by U-Boot */
79 mac-address = [ 00 00 00 00 00 00 ];
82 phy_id = <&davinci_mdio>, <1>;
83 phy-mode = "rgmii-txid";
84 /* Filled in by U-Boot */
85 mac-address = [ 00 00 00 00 00 00 ];
90 mac: ethernet@4A100000 {
91 compatible = "ti,cpsw";
92 ti,hwmods = "cpgmac0";
95 bd_ram_size = <0x2000>;
101 cpts_clock_mult = <0x80000000>;
102 cpts_clock_shift = <29>;
104 cpsw_emac0: slave@0 {
105 phy_id = <&davinci_mdio>, <0>;
106 phy-mode = "rgmii-txid";
107 /* Filled in by U-Boot */
108 mac-address = [ 00 00 00 00 00 00 ];
110 cpsw_emac1: slave@1 {
111 phy_id = <&davinci_mdio>, <1>;
112 phy-mode = "rgmii-txid";
113 /* Filled in by U-Boot */
114 mac-address = [ 00 00 00 00 00 00 ];