From: martin.blumenstingl@googlemail.com (Martin Blumenstingl)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH v3 0/3] usb/phy: Add Amlogic Meson8b and GXBB USB support
Date: Sat, 1 Oct 2016 14:18:57 +0200 [thread overview]
Message-ID: <20161001121900.1168-1-martin.blumenstingl@googlemail.com> (raw)
In-Reply-To: <20160904213152.25837-1-martin.blumenstingl@googlemail.com>
This series adds initial support for the DWC2 USB controllers and Meson
specific USB PHYs found in Meson8b and GXBB SoCs, which means:
- new DWC2 bindings and platform specific core configuration
- a PHY driver supporting the USB2 PHY on Meson8b and GXBB SoCs
The first DWC2 controller is usually configured in OTG mode, whereas
the second DWC2 controller is usually configured in host(-only) mode.
Unfortunately no (public) datasheet is available and the reference PHY
driver does not contain comments or speaking register name definitions.
The nice people from BayLibre have already requested the datasheets
(currently we can for example only guess that there is a mux clock
inside the PHY, but we don't know it's parents).
With this series both DWC2 controllers are configure in host mode,
because the reference driver polls some of the PHY registers in OTG
mode and then re-configures the dwc2 driver instance accordingly (if
anyone is interested, this is the relevant piece of code: [0]). This
seems good enough for the beginning though.
Changes since v2:
- integrated a patch from Axel Lin to add the USB_SUPPORT dependency
- renamed driver (Kconfig, source and docs) to phy-meson8b-usb2 as the
driver is only compatible with the USB2 PHY found on Meson8b and GXBB
(newer SoC versions are using a different USB PHY and I could not
find anything that the Meson8b / GXBB and GXL / GXM USB PHYs have in
common)
- switch from device_reset_optional to reset_control_reset and move
this call to phy_meson8b_usb2_power_on. This will allow us to simply
switch to devm_reset_control_get_optional_shared in the future, once
the reset control supports reset pulses for shared reset lines
- updated documentation example (use dash instead of unserscore in node
name and use a better reg example)
- dropped the following patches as they were accepted upstream (the
only patch which remains from the original series is the actual PHY
driver):
- "usb: dwc2: add support for Meson8b and GXBB SoCs" (f94310ac076e in
arm-soc.git/next/late)
- "Documentation: dt-bindings: Add documentation for the Meson USB2
PHYs" (c940d7658de0 in arm-soc.git/next/late)
- "ARM64: meson-gxbb: add USB Nodes" (566603e5e6b6 in
arm-soc.git/next/late)
- "ARM64: meson-gxbb-p20x: Enable USB Nodes" (8735053d7968 in
arm-soc.git/next/late)
- "ARM64: meson-gxbb-vega-s95: Enable USB Nodes" (c763eb82a01d in
arm-soc.git/next/late)
Changes since v1:
- the patch "clk: gxbb: expose USB clocks" was not sent again as it was
already applied by Kevin Hilman (thanks!)
- dropped (unnecessary) USB PHY bus from .dts
- remove underscores from PHY node names in .dts
- rename the dwc2 nodes in the .dts to usb (as per convention)
- remove unused struct reset_control from phy_meson_usb2_priv
- removed refcounting "reset" workaround and only specify the reset for
the first PHY in the .dts (Jerome has reported that his boards don't
need the explicit reset, while my board needs it). In addition (to
make this work) the driver now treats the reset as optional
- use the RESET_USB_OTG definition (from
<dt-bindings/reset/amlogic,meson-gxbb-reset.h>) instead of a magic
number in the .dts
[0] https://github.com/150balbes/Amlogic_s905-kernel/blob/master/drivers/amlogic/usb/dwc_otg/310/dwc_otg_driver.c#L642
Martin Blumenstingl (3):
Documentation: dt-bindings: update the meson-usb2-phy example
Documentation: dt-bindings: rename meson-usb2-phy to meson8b-usb2-phy
phy: meson: add USB2 PHY support for Meson8b and GXBB
.../{meson-usb2-phy.txt => meson8b-usb2-phy.txt} | 6 +-
drivers/phy/Kconfig | 13 +
drivers/phy/Makefile | 1 +
drivers/phy/phy-meson8b-usb2.c | 284 +++++++++++++++++++++
4 files changed, 301 insertions(+), 3 deletions(-)
rename Documentation/devicetree/bindings/phy/{meson-usb2-phy.txt => meson8b-usb2-phy.txt} (87%)
create mode 100644 drivers/phy/phy-meson8b-usb2.c
--
2.10.0
next prev parent reply other threads:[~2016-10-01 12:18 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-04 21:31 [PATCH 0/7] " Martin Blumenstingl
2016-09-04 21:31 ` [PATCH 1/7] clk: gxbb: expose USB clocks Martin Blumenstingl
2016-09-07 0:33 ` Stephen Boyd
2016-09-07 21:32 ` Martin Blumenstingl
2016-09-07 22:14 ` Stephen Boyd
2016-09-08 2:24 ` Kevin Hilman
2016-09-07 21:28 ` Stephen Boyd
2016-09-08 19:24 ` Kevin Hilman
2016-09-04 21:31 ` [PATCH 2/7] usb: dwc2: add support for Meson8b and GXBB SoCs Martin Blumenstingl
2016-09-07 21:04 ` John Youn
2016-09-08 13:00 ` Neil Armstrong
2016-09-04 21:31 ` [PATCH 3/7] Documentation: dt-bindings: Add documentation for the Meson USB2 PHYs Martin Blumenstingl
2016-09-04 21:31 ` [PATCH 4/7] phy: meson: add USB2 PHY support for Meson8b and GXBB Martin Blumenstingl
2016-09-08 19:35 ` Kevin Hilman
2016-09-08 19:40 ` Ben Dooks
2016-09-08 19:52 ` Martin Blumenstingl
2016-09-08 20:20 ` Ben Dooks
2016-09-08 20:42 ` Kevin Hilman
2016-09-08 20:53 ` Ben Dooks
2016-09-08 21:48 ` Martin Blumenstingl
2016-09-09 15:33 ` Kevin Hilman
2016-09-09 16:14 ` Martin Blumenstingl
2016-09-09 17:04 ` Kevin Hilman
2016-09-09 17:21 ` Ben Dooks
2016-09-09 20:37 ` Martin Blumenstingl
2016-09-16 8:19 ` Kishon Vijay Abraham I
2016-09-16 13:47 ` Arnd Bergmann
2016-09-18 19:56 ` Martin Blumenstingl
2016-09-19 4:59 ` Kishon Vijay Abraham I
2016-09-19 7:37 ` Arnd Bergmann
2016-09-09 20:36 ` Martin Blumenstingl
2016-09-11 13:44 ` Martin Blumenstingl
2016-09-12 17:32 ` Kevin Hilman
2016-09-13 15:28 ` Philipp Zabel
2016-09-13 18:38 ` Martin Blumenstingl
2016-09-14 0:59 ` Kevin Hilman
2016-09-14 8:36 ` Philipp Zabel
2016-09-14 8:37 ` Philipp Zabel
2016-09-14 21:09 ` Martin Blumenstingl
2016-09-14 8:37 ` Philipp Zabel
2016-09-14 21:23 ` Martin Blumenstingl
2016-09-15 10:30 ` Philipp Zabel
2016-09-04 21:31 ` [PATCH 5/7] ARM64: meson-gxbb: add USB Nodes Martin Blumenstingl
2016-09-05 0:23 ` Andreas Färber
2016-09-05 8:00 ` Neil Armstrong
2016-09-04 21:31 ` [PATCH 6/7] ARM64: meson-gxbb-p20x: Enable " Martin Blumenstingl
2016-09-04 21:31 ` [PATCH 7/7] ARM64: meson-gxbb-vega-s95: " Martin Blumenstingl
2016-09-11 13:41 ` [PATCH v2 0/6] usb/phy: Add Amlogic Meson8b and GXBB USB support Martin Blumenstingl
2016-09-11 13:41 ` [PATCH v2 1/6] usb: dwc2: add support for Meson8b and GXBB SoCs Martin Blumenstingl
2016-09-14 16:11 ` Kevin Hilman
2016-09-14 18:12 ` John Youn
2016-09-14 18:17 ` Kevin Hilman
2016-09-14 18:26 ` John Youn
2016-09-14 18:36 ` Kevin Hilman
2016-09-20 14:27 ` Rob Herring
2016-09-11 13:41 ` [PATCH v2 2/6] Documentation: dt-bindings: Add documentation for the Meson USB2 PHYs Martin Blumenstingl
2016-09-20 14:29 ` Rob Herring
2016-09-21 18:38 ` Kevin Hilman
2016-09-11 13:41 ` [PATCH v2 3/6] phy: meson: add USB2 PHY support for Meson8b and GXBB Martin Blumenstingl
2016-09-14 16:06 ` Kevin Hilman
2016-09-17 4:17 ` Kishon Vijay Abraham I
2016-09-19 16:42 ` Kevin Hilman
2016-09-20 5:01 ` Kishon Vijay Abraham I
2016-09-14 21:30 ` Martin Blumenstingl
2016-09-11 13:41 ` [PATCH v2 4/6] ARM64: meson-gxbb: add USB Nodes Martin Blumenstingl
2016-09-15 22:10 ` Kevin Hilman
2016-09-11 13:41 ` [PATCH v2 5/6] ARM64: meson-gxbb-p20x: Enable " Martin Blumenstingl
2016-09-14 18:05 ` Kevin Hilman
2016-09-15 22:09 ` Kevin Hilman
2016-09-11 13:41 ` [PATCH v2 6/6] ARM64: meson-gxbb-vega-s95: " Martin Blumenstingl
2016-09-15 22:10 ` Kevin Hilman
2016-10-01 12:18 ` Martin Blumenstingl [this message]
2016-10-01 12:18 ` [PATCH v3 1/3] Documentation: dt-bindings: update the meson-usb2-phy example Martin Blumenstingl
2016-10-09 1:28 ` Rob Herring
2016-10-01 12:18 ` [PATCH v3 2/3] Documentation: dt-bindings: rename meson-usb2-phy to meson8b-usb2-phy Martin Blumenstingl
2016-10-09 1:28 ` Rob Herring
2016-10-01 12:19 ` [PATCH v3 3/3] phy: meson: add USB2 PHY support for Meson8b and GXBB Martin Blumenstingl
2016-10-13 20:27 ` [PATCH v3 0/3] usb/phy: Add Amlogic Meson8b and GXBB USB support Martin Blumenstingl
2016-10-19 10:52 ` Kishon Vijay Abraham I
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=20161001121900.1168-1-martin.blumenstingl@googlemail.com \
--to=martin.blumenstingl@googlemail.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®