dt:net:stmmac: Add dt specific phy reset callback support.
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Thu, 4 Jul 2013 09:35:48 +0000 (10:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jul 2013 21:34:17 +0000 (14:34 -0700)
commit0e0764715d8116484d808f5b3985ca043080788e
tree9f486c6604183917901e5385e0391943d0999e1b
parent25c83b5c2e82560406d5265f42cd147f1eb441d0
dt:net:stmmac: Add dt specific phy reset callback support.

This patch adds phy reset callback support for stmmac driver via device
trees. It adds three new properties to gmac device tree bindings to
define the reset signal via gpio.

With this patch users can conveniently pass reset gpio number with pre,
pulse and post delay in micro secs via DTs.

 active low:
_________  ____________
<pre-delay> |<pulse-delay> |<post-delay>
  | |
  |_______________|

 active high:
   ________________
<pre-delay> |<pulse-delay> |<post-delay>
| |
________| |___________

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/stmmac.txt
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
include/linux/stmmac.h