Roger Quadros | 0eba387 | 2013-03-12 13:24:25 +0200 | [diff] [blame] | 1 | USB NOP PHY |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: should be usb-nop-xceiv |
| 5 | |
| 6 | Optional properties: |
| 7 | - clocks: phandle to the PHY clock. Use as per Documentation/devicetree |
| 8 | /bindings/clock/clock-bindings.txt |
| 9 | This property is required if clock-frequency is specified. |
| 10 | |
| 11 | - clock-names: Should be "main_clk" |
| 12 | |
| 13 | - clock-frequency: the clock frequency (in Hz) that the PHY clock must |
| 14 | be configured to. |
| 15 | |
Fabio Estevam | 6b1b0fe | 2014-12-12 13:08:26 -0200 | [diff] [blame] | 16 | - vcc-supply: phandle to the regulator that provides power to the PHY. |
Roger Quadros | 0eba387 | 2013-03-12 13:24:25 +0200 | [diff] [blame] | 17 | |
Roger Quadros | bd27fa4 | 2013-09-24 11:53:48 +0300 | [diff] [blame] | 18 | - reset-gpios: Should specify the GPIO for reset. |
Roger Quadros | 0eba387 | 2013-03-12 13:24:25 +0200 | [diff] [blame] | 19 | |
Robert Jarzmik | 7bdea87 | 2014-12-06 22:05:14 +0100 | [diff] [blame] | 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 | |
Roger Quadros | 0eba387 | 2013-03-12 13:24:25 +0200 | [diff] [blame] | 25 | Example: |
| 26 | |
| 27 | hsusb1_phy { |
| 28 | compatible = "usb-nop-xceiv"; |
| 29 | clock-frequency = <19200000>; |
| 30 | clocks = <&osc 0>; |
| 31 | clock-names = "main_clk"; |
| 32 | vcc-supply = <&hsusb1_vcc_regulator>; |
Roger Quadros | bd27fa4 | 2013-09-24 11:53:48 +0300 | [diff] [blame] | 33 | reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; |
Robert Jarzmik | 7bdea87 | 2014-12-06 22:05:14 +0100 | [diff] [blame] | 34 | vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>; |
| 35 | vbus-regulator = <&vbus_regulator>; |
Roger Quadros | 0eba387 | 2013-03-12 13:24:25 +0200 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | hsusb1_phy is a NOP USB PHY device that gets its clock from an oscillator |
| 39 | and expects that clock to be configured to 19.2MHz by the NOP PHY driver. |
Roger Quadros | bd27fa4 | 2013-09-24 11:53:48 +0300 | [diff] [blame] | 40 | hsusb1_vcc_regulator provides power to the PHY and GPIO 7 controls RESET. |
Robert Jarzmik | 7bdea87 | 2014-12-06 22:05:14 +0100 | [diff] [blame] | 41 | GPIO 13 detects VBus insertion, and accordingly notifies the vbus-regulator. |