phy-mt65xx-usb.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. mt65xx USB3.0 PHY binding
  2. --------------------------
  3. This binding describes a usb3.0 phy for mt65xx platforms of Medaitek SoC.
  4. Required properties (controller (parent) node):
  5. - compatible : should be one of
  6. "mediatek,mt2701-u3phy"
  7. "mediatek,mt8173-u3phy"
  8. - reg : offset and length of register for phy, exclude port's
  9. register.
  10. - clocks : a list of phandle + clock-specifier pairs, one for each
  11. entry in clock-names
  12. - clock-names : must contain
  13. "u3phya_ref": for reference clock of usb3.0 analog phy.
  14. Required nodes : a sub-node is required for each port the controller
  15. provides. Address range information including the usual
  16. 'reg' property is used inside these nodes to describe
  17. the controller's topology.
  18. Required properties (port (child) node):
  19. - reg : address and length of the register set for the port.
  20. - #phy-cells : should be 1 (See second example)
  21. cell after port phandle is phy type from:
  22. - PHY_TYPE_USB2
  23. - PHY_TYPE_USB3
  24. Example:
  25. u3phy: usb-phy@11290000 {
  26. compatible = "mediatek,mt8173-u3phy";
  27. reg = <0 0x11290000 0 0x800>;
  28. clocks = <&apmixedsys CLK_APMIXED_REF2USB_TX>;
  29. clock-names = "u3phya_ref";
  30. #address-cells = <2>;
  31. #size-cells = <2>;
  32. ranges;
  33. status = "okay";
  34. phy_port0: port@11290800 {
  35. reg = <0 0x11290800 0 0x800>;
  36. #phy-cells = <1>;
  37. status = "okay";
  38. };
  39. phy_port1: port@11291000 {
  40. reg = <0 0x11291000 0 0x800>;
  41. #phy-cells = <1>;
  42. status = "okay";
  43. };
  44. };
  45. Specifying phy control of devices
  46. ---------------------------------
  47. Device nodes should specify the configuration required in their "phys"
  48. property, containing a phandle to the phy port node and a device type;
  49. phy-names for each port are optional.
  50. Example:
  51. #include <dt-bindings/phy/phy.h>
  52. usb30: usb@11270000 {
  53. ...
  54. phys = <&phy_port0 PHY_TYPE_USB3>;
  55. phy-names = "usb3-0";
  56. ...
  57. };