]> www.infradead.org Git - users/willy/linux.git/commit
phy: ti: introduce phy-gmii-sel driver
authorGrygorii Strashko <grygorii.strashko@ti.com>
Mon, 26 Nov 2018 00:15:23 +0000 (18:15 -0600)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 4 Dec 2018 09:25:26 +0000 (14:55 +0530)
commit1811851f4e736e73f274238f0558d179514bcdc0
tree4be9fc37667bd20d6bbde64573ca40c3f5361161
parentf311a35e4a6500a1eb309b196863a18e64ca2178
phy: ti: introduce phy-gmii-sel driver

TI am335x/am437x/dra7(am5)/dm814x CPSW3G Ethernet Subsystem supports two
10/100/1000 Ethernet ports with selectable G/MII, RMII, and RGMII
interfaces. The interface mode is selected by configuring the MII mode
selection register(s) (GMII_SEL) in the System Control Module chapter
(SCM). GMII_SEL register(s) and bit fields placement in SCM are different
between SoCs while fields meaning is the same.

Historically CPSW external Port's interface mode selection configuration
was introduced using custom API and driver cpsw-phy-sel.c. This leads to
unnecessary driver, DT binding and custom API support effort.

This patch introduces CPSW Port's PHY Interface Mode selection Driver
(phy-gmii-sel) which implements standard Linux PHY interface and used
as a replacement for TI's specific driver cpsw-phy-sel.c and corresponding
custom API.

Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/ti/Kconfig
drivers/phy/ti/Makefile
drivers/phy/ti/phy-gmii-sel.c [new file with mode: 0644]