Commit f68c9257 authored by Grygorii Strashko's avatar Grygorii Strashko Committed by David S. Miller

net: davinci_mdio: reuse for keystone2 arch

The similar MDIO HW blocks is used by keystone 2 SoCs as
in Davinci SoCs:
- one in Gigabit Ethernet (GbE) Switch Subsystem
  See http://www.ti.com/lit/ug/sprugv9d/sprugv9d.pdf
- one in 10 Gigabit Ethernet Subsystem
  See http://www.ti.com/lit/ug/spruhj5/spruhj5.pdf

Hence, reuse Davinci MDIO driver for Keystone 2 and
enable TI networking for Keystone 2 devices
Reviewed-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1373a773
TI SoC Davinci MDIO Controller Device Tree Bindings TI SoC Davinci/Keystone2 MDIO Controller Device Tree Bindings
--------------------------------------------------- ---------------------------------------------------
Required properties: Required properties:
- compatible : Should be "ti,davinci_mdio" - compatible : Should be "ti,davinci_mdio" or "ti,keystone_mdio"
- reg : physical base address and size of the davinci mdio - reg : physical base address and size of the davinci mdio
registers map registers map
- bus_freq : Mdio Bus frequency - bus_freq : Mdio Bus frequency
...@@ -19,7 +19,7 @@ file. ...@@ -19,7 +19,7 @@ file.
Examples: Examples:
mdio: davinci_mdio@4A101000 { mdio: davinci_mdio@4A101000 {
compatible = "ti,cpsw"; compatible = "ti,davinci_mdio";
reg = <0x4A101000 0x1000>; reg = <0x4A101000 0x1000>;
bus_freq = <1000000>; bus_freq = <1000000>;
}; };
...@@ -27,7 +27,7 @@ Examples: ...@@ -27,7 +27,7 @@ Examples:
(or) (or)
mdio: davinci_mdio@4A101000 { mdio: davinci_mdio@4A101000 {
compatible = "ti,cpsw"; compatible = "ti,davinci_mdio";
ti,hwmods = "davinci_mdio"; ti,hwmods = "davinci_mdio";
bus_freq = <1000000>; bus_freq = <1000000>;
}; };
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
config NET_VENDOR_TI config NET_VENDOR_TI
bool "Texas Instruments (TI) devices" bool "Texas Instruments (TI) devices"
default y default y
depends on PCI || EISA || AR7 || (ARM && (ARCH_DAVINCI || ARCH_OMAP3 || SOC_AM33XX)) depends on PCI || EISA || AR7 || (ARM && (ARCH_DAVINCI || ARCH_OMAP3 || SOC_AM33XX || ARCH_KEYSTONE))
---help--- ---help---
If you have a network (Ethernet) card belonging to this class, say Y If you have a network (Ethernet) card belonging to this class, say Y
and read the Ethernet-HOWTO, available from and read the Ethernet-HOWTO, available from
...@@ -32,7 +32,7 @@ config TI_DAVINCI_EMAC ...@@ -32,7 +32,7 @@ config TI_DAVINCI_EMAC
config TI_DAVINCI_MDIO config TI_DAVINCI_MDIO
tristate "TI DaVinci MDIO Support" tristate "TI DaVinci MDIO Support"
depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 || SOC_AM33XX ) depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 || SOC_AM33XX || ARCH_KEYSTONE )
select PHYLIB select PHYLIB
---help--- ---help---
This driver supports TI's DaVinci MDIO module. This driver supports TI's DaVinci MDIO module.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment