-
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.
usb: phy: nop: Add device tree support and binding information
The PHY clock, clock rate, VCC regulator and RESET regulator can now be provided via device tree. Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
- Loading branch information
Roger Quadros
authored and
Felipe Balbi
committed
Mar 18, 2013
1 parent
90f4232
commit 0eba387
Showing
2 changed files
with
61 additions
and
8 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,34 @@ | ||
USB NOP PHY | ||
|
||
Required properties: | ||
- compatible: should be usb-nop-xceiv | ||
|
||
Optional properties: | ||
- clocks: phandle to the PHY clock. Use as per Documentation/devicetree | ||
/bindings/clock/clock-bindings.txt | ||
This property is required if clock-frequency is specified. | ||
|
||
- clock-names: Should be "main_clk" | ||
|
||
- clock-frequency: the clock frequency (in Hz) that the PHY clock must | ||
be configured to. | ||
|
||
- vcc-supply: phandle to the regulator that provides RESET to the PHY. | ||
|
||
- reset-supply: phandle to the regulator that provides power to the PHY. | ||
|
||
Example: | ||
|
||
hsusb1_phy { | ||
compatible = "usb-nop-xceiv"; | ||
clock-frequency = <19200000>; | ||
clocks = <&osc 0>; | ||
clock-names = "main_clk"; | ||
vcc-supply = <&hsusb1_vcc_regulator>; | ||
reset-supply = <&hsusb1_reset_regulator>; | ||
}; | ||
|
||
hsusb1_phy is a NOP USB PHY device that gets its clock from an oscillator | ||
and expects that clock to be configured to 19.2MHz by the NOP PHY driver. | ||
hsusb1_vcc_regulator provides power to the PHY and hsusb1_reset_regulator | ||
controls RESET. |
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