Grygorii Strashko | f68c925 | 2014-07-16 15:13:02 +0300 | [diff] [blame] | 1 | TI SoC Davinci/Keystone2 MDIO Controller Device Tree Bindings |
Mugunthan V N | ec03e6a | 2012-08-06 05:05:57 +0000 | [diff] [blame] | 2 | --------------------------------------------------- |
| 3 | |
| 4 | Required properties: |
Grygorii Strashko | beb1a04 | 2016-06-24 21:23:52 +0300 | [diff] [blame] | 5 | - compatible : Should be "ti,davinci_mdio" |
| 6 | and "ti,keystone_mdio" for Keystone 2 SoCs |
Grygorii Strashko | 22899ec | 2016-06-24 21:23:53 +0300 | [diff] [blame] | 7 | and "ti,cpsw-mdio" for am335x, am472x, am57xx/dra7, dm814x SoCs |
Grygorii Strashko | beb1a04 | 2016-06-24 21:23:52 +0300 | [diff] [blame] | 8 | and "ti,am4372-mdio" for am472x SoC |
Mugunthan V N | ec03e6a | 2012-08-06 05:05:57 +0000 | [diff] [blame] | 9 | - reg : physical base address and size of the davinci mdio |
| 10 | registers map |
| 11 | - bus_freq : Mdio Bus frequency |
| 12 | |
| 13 | Optional properties: |
| 14 | - ti,hwmods : Must be "davinci_mdio" |
| 15 | |
| 16 | Note: "ti,hwmods" field is used to fetch the base address and irq |
| 17 | resources from TI, omap hwmod data base during device registration. |
| 18 | Future plan is to migrate hwmod data base contents into device tree |
| 19 | blob so that, all the required data will be used from device tree dts |
| 20 | file. |
| 21 | |
| 22 | Examples: |
| 23 | |
| 24 | mdio: davinci_mdio@4A101000 { |
Grygorii Strashko | f68c925 | 2014-07-16 15:13:02 +0300 | [diff] [blame] | 25 | compatible = "ti,davinci_mdio"; |
Mugunthan V N | ec03e6a | 2012-08-06 05:05:57 +0000 | [diff] [blame] | 26 | reg = <0x4A101000 0x1000>; |
| 27 | bus_freq = <1000000>; |
| 28 | }; |
| 29 | |
| 30 | (or) |
| 31 | |
| 32 | mdio: davinci_mdio@4A101000 { |
Grygorii Strashko | f68c925 | 2014-07-16 15:13:02 +0300 | [diff] [blame] | 33 | compatible = "ti,davinci_mdio"; |
Mugunthan V N | ec03e6a | 2012-08-06 05:05:57 +0000 | [diff] [blame] | 34 | ti,hwmods = "davinci_mdio"; |
| 35 | bus_freq = <1000000>; |
| 36 | }; |