From: Felipe Balbi <balbi@ti.com>
To: Julius Werner <jwerner@chromium.org>
Cc: <linux-kernel@vger.kernel.org>, Felipe Balbi <balbi@ti.com>,
<linux-usb@vger.kernel.org>,
<devicetree-discuss@lists.ozlabs.org>,
<linux-samsung-soc@vger.kernel.org>,
Vivek Gautam <gautam.vivek@samsung.com>,
Praveen Paneri <p.paneri@samsung.com>,
Kukjin Kim <kgene.kim@samsung.com>,
Tushar Behera <tushar.behera@linaro.org>,
Doug Anderson <dianders@chromium.org>,
Olof Johansson <olofj@chromium.org>,
Vincent Palatin <vpalatin@chromium.org>
Subject: Re: [PATCH] usb: phy: samsung-usb2: Toggle HSIC GPIO from device tree
Date: Wed, 10 Jul 2013 08:25:34 +0300 [thread overview]
Message-ID: <20130710052534.GB15674@arwen.pp.htv.fi> (raw)
In-Reply-To: <1373416455-30358-1-git-send-email-jwerner@chromium.org>
[-- Attachment #1: Type: text/plain, Size: 2467 bytes --]
On Tue, Jul 09, 2013 at 05:34:15PM -0700, Julius Werner wrote:
> This patch adds support for a new 'samsung,hsic-reset-gpio' in the
> device tree, which will be interpreted as an active-low reset pin during
> PHY initialization when it exists. Useful for intergrated HSIC devices
> like an SMSC 3503 hub. It is necessary to add this directly to the PHY
> initialization to get the timing right, since resetting a HSIC device
> after it has already been enumerated can confuse the USB stack.
>
> Also fixes PHY semaphore code to make sure we always go through the
> setup at least once, even if it was already turned on (e.g. by
> firmware), and changes a spinlock to a mutex to allow sleeping in the
> critical section.
>
> Change-Id: Ieecac52c27daa7a17a7ed3b2863ddba3aeb8d16f
> Signed-off-by: Julius Werner <jwerner@chromium.org>
> ---
> .../devicetree/bindings/usb/samsung-usbphy.txt | 10 ++++++
> drivers/usb/phy/phy-samsung-usb.c | 17 ++++++++++
> drivers/usb/phy/phy-samsung-usb.h | 7 ++--
> drivers/usb/phy/phy-samsung-usb2.c | 38 ++++++++++------------
> drivers/usb/phy/phy-samsung-usb3.c | 12 +++----
> 5 files changed, 55 insertions(+), 29 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/samsung-usbphy.txt b/Documentation/devicetree/bindings/usb/samsung-usbphy.txt
> index 33fd354..82e2e16 100644
> --- a/Documentation/devicetree/bindings/usb/samsung-usbphy.txt
> +++ b/Documentation/devicetree/bindings/usb/samsung-usbphy.txt
> @@ -31,6 +31,12 @@ Optional properties:
> - ranges: allows valid translation between child's address space and parent's
> address space.
>
> +- samsung,hsic-reset-gpio: an active low GPIO pin that resets a device
> + connected to the HSIC port. Useful for things like
> + an on-board SMSC3503 hub.
> +- pinctrl-0: Pin control group containing the HSIC reset GPIO pin.
> +- pinctrl-names: Should contain only one value - "default".
> +
> - The child node 'usbphy-sys' to the node 'usbphy' is for the system controller
> interface for usb-phy. It should provide the following information required by
> usb-phy controller to control phy.
> @@ -56,6 +62,10 @@ Example:
> clocks = <&clock 2>, <&clock 305>;
> clock-names = "xusbxti", "otg";
>
> + samsung,hsic-reset-gpio = <&gpx2 4 1>;
looks like this should be modeled as a fixed-regulator ?
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-07-10 5:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-10 0:34 Julius Werner
2013-07-10 5:25 ` Felipe Balbi [this message]
2013-07-10 17:42 ` Julius Werner
2013-07-11 0:01 ` Fabio Estevam
2013-07-12 6:57 ` Felipe Balbi
2013-08-13 8:41 ` Tushar Behera
2013-08-27 18:44 ` Felipe Balbi
2013-08-28 3:55 ` Tushar Behera
2013-08-28 18:24 ` Julius Werner
2013-07-10 23:52 ` Jingoo Han
2013-07-11 21:46 ` Julius Werner
2013-07-12 0:48 ` Jingoo Han
2013-07-12 10:34 ` Tomasz Figa
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=20130710052534.GB15674@arwen.pp.htv.fi \
--to=balbi@ti.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=dianders@chromium.org \
--cc=gautam.vivek@samsung.com \
--cc=jwerner@chromium.org \
--cc=kgene.kim@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=olofj@chromium.org \
--cc=p.paneri@samsung.com \
--cc=tushar.behera@linaro.org \
--cc=vpalatin@chromium.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
all inboxes | Powered by JetHome®