ti-phy.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. TI PHY: DT DOCUMENTATION FOR PHYs in TI PLATFORMs
  2. OMAP CONTROL PHY
  3. Required properties:
  4. - compatible: Should be one of
  5. "ti,control-phy-otghs" - if it has otghs_control mailbox register as on OMAP4.
  6. "ti,control-phy-usb2" - if it has Power down bit in control_dev_conf register
  7. e.g. USB2_PHY on OMAP5.
  8. "ti,control-phy-pipe3" - if it has DPLL and individual Rx & Tx power control
  9. e.g. USB3 PHY and SATA PHY on OMAP5.
  10. "ti,control-phy-pcie" - for pcie to support external clock for pcie and to
  11. set PCS delay value.
  12. e.g. PCIE PHY in DRA7x
  13. "ti,control-phy-usb2-dra7" - if it has power down register like USB2 PHY on
  14. DRA7 platform.
  15. "ti,control-phy-usb2-am437" - if it has power down register like USB2 PHY on
  16. AM437 platform.
  17. - reg : register ranges as listed in the reg-names property
  18. - reg-names: "otghs_control" for control-phy-otghs
  19. "power", "pcie_pcs" and "control_sma" for control-phy-pcie
  20. "power" for all other types
  21. omap_control_usb: omap-control-usb@4a002300 {
  22. compatible = "ti,control-phy-otghs";
  23. reg = <0x4a00233c 0x4>;
  24. reg-names = "otghs_control";
  25. };
  26. OMAP USB2 PHY
  27. Required properties:
  28. - compatible: Should be "ti,omap-usb2"
  29. Should be "ti,dra7x-usb2" for the 1st instance of USB2 PHY on
  30. DRA7x
  31. Should be "ti,dra7x-usb2-phy2" for the 2nd instance of USB2 PHY
  32. in DRA7x
  33. - reg : Address and length of the register set for the device.
  34. - #phy-cells: determine the number of cells that should be given in the
  35. phandle while referencing this phy.
  36. - clocks: a list of phandles and clock-specifier pairs, one for each entry in
  37. clock-names.
  38. - clock-names: should include:
  39. * "wkupclk" - wakeup clock.
  40. * "refclk" - reference clock (optional).
  41. Deprecated properties:
  42. - ctrl-module : phandle of the control module used by PHY driver to power on
  43. the PHY.
  44. Recommended properies:
  45. - syscon-phy-power : phandle/offset pair. Phandle to the system control
  46. module and the register offset to power on/off the PHY.
  47. This is usually a subnode of ocp2scp to which it is connected.
  48. usb2phy@4a0ad080 {
  49. compatible = "ti,omap-usb2";
  50. reg = <0x4a0ad080 0x58>;
  51. ctrl-module = <&omap_control_usb>;
  52. #phy-cells = <0>;
  53. clocks = <&usb_phy_cm_clk32k>, <&usb_otg_ss_refclk960m>;
  54. clock-names = "wkupclk", "refclk";
  55. };
  56. TI PIPE3 PHY
  57. Required properties:
  58. - compatible: Should be "ti,phy-usb3", "ti,phy-pipe3-sata" or
  59. "ti,phy-pipe3-pcie. "ti,omap-usb3" is deprecated.
  60. - reg : Address and length of the register set for the device.
  61. - reg-names: The names of the register addresses corresponding to the registers
  62. filled in "reg".
  63. - #phy-cells: determine the number of cells that should be given in the
  64. phandle while referencing this phy.
  65. - clocks: a list of phandles and clock-specifier pairs, one for each entry in
  66. clock-names.
  67. - clock-names: should include:
  68. * "wkupclk" - wakeup clock.
  69. * "sysclk" - system clock.
  70. * "refclk" - reference clock.
  71. * "dpll_ref" - external dpll ref clk
  72. * "dpll_ref_m2" - external dpll ref clk
  73. * "phy-div" - divider for apll
  74. * "div-clk" - apll clock
  75. Optional properties:
  76. - id: If there are multiple instance of the same type, in order to
  77. differentiate between each instance "id" can be used (e.g., multi-lane PCIe
  78. PHY). If "id" is not provided, it is set to default value of '1'.
  79. - syscon-pllreset: Handle to system control region that contains the
  80. CTRL_CORE_SMA_SW_0 register and register offset to the CTRL_CORE_SMA_SW_0
  81. register that contains the SATA_PLL_SOFT_RESET bit. Only valid for sata_phy.
  82. - syscon-pcs : phandle/offset pair. Phandle to the system control module and the
  83. register offset to write the PCS delay value.
  84. Deprecated properties:
  85. - ctrl-module : phandle of the control module used by PHY driver to power on
  86. the PHY.
  87. Recommended properies:
  88. - syscon-phy-power : phandle/offset pair. Phandle to the system control
  89. module and the register offset to power on/off the PHY.
  90. This is usually a subnode of ocp2scp to which it is connected.
  91. usb3phy@4a084400 {
  92. compatible = "ti,phy-usb3";
  93. reg = <0x4a084400 0x80>,
  94. <0x4a084800 0x64>,
  95. <0x4a084c00 0x40>;
  96. reg-names = "phy_rx", "phy_tx", "pll_ctrl";
  97. ctrl-module = <&omap_control_usb>;
  98. #phy-cells = <0>;
  99. clocks = <&usb_phy_cm_clk32k>,
  100. <&sys_clkin>,
  101. <&usb_otg_ss_refclk960m>;
  102. clock-names = "wkupclk",
  103. "sysclk",
  104. "refclk";
  105. };
  106. sata_phy: phy@4A096000 {
  107. compatible = "ti,phy-pipe3-sata";
  108. reg = <0x4A096000 0x80>, /* phy_rx */
  109. <0x4A096400 0x64>, /* phy_tx */
  110. <0x4A096800 0x40>; /* pll_ctrl */
  111. reg-names = "phy_rx", "phy_tx", "pll_ctrl";
  112. ctrl-module = <&omap_control_sata>;
  113. clocks = <&sys_clkin1>, <&sata_ref_clk>;
  114. clock-names = "sysclk", "refclk";
  115. syscon-pllreset = <&scm_conf 0x3fc>;
  116. #phy-cells = <0>;
  117. };