devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
To: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org>
Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>,
	Tero Kristo <t-kristo-l0cyMroinI0@public.gmane.org>,
	Lokesh Vutla <lokeshvutla-l0cyMroinI0@public.gmane.org>,
	"Anna, Suman" <s-anna-l0cyMroinI0@public.gmane.org>,
	"Andrew F. Davis" <afd-l0cyMroinI0@public.gmane.org>,
	Mugunthan V N <mugunthanvnm-l0cyMroinI0@public.gmane.org>,
	"Nori, Sekhar" <nsekhar-l0cyMroinI0@public.gmane.org>,
	linux-omap <linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: AM335x ICE board Linux support
Date: Fri, 29 Apr 2016 08:31:59 -0700	[thread overview]
Message-ID: <20160429153158.GJ5995@atomide.com> (raw)
In-Reply-To: <572332B2.6010203-l0cyMroinI0@public.gmane.org>

* Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> [160429 03:10]:
> On 26/04/16 18:10, Tony Lindgren wrote:
> > I guess for now if no runtime detection is possible in the kernel.
> 
> There are 2 ways to detect them mode
> 1) Enabe GPIO rising edge detect interrupt and reset the Ethernet PHY
> 2) read a PHY register over MDIO bus
> 
> I'm not very sure where this can be done in the kernel.

We already have some PHY detection over MDIO detection in place,
so that's probably the most generic solution.

> Even if there is some place to do the detection, how do we go about reconfiguring the
> device tree?

You may not need to, you can have several named pin states:

pinctrl-names = "default", "phy-foo", "phy-bar";
pinctrl-0 = <&cpsw_default>;
pinctrl-1 = <&cpsw_phy_foo>;
pinctrl-2 = <&cpsw_phy_bar>;
...

Then have the common pins in cpsw_default, and manually enable
the other pinctrl groups based on the detection. We already
have that going on in am335x-bone-common.dtsi with the &mac
entry for cpsw.

But maybe you have other detection issues too beyond setting
the pins?

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2016-04-29 15:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-25 11:59 AM335x ICE board Linux support Roger Quadros
     [not found] ` <571E069A.20700-l0cyMroinI0@public.gmane.org>
2016-04-26  8:40   ` Roger Quadros
     [not found]     ` <571F2982.2080702-l0cyMroinI0@public.gmane.org>
2016-04-26 15:10       ` Tony Lindgren
     [not found]         ` <20160426151046.GQ5995-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-04-29 10:08           ` Roger Quadros
     [not found]             ` <572332B2.6010203-l0cyMroinI0@public.gmane.org>
2016-04-29 15:31               ` Tony Lindgren [this message]
     [not found]                 ` <20160429153158.GJ5995-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2016-05-02  8:23                   ` Roger Quadros
     [not found]                     ` <57270E8E.2040704-l0cyMroinI0@public.gmane.org>
2016-05-05 17:06                       ` Tony Lindgren

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=20160429153158.GJ5995@atomide.com \
    --to=tony-4v6ys6ai5vpbdgjk7y7tuq@public.gmane.org \
    --cc=afd-l0cyMroinI0@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=lokeshvutla-l0cyMroinI0@public.gmane.org \
    --cc=mugunthanvnm-l0cyMroinI0@public.gmane.org \
    --cc=nm-l0cyMroinI0@public.gmane.org \
    --cc=nsekhar-l0cyMroinI0@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=rogerq-l0cyMroinI0@public.gmane.org \
    --cc=s-anna-l0cyMroinI0@public.gmane.org \
    --cc=t-kristo-l0cyMroinI0@public.gmane.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).