2013-03-12 19:24:25 +08:00
|
|
|
USB NOP PHY
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
- compatible: should be usb-nop-xceiv
|
2017-11-10 06:00:55 +08:00
|
|
|
- #phy-cells: Must be 0
|
2013-03-12 19:24:25 +08:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2014-12-12 23:08:26 +08:00
|
|
|
- vcc-supply: phandle to the regulator that provides power to the PHY.
|
2013-03-12 19:24:25 +08:00
|
|
|
|
2013-09-24 16:53:48 +08:00
|
|
|
- reset-gpios: Should specify the GPIO for reset.
|
2013-03-12 19:24:25 +08:00
|
|
|
|
2014-12-07 05:05:14 +08:00
|
|
|
- vbus-detect-gpio: should specify the GPIO detecting a VBus insertion
|
|
|
|
(see Documentation/devicetree/bindings/gpio/gpio.txt)
|
|
|
|
- vbus-regulator : should specifiy the regulator supplying current drawn from
|
|
|
|
the VBus line (see Documentation/devicetree/bindings/regulator/regulator.txt).
|
|
|
|
|
2013-03-12 19:24:25 +08:00
|
|
|
Example:
|
|
|
|
|
|
|
|
hsusb1_phy {
|
|
|
|
compatible = "usb-nop-xceiv";
|
|
|
|
clock-frequency = <19200000>;
|
|
|
|
clocks = <&osc 0>;
|
|
|
|
clock-names = "main_clk";
|
|
|
|
vcc-supply = <&hsusb1_vcc_regulator>;
|
2013-09-24 16:53:48 +08:00
|
|
|
reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
2014-12-07 05:05:14 +08:00
|
|
|
vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
|
|
|
|
vbus-regulator = <&vbus_regulator>;
|
2017-11-10 06:00:55 +08:00
|
|
|
#phy-cells = <0>;
|
2013-03-12 19:24:25 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
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.
|
2013-09-24 16:53:48 +08:00
|
|
|
hsusb1_vcc_regulator provides power to the PHY and GPIO 7 controls RESET.
|
2014-12-07 05:05:14 +08:00
|
|
|
GPIO 13 detects VBus insertion, and accordingly notifies the vbus-regulator.
|