mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: kishon@ti.com (Kishon Vijay Abraham I)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH 2/2] phy: amlogic: add USB3 PHY support for Meson GXL and GXM
Date: Tue, 7 Nov 2017 11:23:18 +0530	[thread overview]
Message-ID: <463fae8a-4b6d-1111-7ac2-1d3f1f31b9b1@ti.com> (raw)
In-Reply-To: <20170924195000.13276-3-martin.blumenstingl@googlemail.com>

Hi,

On Monday 25 September 2017 01:20 AM, Martin Blumenstingl wrote:
> This adds a new driver for the USB3 PHY found on Meson GXL and GXM SoCs
> (both SoCs are using the same USB PHY register layout).
> 
> Unfortunately there is no documentation for this PHY in the public S905X
> datasheet (published for example by Khadas). What we know so far about
> this PHY:
> - even though the Meson GXL and GXM SoCs do not expose an USB3 port (the
>   dwc3 controller only has USB2 ports enabled) we need to initialize the
>   USB3 PHY (specifically USB_R1_U3H_FLADJ_30MHZ_REG_MASK). Without this
>   initialization high-speed USB devices (especially USB hard disks and
>   thumb drives, slower devices like mice do not seem to be affected)
> - it is responsible for the OTG detection and for switching the first
>   USB2 PHY between host and peripheral (aka device) mode. an interrupt
>   can be used to detect changes between host and device mode.
> 
> The whole OTG detection logic is currently not implemented.

Is this an independent instance of the phy? The programming model looks similar
to phy-meson-gxl-usb2.c..

I'm just thinking if we should have only a phy-meson-gxl-usb.c and have both
usb2 and usb3 phy programming there?

Thanks
Kishon

  reply	other threads:[~2017-11-07  5:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-24 19:49 [PATCH 0/2] Meson GXL USB3 PHY and OTG detection driver Martin Blumenstingl
2017-09-24 19:49 ` [PATCH 1/2] dt-bindings: phy: Add support for the USB3 PHY on Amlogic Meson GXL SoCs Martin Blumenstingl
2017-10-05 20:02   ` Rob Herring
2017-09-24 19:50 ` [PATCH 2/2] phy: amlogic: add USB3 PHY support for Meson GXL and GXM Martin Blumenstingl
2017-11-07  5:53   ` Kishon Vijay Abraham I [this message]
2017-11-07 21:29     ` Martin Blumenstingl
2017-10-02 13:27 ` [PATCH 0/2] Meson GXL USB3 PHY and OTG detection driver Jerome Brunet
2017-10-19  9:57 ` Neil Armstrong
2017-11-05 21:35 ` Martin Blumenstingl

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=463fae8a-4b6d-1111-7ac2-1d3f1f31b9b1@ti.com \
    --to=kishon@ti.com \
    --cc=linus-amlogic@lists.infradead.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®