usb-nop-xceiv.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. USB NOP PHY
  2. Required properties:
  3. - compatible: should be usb-nop-xceiv
  4. - #phy-cells: Must be 0
  5. Optional properties:
  6. - clocks: phandle to the PHY clock. Use as per Documentation/devicetree
  7. /bindings/clock/clock-bindings.txt
  8. This property is required if clock-frequency is specified.
  9. - clock-names: Should be "main_clk"
  10. - clock-frequency: the clock frequency (in Hz) that the PHY clock must
  11. be configured to.
  12. - vcc-supply: phandle to the regulator that provides power to the PHY.
  13. - reset-gpios: Should specify the GPIO for reset.
  14. - vbus-detect-gpio: should specify the GPIO detecting a VBus insertion
  15. (see Documentation/devicetree/bindings/gpio/gpio.txt)
  16. - vbus-regulator : should specifiy the regulator supplying current drawn from
  17. the VBus line (see Documentation/devicetree/bindings/regulator/regulator.txt).
  18. Example:
  19. hsusb1_phy {
  20. compatible = "usb-nop-xceiv";
  21. clock-frequency = <19200000>;
  22. clocks = <&osc 0>;
  23. clock-names = "main_clk";
  24. vcc-supply = <&hsusb1_vcc_regulator>;
  25. reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
  26. vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
  27. vbus-regulator = <&vbus_regulator>;
  28. #phy-cells = <0>;
  29. };
  30. hsusb1_phy is a NOP USB PHY device that gets its clock from an oscillator
  31. and expects that clock to be configured to 19.2MHz by the NOP PHY driver.
  32. hsusb1_vcc_regulator provides power to the PHY and GPIO 7 controls RESET.
  33. GPIO 13 detects VBus insertion, and accordingly notifies the vbus-regulator.