Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Grygorii Strashko and committed by
David S. Miller
f68c9257 1373a773

+6 -6
+4 -4
Documentation/devicetree/bindings/net/davinci-mdio.txt
··· 1 - TI SoC Davinci MDIO Controller Device Tree Bindings 1 + TI SoC Davinci/Keystone2 MDIO Controller Device Tree Bindings 2 2 --------------------------------------------------- 3 3 4 4 Required properties: 5 - - compatible : Should be "ti,davinci_mdio" 5 + - compatible : Should be "ti,davinci_mdio" or "ti,keystone_mdio" 6 6 - reg : physical base address and size of the davinci mdio 7 7 registers map 8 8 - bus_freq : Mdio Bus frequency ··· 19 19 Examples: 20 20 21 21 mdio: davinci_mdio@4A101000 { 22 - compatible = "ti,cpsw"; 22 + compatible = "ti,davinci_mdio"; 23 23 reg = <0x4A101000 0x1000>; 24 24 bus_freq = <1000000>; 25 25 }; ··· 27 27 (or) 28 28 29 29 mdio: davinci_mdio@4A101000 { 30 - compatible = "ti,cpsw"; 30 + compatible = "ti,davinci_mdio"; 31 31 ti,hwmods = "davinci_mdio"; 32 32 bus_freq = <1000000>; 33 33 };
+2 -2
drivers/net/ethernet/ti/Kconfig
··· 5 5 config NET_VENDOR_TI 6 6 bool "Texas Instruments (TI) devices" 7 7 default y 8 - depends on PCI || EISA || AR7 || (ARM && (ARCH_DAVINCI || ARCH_OMAP3 || SOC_AM33XX)) 8 + depends on PCI || EISA || AR7 || (ARM && (ARCH_DAVINCI || ARCH_OMAP3 || SOC_AM33XX || ARCH_KEYSTONE)) 9 9 ---help--- 10 10 If you have a network (Ethernet) card belonging to this class, say Y 11 11 and read the Ethernet-HOWTO, available from ··· 32 32 33 33 config TI_DAVINCI_MDIO 34 34 tristate "TI DaVinci MDIO Support" 35 - depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 || SOC_AM33XX ) 35 + depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 || SOC_AM33XX || ARCH_KEYSTONE ) 36 36 select PHYLIB 37 37 ---help--- 38 38 This driver supports TI's DaVinci MDIO module.