-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
phy: Add an USB PHY driver for the Lantiq SoCs using the RCU module
This driver starts the DWC2 core(s) built into the XWAY SoCs and provides the PHY interfaces for each core. The phy instances can be passed to the dwc2 driver, which already supports the generic phy interface. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Acked-by: Rob Herring <robh@kernel.org> Cc: martin.blumenstingl@googlemail.com Cc: john@phrozen.org Cc: andy.shevchenko@gmail.com Cc: p.zabel@pengutronix.de Cc: mark.rutland@arm.com Cc: linux-mips@linux-mips.org Cc: linux-mtd@lists.infradead.org Cc: linux-watchdog@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-spi@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/17127/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
- Loading branch information
Hauke Mehrtens
authored and
Ralf Baechle
committed
Sep 4, 2017
1 parent
d510360
commit dea54fb
Showing
7 changed files
with
324 additions
and
19 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
Documentation/devicetree/bindings/phy/phy-lantiq-rcu-usb2.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Lantiq XWAY SoC RCU USB 1.1/2.0 PHY binding | ||
=========================================== | ||
|
||
This binding describes the USB PHY hardware provided by the RCU module on the | ||
Lantiq XWAY SoCs. | ||
|
||
This node has to be a sub node of the Lantiq RCU block. | ||
|
||
------------------------------------------------------------------------------- | ||
Required properties (controller (parent) node): | ||
- compatible : Should be one of | ||
"lantiq,ase-usb2-phy" | ||
"lantiq,danube-usb2-phy" | ||
"lantiq,xrx100-usb2-phy" | ||
"lantiq,xrx200-usb2-phy" | ||
"lantiq,xrx300-usb2-phy" | ||
- reg : Defines the following sets of registers in the parent | ||
syscon device | ||
- Offset of the USB PHY configuration register | ||
- Offset of the USB Analog configuration | ||
register (only for xrx200 and xrx200) | ||
- clocks : References to the (PMU) "phy" clk gate. | ||
- clock-names : Must be "phy" | ||
- resets : References to the RCU USB configuration reset bits. | ||
- reset-names : Must be one of the following: | ||
"phy" (optional) | ||
"ctrl" (shared) | ||
|
||
------------------------------------------------------------------------------- | ||
Example for the USB PHYs on an xRX200 SoC: | ||
usb_phy0: usb2-phy@18 { | ||
compatible = "lantiq,xrx200-usb2-phy"; | ||
reg = <0x18 4>, <0x38 4>; | ||
|
||
clocks = <&pmu PMU_GATE_USB0_PHY>; | ||
clock-names = "phy"; | ||
resets = <&reset1 4 4>, <&reset0 4 4>; | ||
reset-names = "phy", "ctrl"; | ||
#phy-cells = <0>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# | ||
# Phy drivers for Lantiq / Intel platforms | ||
# | ||
config PHY_LANTIQ_RCU_USB2 | ||
tristate "Lantiq XWAY SoC RCU based USB PHY" | ||
depends on OF && (SOC_TYPE_XWAY || COMPILE_TEST) | ||
select GENERIC_PHY | ||
help | ||
Support for the USB PHY(s) on the Lantiq / Intel XWAY family SoCs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
obj-$(CONFIG_PHY_LANTIQ_RCU_USB2) += phy-lantiq-rcu-usb2.o |
Oops, something went wrong.