diff options
| author | Robert Jarzmik <robert.jarzmik@free.fr> | 2014-12-06 16:05:14 -0500 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2015-01-12 13:13:29 -0500 |
| commit | 7bdea87a871f217a8a463f9203e6d0c702b7fda9 (patch) | |
| tree | d2d1b1661c3e48221007c7a21b12c022559a1c5f /Documentation/devicetree/bindings/usb | |
| parent | e9f2cefb0cdc2aea8b70dbf68a3f78b88e57cf34 (diff) | |
usb: phy: nop: device tree documentation for vbus
Enhance the phy documentation by adding 2 new optional bindings :
- the vbus gpio, which detects usb insertion
- the vbus regulator, which provides current drawn from the usb cable
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'Documentation/devicetree/bindings/usb')
| -rw-r--r-- | Documentation/devicetree/bindings/usb/usb-nop-xceiv.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/usb/usb-nop-xceiv.txt b/Documentation/devicetree/bindings/usb/usb-nop-xceiv.txt index 8db5b33d6fdc..5be01c859b7a 100644 --- a/Documentation/devicetree/bindings/usb/usb-nop-xceiv.txt +++ b/Documentation/devicetree/bindings/usb/usb-nop-xceiv.txt | |||
| @@ -17,6 +17,11 @@ Optional properties: | |||
| 17 | 17 | ||
| 18 | - reset-gpios: Should specify the GPIO for reset. | 18 | - reset-gpios: Should specify the GPIO for reset. |
| 19 | 19 | ||
| 20 | - vbus-detect-gpio: should specify the GPIO detecting a VBus insertion | ||
| 21 | (see Documentation/devicetree/bindings/gpio/gpio.txt) | ||
| 22 | - vbus-regulator : should specifiy the regulator supplying current drawn from | ||
| 23 | the VBus line (see Documentation/devicetree/bindings/regulator/regulator.txt). | ||
| 24 | |||
| 20 | Example: | 25 | Example: |
| 21 | 26 | ||
| 22 | hsusb1_phy { | 27 | hsusb1_phy { |
| @@ -26,8 +31,11 @@ Example: | |||
| 26 | clock-names = "main_clk"; | 31 | clock-names = "main_clk"; |
| 27 | vcc-supply = <&hsusb1_vcc_regulator>; | 32 | vcc-supply = <&hsusb1_vcc_regulator>; |
| 28 | reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; | 33 | reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; |
| 34 | vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>; | ||
| 35 | vbus-regulator = <&vbus_regulator>; | ||
| 29 | }; | 36 | }; |
| 30 | 37 | ||
| 31 | hsusb1_phy is a NOP USB PHY device that gets its clock from an oscillator | 38 | hsusb1_phy is a NOP USB PHY device that gets its clock from an oscillator |
| 32 | and expects that clock to be configured to 19.2MHz by the NOP PHY driver. | 39 | and expects that clock to be configured to 19.2MHz by the NOP PHY driver. |
| 33 | hsusb1_vcc_regulator provides power to the PHY and GPIO 7 controls RESET. | 40 | hsusb1_vcc_regulator provides power to the PHY and GPIO 7 controls RESET. |
| 41 | GPIO 13 detects VBus insertion, and accordingly notifies the vbus-regulator. | ||
