samsung-phy.txt 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. Samsung S5P/EXYNOS SoC series MIPI CSIS/DSIM DPHY
  2. -------------------------------------------------
  3. Required properties:
  4. - compatible : should be "samsung,s5pv210-mipi-video-phy";
  5. - #phy-cells : from the generic phy bindings, must be 1;
  6. - syscon - phandle to the PMU system controller;
  7. For "samsung,s5pv210-mipi-video-phy" compatible PHYs the second cell in
  8. the PHY specifier identifies the PHY and its meaning is as follows:
  9. 0 - MIPI CSIS 0,
  10. 1 - MIPI DSIM 0,
  11. 2 - MIPI CSIS 1,
  12. 3 - MIPI DSIM 1.
  13. Samsung EXYNOS SoC series Display Port PHY
  14. -------------------------------------------------
  15. Required properties:
  16. - compatible : should be one of the following supported values:
  17. - "samsung,exynos5250-dp-video-phy"
  18. - "samsung,exynos5420-dp-video-phy"
  19. - samsung,pmu-syscon: phandle for PMU system controller interface, used to
  20. control pmu registers for power isolation.
  21. - #phy-cells : from the generic PHY bindings, must be 0;
  22. Samsung S5P/EXYNOS SoC series USB PHY
  23. -------------------------------------------------
  24. Required properties:
  25. - compatible : should be one of the listed compatibles:
  26. - "samsung,exynos3250-usb2-phy"
  27. - "samsung,exynos4210-usb2-phy"
  28. - "samsung,exynos4x12-usb2-phy"
  29. - "samsung,exynos5250-usb2-phy"
  30. - "samsung,s5pv210-usb2-phy"
  31. - reg : a list of registers used by phy driver
  32. - first and obligatory is the location of phy modules registers
  33. - samsung,sysreg-phandle - handle to syscon used to control the system registers
  34. - samsung,pmureg-phandle - handle to syscon used to control PMU registers
  35. - #phy-cells : from the generic phy bindings, must be 1;
  36. - clocks and clock-names:
  37. - the "phy" clock is required by the phy module, used as a gate
  38. - the "ref" clock is used to get the rate of the clock provided to the
  39. PHY module
  40. Optional properties:
  41. - vbus-supply: power-supply phandle for vbus power source
  42. The first phandle argument in the PHY specifier identifies the PHY, its
  43. meaning is compatible dependent. For the currently supported SoCs (Exynos 4210
  44. and Exynos 4212) it is as follows:
  45. 0 - USB device ("device"),
  46. 1 - USB host ("host"),
  47. 2 - HSIC0 ("hsic0"),
  48. 3 - HSIC1 ("hsic1"),
  49. Exynos3250 has only USB device phy available as phy 0.
  50. Exynos 4210 and Exynos 4212 use mode switching and require that mode switch
  51. register is supplied.
  52. Example:
  53. For Exynos 4412 (compatible with Exynos 4212):
  54. usbphy: phy@125b0000 {
  55. compatible = "samsung,exynos4x12-usb2-phy";
  56. reg = <0x125b0000 0x100>;
  57. clocks = <&clock 305>, <&clock 2>;
  58. clock-names = "phy", "ref";
  59. status = "okay";
  60. #phy-cells = <1>;
  61. samsung,sysreg-phandle = <&sys_reg>;
  62. samsung,pmureg-phandle = <&pmu_reg>;
  63. };
  64. Then the PHY can be used in other nodes such as:
  65. phy-consumer@12340000 {
  66. phys = <&usbphy 2>;
  67. phy-names = "phy";
  68. };
  69. Refer to DT bindings documentation of particular PHY consumer devices for more
  70. information about required PHYs and the way of specification.
  71. Samsung SATA PHY Controller
  72. ---------------------------
  73. SATA PHY nodes are defined to describe on-chip SATA Physical layer controllers.
  74. Each SATA PHY controller should have its own node.
  75. Required properties:
  76. - compatible : compatible list, contains "samsung,exynos5250-sata-phy"
  77. - reg : offset and length of the SATA PHY register set;
  78. - #phy-cells : must be zero
  79. - clocks : must be exactly one entry
  80. - clock-names : must be "sata_phyctrl"
  81. - samsung,exynos-sataphy-i2c-phandle : a phandle to the I2C device, no arguments
  82. - samsung,syscon-phandle : a phandle to the PMU system controller, no arguments
  83. Example:
  84. sata_phy: sata-phy@12170000 {
  85. compatible = "samsung,exynos5250-sata-phy";
  86. reg = <0x12170000 0x1ff>;
  87. clocks = <&clock 287>;
  88. clock-names = "sata_phyctrl";
  89. #phy-cells = <0>;
  90. samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
  91. samsung,syscon-phandle = <&pmu_syscon>;
  92. };
  93. Device-Tree bindings for sataphy i2c client driver
  94. --------------------------------------------------
  95. Required properties:
  96. compatible: Should be "samsung,exynos-sataphy-i2c"
  97. - reg: I2C address of the sataphy i2c device.
  98. Example:
  99. sata_phy_i2c:sata-phy@38 {
  100. compatible = "samsung,exynos-sataphy-i2c";
  101. reg = <0x38>;
  102. };
  103. Samsung Exynos5 SoC series USB DRD PHY controller
  104. --------------------------------------------------
  105. Required properties:
  106. - compatible : Should be set to one of the following supported values:
  107. - "samsung,exynos5250-usbdrd-phy" - for exynos5250 SoC,
  108. - "samsung,exynos5420-usbdrd-phy" - for exynos5420 SoC.
  109. - "samsung,exynos5433-usbdrd-phy" - for exynos5433 SoC.
  110. - "samsung,exynos7-usbdrd-phy" - for exynos7 SoC.
  111. - reg : Register offset and length of USB DRD PHY register set;
  112. - clocks: Clock IDs array as required by the controller
  113. - clock-names: names of clocks correseponding to IDs in the clock property;
  114. Required clocks:
  115. - phy: main PHY clock (same as USB DRD controller i.e. DWC3 IP clock),
  116. used for register access.
  117. - ref: PHY's reference clock (usually crystal clock), used for
  118. PHY operations, associated by phy name. It is used to
  119. determine bit values for clock settings register.
  120. For Exynos5420 this is given as 'sclk_usbphy30' in CMU.
  121. - optional clocks: Exynos5433 & Exynos7 SoC has now following additional
  122. gate clocks available:
  123. - phy_pipe: for PIPE3 phy
  124. - phy_utmi: for UTMI+ phy
  125. - itp: for ITP generation
  126. - samsung,pmu-syscon: phandle for PMU system controller interface, used to
  127. control pmu registers for power isolation.
  128. - #phy-cells : from the generic PHY bindings, must be 1;
  129. For "samsung,exynos5250-usbdrd-phy" and "samsung,exynos5420-usbdrd-phy"
  130. compatible PHYs, the second cell in the PHY specifier identifies the
  131. PHY id, which is interpreted as follows:
  132. 0 - UTMI+ type phy,
  133. 1 - PIPE3 type phy,
  134. Example:
  135. usbdrd_phy: usbphy@12100000 {
  136. compatible = "samsung,exynos5250-usbdrd-phy";
  137. reg = <0x12100000 0x100>;
  138. clocks = <&clock 286>, <&clock 1>;
  139. clock-names = "phy", "ref";
  140. samsung,pmu-syscon = <&pmu_system_controller>;
  141. #phy-cells = <1>;
  142. };
  143. - aliases: For SoCs like Exynos5420 having multiple USB 3.0 DRD PHY controllers,
  144. 'usbdrd_phy' nodes should have numbered alias in the aliases node,
  145. in the form of usbdrdphyN, N = 0, 1... (depending on number of
  146. controllers).
  147. Example:
  148. aliases {
  149. usbdrdphy0 = &usb3_phy0;
  150. usbdrdphy1 = &usb3_phy1;
  151. };