From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Florian Fainelli <f.fainelli@gmail.com>, netdev@vger.kernel.org
Subject: PHY hardware reset
Date: Sun, 6 Mar 2016 01:09:40 +0300 [thread overview]
Message-ID: <56DB5924.3020206@cogentembedded.com> (raw)
Hello.
I have a need to de-assert the active-low PHY hardware reset signal
(mapped to a GPIO) before the MDIO bus scansince it's left asserted by the
bootloader (U-Boot). I have a device tree probed MAX driver (ravb) and I'm
somewhat at a loss about where and how to do this. The existing example
(Freescale FEC) has DT props controlling the PHY reset GPIO in the MAC device
node but it doesn't seem correct at all since this signal has nothing to do
with the MAC, only with PHY! I therefore would like this "phy-reset-gpios"
property to be defined under the PHY node but this way I'll have to add the
handling of this prop to the phylib (it would be too late if I did that in a a
PHY driver method since that). I'm also seeing the mii_bus::reset() method and
it seems a good place but I'm not sure if my PHY's reset signal can be treated
as the reset signal for the whole bus; if it would, the DT prop should be
placed under the MAC node anyway...
Florian (and everybody), what's your thoughts on this matter?
MBR, Sergei
next reply other threads:[~2016-03-05 22:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-05 22:09 Sergei Shtylyov [this message]
2016-03-06 0:22 ` PHY hardware reset Andrew Lunn
2016-03-07 0:54 ` Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56DB5924.3020206@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=f.fainelli@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).