From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Magnus Damm <magnus.damm@gmail.com>
Cc: Felipe Balbi <balbi@ti.com>,
Linux-USB <linux-usb@vger.kernel.org>,
robh+dt@kernel.org, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
Grant Likely <grant.likely@linaro.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Greg KH <gregkh@linuxfoundation.org>,
SH-Linux <linux-sh@vger.kernel.org>,
Valentine Barshak <valentine.barshak@cogentembedded.com>,
rob@landley.net, linux-doc@vger.kernel.org
Subject: Re: [PATCH v2] phy-rcar-gen2-usb: add device tree support
Date: Fri, 07 Mar 2014 14:27:40 +0000 [thread overview]
Message-ID: <5319D75C.5020701@cogentembedded.com> (raw)
In-Reply-To: <CANqRtoRTtsF64jZ-n_VbmzkRehUoBWQLEd5jfAL86wyLrvAUPQ@mail.gmail.com>
Hello.
On 07-03-2014 9:46, Magnus Damm wrote:
>> Add support of the device tree probing for the Renesas R-Car generation 2 SoCs
>> documenting the device tree binding as necessary.
>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>> ---
>> This patch is against the 'next' branch of Felipe Balbi's 'usb.git' repo.
>> Changes in version 2:
>> - restored devm_clk_get() call and the error handling logic in the probe()
>> method, removed clk_put() call in the remove() method.
>> Documentation/devicetree/bindings/usb/rcar-gen2-phy.txt | 29 +++++++++++
>> drivers/usb/phy/phy-rcar-gen2-usb.c | 42 ++++++++++++++--
>> 2 files changed, 68 insertions(+), 3 deletions(-)
>> Index: usb/Documentation/devicetree/bindings/usb/rcar-gen2-phy.txt
>> =================================>> --- /dev/null
>> +++ usb/Documentation/devicetree/bindings/usb/rcar-gen2-phy.txt
>> @@ -0,0 +1,29 @@
>> +* Renesas R-Car generation 2 USB PHY
>> +
>> +This file provides information on what the device node for the R-Car generation
>> +2 USB PHY contains.
>> +
>> +Required properties:
>> +- compatible: "renesas,usb-phy-r8a7790" if the device is a part of R8A7790 SoC.
>> + "renesas,usb-phy-r8a7791" if the device is a part of R8A7791 SoC.
>> +- reg: offset and length of the register block.
>> +- clocks: clock phandle and specifier pair.
>> +- clock-names: string, clock input name, must be "usbhs".
>> +
>> +Optional properties:
>> +- renesas,channel0-pci: boolean, specify when USB channel 0 should be connected
>> + to PCI EHCI/OHCI; otherwise, it will be connected to the
>> + USBHS controller.
>> +- renesas,channel2-pci: boolean, specify when USB channel 2 should be connected
>> + to PCI EHCI/OHCI; otherwise, it will be connected to the
>> + USBSS controller (xHCI).
> Thanks for your efforts here, but this DT binding looks like a mix of
> software configuration and hardware description.
I disagree. I have already explained to Mark Rutland how selecting a
particular controller for a particular USB port should depend on the kind of
the USB connector used, i.e. the board hardware.
>> +Example (Lager board):
>> +
>> + usb-phy@e6590100 {
>> + compatible = "renesas,usb-phy-r8a7790";
>> + reg = <0 0xe6590100 0 0x100>;
>> + clocks = <&mstp7_clks R8A7790_CLK_HSUSB>;
>> + clock-names = "usbhs";
>> + renesas,channel2-pci;
>> + };
> As an example, instead of relying on "renesas,channel0-pci" or
> "renesas,channel2-pci" to specify which hard coded software
> configuration you want please rework this to expose 3 separate
> channels and use DT to point each host controller to the right
> channel.
So you want to expose the channels as "virtual devices"? Or what do you
want? Also, it seems almost impossible to represent some USB controllers in DT
-- such as USBHS in particular.
> That will give us the opportunity to perform any kind of run time
> selection and not be limited by software policy set by DT.
Sorry, but I don't see how using DT could help with run-time selection.
Could you please explain?
> So this is a NAK on my side. I expect better.
Thanks for your long awaited feedback.
> Thanks,
> / magnus
WBR, Sergei
WARNING: multiple messages have this Message-ID (diff)
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Magnus Damm <magnus.damm@gmail.com>
Cc: Felipe Balbi <balbi@ti.com>,
Linux-USB <linux-usb@vger.kernel.org>,
robh+dt@kernel.org, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
Grant Likely <grant.likely@linaro.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Greg KH <gregkh@linuxfoundation.org>,
SH-Linux <linux-sh@vger.kernel.org>,
Valentine Barshak <valentine.barshak@cogentembedded.com>,
rob@landley.net, linux-doc@vger.kernel.org
Subject: Re: [PATCH v2] phy-rcar-gen2-usb: add device tree support
Date: Fri, 07 Mar 2014 18:27:40 +0400 [thread overview]
Message-ID: <5319D75C.5020701@cogentembedded.com> (raw)
In-Reply-To: <CANqRtoRTtsF64jZ-n_VbmzkRehUoBWQLEd5jfAL86wyLrvAUPQ@mail.gmail.com>
Hello.
On 07-03-2014 9:46, Magnus Damm wrote:
>> Add support of the device tree probing for the Renesas R-Car generation 2 SoCs
>> documenting the device tree binding as necessary.
>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>> ---
>> This patch is against the 'next' branch of Felipe Balbi's 'usb.git' repo.
>> Changes in version 2:
>> - restored devm_clk_get() call and the error handling logic in the probe()
>> method, removed clk_put() call in the remove() method.
>> Documentation/devicetree/bindings/usb/rcar-gen2-phy.txt | 29 +++++++++++
>> drivers/usb/phy/phy-rcar-gen2-usb.c | 42 ++++++++++++++--
>> 2 files changed, 68 insertions(+), 3 deletions(-)
>> Index: usb/Documentation/devicetree/bindings/usb/rcar-gen2-phy.txt
>> ===================================================================
>> --- /dev/null
>> +++ usb/Documentation/devicetree/bindings/usb/rcar-gen2-phy.txt
>> @@ -0,0 +1,29 @@
>> +* Renesas R-Car generation 2 USB PHY
>> +
>> +This file provides information on what the device node for the R-Car generation
>> +2 USB PHY contains.
>> +
>> +Required properties:
>> +- compatible: "renesas,usb-phy-r8a7790" if the device is a part of R8A7790 SoC.
>> + "renesas,usb-phy-r8a7791" if the device is a part of R8A7791 SoC.
>> +- reg: offset and length of the register block.
>> +- clocks: clock phandle and specifier pair.
>> +- clock-names: string, clock input name, must be "usbhs".
>> +
>> +Optional properties:
>> +- renesas,channel0-pci: boolean, specify when USB channel 0 should be connected
>> + to PCI EHCI/OHCI; otherwise, it will be connected to the
>> + USBHS controller.
>> +- renesas,channel2-pci: boolean, specify when USB channel 2 should be connected
>> + to PCI EHCI/OHCI; otherwise, it will be connected to the
>> + USBSS controller (xHCI).
> Thanks for your efforts here, but this DT binding looks like a mix of
> software configuration and hardware description.
I disagree. I have already explained to Mark Rutland how selecting a
particular controller for a particular USB port should depend on the kind of
the USB connector used, i.e. the board hardware.
>> +Example (Lager board):
>> +
>> + usb-phy@e6590100 {
>> + compatible = "renesas,usb-phy-r8a7790";
>> + reg = <0 0xe6590100 0 0x100>;
>> + clocks = <&mstp7_clks R8A7790_CLK_HSUSB>;
>> + clock-names = "usbhs";
>> + renesas,channel2-pci;
>> + };
> As an example, instead of relying on "renesas,channel0-pci" or
> "renesas,channel2-pci" to specify which hard coded software
> configuration you want please rework this to expose 3 separate
> channels and use DT to point each host controller to the right
> channel.
So you want to expose the channels as "virtual devices"? Or what do you
want? Also, it seems almost impossible to represent some USB controllers in DT
-- such as USBHS in particular.
> That will give us the opportunity to perform any kind of run time
> selection and not be limited by software policy set by DT.
Sorry, but I don't see how using DT could help with run-time selection.
Could you please explain?
> So this is a NAK on my side. I expect better.
Thanks for your long awaited feedback.
> Thanks,
> / magnus
WBR, Sergei
next prev parent reply other threads:[~2014-03-07 14:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-01 0:08 [PATCH v2] phy-rcar-gen2-usb: add device tree support Sergei Shtylyov
2014-03-01 1:07 ` Sergei Shtylyov
2014-03-03 16:44 ` Felipe Balbi
2014-03-03 16:44 ` Felipe Balbi
2014-03-03 16:50 ` Sergei Shtylyov
2014-03-03 17:50 ` Sergei Shtylyov
2014-03-03 16:54 ` Felipe Balbi
2014-03-03 16:54 ` Felipe Balbi
2014-03-06 18:39 ` Sergei Shtylyov
2014-03-06 19:39 ` Sergei Shtylyov
2014-03-06 18:52 ` Ben Dooks
2014-03-07 5:46 ` Magnus Damm
2014-03-07 5:46 ` Magnus Damm
2014-03-07 14:27 ` Sergei Shtylyov [this message]
2014-03-07 14:27 ` Sergei Shtylyov
2014-03-07 22:57 ` Sergei Shtylyov
2014-03-07 23:57 ` Sergei Shtylyov
2014-03-10 11:00 ` Magnus Damm
2014-03-10 11:00 ` Magnus Damm
2014-03-11 22:32 ` Sergei Shtylyov
2014-03-11 23:32 ` Sergei Shtylyov
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=5319D75C.5020701@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=balbi@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=grant.likely@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-doc@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=rob@landley.net \
--cc=robh+dt@kernel.org \
--cc=valentine.barshak@cogentembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.