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