phy-bindings.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. This document explains only the device tree data binding. For general
  2. information about PHY subsystem refer to Documentation/phy.txt
  3. PHY device node
  4. ===============
  5. Required Properties:
  6. #phy-cells: Number of cells in a PHY specifier; The meaning of all those
  7. cells is defined by the binding for the phy node. The PHY
  8. provider can use the values in cells to find the appropriate
  9. PHY.
  10. Optional Properties:
  11. phy-supply: Phandle to a regulator that provides power to the PHY. This
  12. regulator will be managed during the PHY power on/off sequence.
  13. For example:
  14. phys: phy {
  15. compatible = "xxx";
  16. reg = <...>;
  17. .
  18. .
  19. #phy-cells = <1>;
  20. .
  21. .
  22. };
  23. That node describes an IP block (PHY provider) that implements 2 different PHYs.
  24. In order to differentiate between these 2 PHYs, an additional specifier should be
  25. given while trying to get a reference to it.
  26. PHY user node
  27. =============
  28. Required Properties:
  29. phys : the phandle for the PHY device (used by the PHY subsystem)
  30. phy-names : the names of the PHY corresponding to the PHYs present in the
  31. *phys* phandle
  32. Example 1:
  33. usb1: usb_otg_ss@xxx {
  34. compatible = "xxx";
  35. reg = <xxx>;
  36. .
  37. .
  38. phys = <&usb2_phy>, <&usb3_phy>;
  39. phy-names = "usb2phy", "usb3phy";
  40. .
  41. .
  42. };
  43. This node represents a controller that uses two PHYs, one for usb2 and one for
  44. usb3.
  45. Example 2:
  46. usb2: usb_otg_ss@xxx {
  47. compatible = "xxx";
  48. reg = <xxx>;
  49. .
  50. .
  51. phys = <&phys 1>;
  52. phy-names = "usbphy";
  53. .
  54. .
  55. };
  56. This node represents a controller that uses one of the PHYs of the PHY provider
  57. device defined previously. Note that the phy handle has an additional specifier
  58. "1" to differentiate between the two PHYs.