-
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 support for Qualcomm's USB HS phy
The high-speed phy on qcom SoCs is controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: <devicetree@vger.kernel.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
- Loading branch information
Stephen Boyd
authored and
Kishon Vijay Abraham I
committed
Jan 27, 2017
1 parent
605b865
commit e2427b0
Showing
4 changed files
with
389 additions
and
0 deletions.
There are no files selected for viewing
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,84 @@ | ||
Qualcomm's USB HS PHY | ||
|
||
PROPERTIES | ||
|
||
- compatible: | ||
Usage: required | ||
Value type: <string> | ||
Definition: Should contain "qcom,usb-hs-phy" and more specifically one of the | ||
following: | ||
|
||
"qcom,usb-hs-phy-apq8064" | ||
"qcom,usb-hs-phy-msm8916" | ||
"qcom,usb-hs-phy-msm8974" | ||
|
||
- #phy-cells: | ||
Usage: required | ||
Value type: <u32> | ||
Definition: Should contain 0 | ||
|
||
- clocks: | ||
Usage: required | ||
Value type: <prop-encoded-array> | ||
Definition: Should contain clock specifier for the reference and sleep | ||
clocks | ||
|
||
- clock-names: | ||
Usage: required | ||
Value type: <stringlist> | ||
Definition: Should contain "ref" and "sleep" for the reference and sleep | ||
clocks respectively | ||
|
||
- resets: | ||
Usage: required | ||
Value type: <prop-encoded-array> | ||
Definition: Should contain the phy and POR resets | ||
|
||
- reset-names: | ||
Usage: required | ||
Value type: <stringlist> | ||
Definition: Should contain "phy" and "por" for the phy and POR resets | ||
respectively | ||
|
||
- v3p3-supply: | ||
Usage: required | ||
Value type: <phandle> | ||
Definition: Should contain a reference to the 3.3V supply | ||
|
||
- v1p8-supply: | ||
Usage: required | ||
Value type: <phandle> | ||
Definition: Should contain a reference to the 1.8V supply | ||
|
||
- extcon: | ||
Usage: optional | ||
Value type: <prop-encoded-array> | ||
Definition: Should contain the vbus extcon | ||
|
||
- qcom,init-seq: | ||
Usage: optional | ||
Value type: <u8 array> | ||
Definition: Should contain a sequence of ULPI address and value pairs to | ||
program into the ULPI_EXT_VENDOR_SPECIFIC area. This is related | ||
to Device Mode Eye Diagram test. The addresses are offsets | ||
from the ULPI_EXT_VENDOR_SPECIFIC address, for example, | ||
<0x1 0x53> would mean "write the value 0x53 to address 0x81". | ||
|
||
EXAMPLE | ||
|
||
otg: usb-controller { | ||
ulpi { | ||
phy { | ||
compatible = "qcom,usb-hs-phy-msm8974", "qcom,usb-hs-phy"; | ||
#phy-cells = <0>; | ||
clocks = <&xo_board>, <&gcc GCC_USB2A_PHY_SLEEP_CLK>; | ||
clock-names = "ref", "sleep"; | ||
resets = <&gcc GCC_USB2A_PHY_BCR>, <&otg 0>; | ||
reset-names = "phy", "por"; | ||
v3p3-supply = <&pm8941_l24>; | ||
v1p8-supply = <&pm8941_l6>; | ||
extcon = <&smbb>; | ||
qcom,init-seq = /bits/ 8 <0x1 0x63>; | ||
}; | ||
}; | ||
}; |
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
Oops, something went wrong.