From: Mark Rutland <mark.rutland@arm.com>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"rob.herring@calxeda.com" <rob.herring@calxeda.com>,
"swarren@wwwdotorg.org" <swarren@wwwdotorg.org>,
Pawel Moll <Pawel.Moll@arm.com>,
"ian.campbell@citrix.com" <ian.campbell@citrix.com>,
"kgene.kim@samsung.com" <kgene.kim@samsung.com>,
"patches@linaro.org" <patches@linaro.org>
Subject: Re: [PATCH v2 1/2] usb: samsung: Update Exynos EHCI/OHCI bindings documentation
Date: Fri, 6 Sep 2013 15:30:26 +0100 [thread overview]
Message-ID: <20130906143026.GV18206@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1377776006-22972-1-git-send-email-sachin.kamat@linaro.org>
Hi,
On Thu, Aug 29, 2013 at 12:33:25PM +0100, Sachin Kamat wrote:
> Updated the document as per the latest implementation.
> While at it also fixed some trivial typos.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
> Changes since v1:
> * Updated review comments from Stephen Warren regarding the wording
> and some styling.
> ---
> .../devicetree/bindings/usb/exynos-usb.txt | 29 ++++++++++----------
> 1 file changed, 15 insertions(+), 14 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/exynos-usb.txt b/Documentation/devicetree/bindings/usb/exynos-usb.txt
> index d967ba1..56468f7 100644
> --- a/Documentation/devicetree/bindings/usb/exynos-usb.txt
> +++ b/Documentation/devicetree/bindings/usb/exynos-usb.txt
> @@ -5,13 +5,14 @@ The device node has following properties.
>
> EHCI
> Required properties:
> - - compatible: should be "samsung,exynos4210-ehci" for USB 2.0
> - EHCI controller in host mode.
> + - compatible: should be one of the following for USB 2.0 EHCI controller:
> + (a) "samsung,exynos5440-ehci" for Exynos5440 SoC
> + (b) "samsung,exynos4210-ehci" for all other Exynos4 and 5 SoCs
> - reg: physical base address of the controller and length of memory mapped
> region.
> - - interrupts: interrupt number to the cpu.
> - - clocks: from common clock binding: handle to usb clock.
> - - clock-names: from common clock binding: Shall be "usbhost".
> + - interrupts: interrupt number to the CPU.
If this is going to be reorganised, can we fix the terminology?
Interrupts are defined by interrupt-specifiers:
- interrupts: a single interrupt-specifier for the sole interrupt
generated by the device.
> + - clocks: from common clock binding: handle to USB clock.
> + - clock-names: shall be "usbhost".
Similarly:
- clocks: phandle amd clock-specifier pair for the clocks listed in
clock-names.
- clock-names: shall contain "usbhost" for the USB clock.
>
> Optional properties:
> - samsung,vbus-gpio: if present, specifies the GPIO that
> @@ -23,7 +24,7 @@ Example:
> compatible = "samsung,exynos4210-ehci";
> reg = <0x12110000 0x100>;
> interrupts = <0 71 0>;
> - samsung,vbus-gpio = <&gpx2 6 1 3 3>;
> + samsung,vbus-gpio = <&gpx2 6 0>;
Why does the gpio in the example need to be changed in this way?
>
> clocks = <&clock 285>;
> clock-names = "usbhost";
> @@ -31,13 +32,14 @@ Example:
>
> OHCI
> Required properties:
> - - compatible: should be "samsung,exynos4210-ohci" for USB 2.0
> - OHCI companion controller in host mode.
> + - compatible: should be one of the following for USB 2.0 OHCI controller:
> + (a) "samsung,exynos5440-ohci" for Exynos5440 SoC
> + (b) "samsung,exynos4210-ohci" for all other Exynos4 and 5 SoCs
> - reg: physical base address of the controller and length of memory mapped
> region.
> - - interrupts: interrupt number to the cpu.
> - - clocks: from common clock binding: handle to usb clock.
> - - clock-names: from common clock binding: Shall be "usbhost".
> + - interrupts: interrupt number to the CPU.
> + - clocks: from common clock binding: handle to USB clock.
> + - clock-names: shall be "usbhost".
Similarly it would be nice to fix up the terminology here.
>
> Example:
> usb@12120000 {
> @@ -53,12 +55,11 @@ DWC3
> Required properties:
> - compatible: should be "samsung,exynos5250-dwusb3" for USB 3.0 DWC3
> controller.
> - - #address-cells, #size-cells : should be '1' if the device has sub-nodes
> - with 'reg' property.
> + - #address-cells, #size-cells: should be '1'.
> - ranges: allows valid 1:1 translation between child's address space and
> parent's address space
Huh? What if I'm on an LPAE system. I can't necessarily have both an
empty ranges property (for 1:1 translation) and #address-cells = <1>,
#size-cells = <1>. That's just broken.
Is the driver relying on this, or does it just require some valid
ranges, #address-cells, and #size-cells that the Linux infrastructure
can already handle?
As far as I an see, this should be something like:
- #address-cells: as required to describe any child nodes.
- #size-cells: as required to describe any child nodes.
- ranges: as required to map any child nodes to the parent address space.
> - clocks: Clock IDs array as required by the controller.
> - - clock-names: names of clocks correseponding to IDs in the clock property
> + - clock-names: shall be "usbdrd30".
It would be nice to fix up the terminology here too.
Thanks,
Mark.
prev parent reply other threads:[~2013-09-06 14:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-29 11:33 [PATCH v2 1/2] usb: samsung: Update Exynos EHCI/OHCI bindings documentation Sachin Kamat
2013-08-29 11:33 ` [PATCH v2 2/2] usb: phy: samsung: Update usbphy documentation Sachin Kamat
2013-09-06 14:30 ` Mark Rutland [this message]
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=20130906143026.GV18206@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=Pawel.Moll@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=ian.campbell@citrix.com \
--cc=kgene.kim@samsung.com \
--cc=patches@linaro.org \
--cc=rob.herring@calxeda.com \
--cc=sachin.kamat@linaro.org \
--cc=swarren@wwwdotorg.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).