Mugunthan V N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 1 | TI SoC Ethernet Switch Controller Device Tree Bindings |
| 2 | ------------------------------------------------------ |
| 3 | |
| 4 | Required 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 N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 12 | - ale_entries : Specifies No of entries ALE can hold |
Mugunthan V N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 13 | - 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 |
Mugunthan V N | e86ac13 | 2013-03-11 23:16:35 +0000 | [diff] [blame] | 18 | - active_slave : Specifies the slave to use for time stamping, |
| 19 | ethtool and SIOCGMIIPHY |
Richard Cochran | 00ab94e | 2012-10-29 08:45:19 +0000 | [diff] [blame] | 20 | - cpts_clock_mult : Numerator to convert input clock ticks into nanoseconds |
| 21 | - cpts_clock_shift : Denominator to convert input clock ticks into nanoseconds |
Mugunthan V N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 22 | |
| 23 | Optional properties: |
| 24 | - ti,hwmods : Must be "cpgmac0" |
| 25 | - no_bd_ram : Must be 0 or 1 |
Mugunthan V N | d9ba8f9 | 2013-02-11 09:52:20 +0000 | [diff] [blame] | 26 | - dual_emac : Specifies Switch to act as Dual EMAC |
Markus Pargmann | 0ba517b | 2014-09-29 08:53:17 +0200 | [diff] [blame] | 27 | - syscon : Phandle to the system control device node, which is |
| 28 | the control module device of the am33x |
Mugunthan V N | 470d147 | 2013-03-11 23:16:34 +0000 | [diff] [blame] | 29 | |
| 30 | Slave Properties: |
| 31 | Required properties: |
| 32 | - phy_id : Specifies slave phy id |
Sergei Shtylyov | e8f08ee | 2014-02-18 02:41:59 +0300 | [diff] [blame] | 33 | - phy-mode : See ethernet.txt file in the same directory |
Mugunthan V N | 470d147 | 2013-03-11 23:16:34 +0000 | [diff] [blame] | 34 | |
| 35 | Optional properties: |
Mugunthan V N | d9ba8f9 | 2013-02-11 09:52:20 +0000 | [diff] [blame] | 36 | - dual_emac_res_vlan : Specifies VID to be used to segregate the ports |
Markus Pargmann | e4a9839 | 2014-09-29 08:53:13 +0200 | [diff] [blame] | 37 | - mac-address : See ethernet.txt file in the same directory |
Mugunthan V N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 38 | |
| 39 | Note: "ti,hwmods" field is used to fetch the base address and irq |
| 40 | resources from TI, omap hwmod data base during device registration. |
| 41 | Future plan is to migrate hwmod data base contents into device tree |
| 42 | blob so that, all the required data will be used from device tree dts |
| 43 | file. |
| 44 | |
| 45 | Examples: |
| 46 | |
| 47 | mac: ethernet@4A100000 { |
| 48 | compatible = "ti,cpsw"; |
| 49 | reg = <0x4A100000 0x1000>; |
| 50 | interrupts = <55 0x4>; |
| 51 | interrupt-parent = <&intc>; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 52 | cpdma_channels = <8>; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 53 | ale_entries = <1024>; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 54 | bd_ram_size = <0x2000>; |
| 55 | no_bd_ram = <0>; |
| 56 | rx_descs = <64>; |
| 57 | mac_control = <0x20>; |
| 58 | slaves = <2>; |
Mugunthan V N | e86ac13 | 2013-03-11 23:16:35 +0000 | [diff] [blame] | 59 | active_slave = <0>; |
Richard Cochran | 00ab94e | 2012-10-29 08:45:19 +0000 | [diff] [blame] | 60 | cpts_clock_mult = <0x80000000>; |
| 61 | cpts_clock_shift = <29>; |
Markus Pargmann | 0ba517b | 2014-09-29 08:53:17 +0200 | [diff] [blame] | 62 | syscon = <&cm>; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 63 | cpsw_emac0: slave@0 { |
Richard Cochran | 549985e | 2012-11-14 09:07:56 +0000 | [diff] [blame] | 64 | phy_id = <&davinci_mdio>, <0>; |
Mugunthan V N | c5ceea7 | 2013-06-03 20:10:10 +0000 | [diff] [blame] | 65 | phy-mode = "rgmii-txid"; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 66 | /* Filled in by U-Boot */ |
| 67 | mac-address = [ 00 00 00 00 00 00 ]; |
Mugunthan V N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 68 | }; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 69 | cpsw_emac1: slave@1 { |
Richard Cochran | 549985e | 2012-11-14 09:07:56 +0000 | [diff] [blame] | 70 | phy_id = <&davinci_mdio>, <1>; |
Mugunthan V N | c5ceea7 | 2013-06-03 20:10:10 +0000 | [diff] [blame] | 71 | phy-mode = "rgmii-txid"; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 72 | /* Filled in by U-Boot */ |
| 73 | mac-address = [ 00 00 00 00 00 00 ]; |
Mugunthan V N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 74 | }; |
| 75 | }; |
| 76 | |
| 77 | (or) |
Mugunthan V N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 78 | mac: ethernet@4A100000 { |
| 79 | compatible = "ti,cpsw"; |
| 80 | ti,hwmods = "cpgmac0"; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 81 | cpdma_channels = <8>; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 82 | ale_entries = <1024>; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 83 | bd_ram_size = <0x2000>; |
| 84 | no_bd_ram = <0>; |
| 85 | rx_descs = <64>; |
| 86 | mac_control = <0x20>; |
| 87 | slaves = <2>; |
Mugunthan V N | e86ac13 | 2013-03-11 23:16:35 +0000 | [diff] [blame] | 88 | active_slave = <0>; |
Richard Cochran | 00ab94e | 2012-10-29 08:45:19 +0000 | [diff] [blame] | 89 | cpts_clock_mult = <0x80000000>; |
| 90 | cpts_clock_shift = <29>; |
Markus Pargmann | 0ba517b | 2014-09-29 08:53:17 +0200 | [diff] [blame] | 91 | syscon = <&cm>; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 92 | cpsw_emac0: slave@0 { |
Richard Cochran | 549985e | 2012-11-14 09:07:56 +0000 | [diff] [blame] | 93 | phy_id = <&davinci_mdio>, <0>; |
Mugunthan V N | c5ceea7 | 2013-06-03 20:10:10 +0000 | [diff] [blame] | 94 | phy-mode = "rgmii-txid"; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 95 | /* Filled in by U-Boot */ |
| 96 | mac-address = [ 00 00 00 00 00 00 ]; |
Mugunthan V N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 97 | }; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 98 | cpsw_emac1: slave@1 { |
Richard Cochran | 549985e | 2012-11-14 09:07:56 +0000 | [diff] [blame] | 99 | phy_id = <&davinci_mdio>, <1>; |
Mugunthan V N | c5ceea7 | 2013-06-03 20:10:10 +0000 | [diff] [blame] | 100 | phy-mode = "rgmii-txid"; |
Mugunthan V N | e07b94f | 2012-08-06 05:05:58 +0000 | [diff] [blame] | 101 | /* Filled in by U-Boot */ |
| 102 | mac-address = [ 00 00 00 00 00 00 ]; |
Mugunthan V N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 103 | }; |
Mugunthan V N | 2eb32b0 | 2012-07-30 10:17:14 +0000 | [diff] [blame] | 104 | }; |