From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Biju Das <biju.das@bp.renesas.com>, Rob Herring <robh+dt@kernel.org>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
Mark Rutland <mark.rutland@arm.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Felipe Balbi <balbi@kernel.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Simon Horman <horms@verge.net.au>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Chris Paterson <Chris.Paterson2@renesas.com>,
Fabrizio Castro <fabrizio.castro@bp.renesas.com>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>
Subject: [v2,2/7] dt-bindings: usb: renesas_usb3: add usb-role-switch property
Date: Fri, 15 Mar 2019 12:51:46 +0200 [thread overview]
Message-ID: <20190315105146.GI7752@kuha.fi.intel.com> (raw)
Thanks,
On Fri, Mar 15, 2019 at 09:08:19AM +0000, Biju Das wrote:
> > Subject: Re: [PATCH v2 2/7] dt-bindings: usb: renesas_usb3: add usb-role-
> > > > > a/Documentation/devicetree/bindings/usb/renesas_usb3.txt
> > > > > b/Documentation/devicetree/bindings/usb/renesas_usb3.txt
> > > > > index 35039e7..eecaf4c 100644
> > > > > --- a/Documentation/devicetree/bindings/usb/renesas_usb3.txt
> > > > > +++ b/Documentation/devicetree/bindings/usb/renesas_usb3.txt
> > > > > @@ -22,6 +22,7 @@ Required properties:
> > > > > Optional properties:
> > > > > - phys: phandle + phy specifier pair
> > > > > - phy-names: must be "usb"
> > > > > + - usb-role-switch: use USB role switch to support dual-role
> > > > > + switch
> > > >
> > > > I don't think we can add such a property. At least, we have to add
> > "renesas,"
> > > > prefix.
> > >
> > > usb_role_switch_get api uses "usb-role-switch" property to get role
> > switch linked with the device.
> > >
> > > HD3SS3220 port controller driver gets role switch handle linked with the
> > device using usb_role_switch_get api.
> > > That is the reason, I have added " usb-role-switch" property here.
> > >
> > > Do you have any other suggestion to get usb role switch handle?
> >
> > We can still change the API. Can we use the compatible for this?
>
> Do you mean usb_role_switch_get API needs to handle compatible "usb-x-connector" wherex= a,b ,c ?
> Then it uses the graphs api to get the device linked with it and return the usb role switch handle.
> In that case, no need to add generic "usb-role-switch" property here.
>
> Can you please confirm my understanding is correct?
No, I meant the compatible property would have the value
"usb-role-switch". Your compatible would probable look something
like this:
compatible = "renesas,r8a774c0-usb3-peri",
"usb-role-switch";
So the idea would be that the device supplying USB role switch
functionality, in your case the USB controller, would need to have the
compatible property containing "usb-role-switch".
I'm really not an expert in DT, so I don't know if that is acceptable.
Rob can you comment on this?
thanks,
next prev reply other threads:[~2019-03-15 10:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1552552775-51667-1-git-send-email-biju.das@bp.renesas.com>
2019-03-14 8:39 ` [v2,2/7] dt-bindings: usb: renesas_usb3: add usb-role-switch property Biju Das
2019-03-14 9:16 ` Yoshihiro Shimoda
2019-03-14 10:14 ` Biju Das
2019-03-14 10:53 ` Heikki Krogerus
2019-03-15 9:08 ` Biju Das
2019-03-15 10:51 ` Heikki Krogerus [this message]
2019-03-28 15:33 ` Rob Herring
2019-03-28 17:48 ` Heikki Krogerus
2019-03-29 13:57 ` Rob Herring
2019-04-11 9:04 ` Biju Das
2019-04-11 9:04 ` [PATCH v2 2/7] " Biju Das
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=20190315105146.GI7752@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=Chris.Paterson2@renesas.com \
--cc=balbi@kernel.org \
--cc=biju.das@bp.renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrizio.castro@bp.renesas.com \
--cc=geert+renesas@glider.be \
--cc=gregkh@linuxfoundation.org \
--cc=horms@verge.net.au \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=yoshihiro.shimoda.uh@renesas.com \
/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).