nvidia,tegra20-pmc.txt 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. NVIDIA Tegra Power Management Controller (PMC)
  2. == Power Management Controller Node ==
  3. The PMC block interacts with an external Power Management Unit. The PMC
  4. mostly controls the entry and exit of the system from different sleep
  5. modes. It provides power-gating controllers for SoC and CPU power-islands.
  6. Required properties:
  7. - name : Should be pmc
  8. - compatible : Should contain one of the following:
  9. For Tegra20 must contain "nvidia,tegra20-pmc".
  10. For Tegra30 must contain "nvidia,tegra30-pmc".
  11. For Tegra114 must contain "nvidia,tegra114-pmc"
  12. For Tegra124 must contain "nvidia,tegra124-pmc"
  13. For Tegra132 must contain "nvidia,tegra124-pmc"
  14. For Tegra210 must contain "nvidia,tegra210-pmc"
  15. - reg : Offset and length of the register set for the device
  16. - clocks : Must contain an entry for each entry in clock-names.
  17. See ../clocks/clock-bindings.txt for details.
  18. - clock-names : Must include the following entries:
  19. "pclk" (The Tegra clock of that name),
  20. "clk32k_in" (The 32KHz clock input to Tegra).
  21. Optional properties:
  22. - nvidia,invert-interrupt : If present, inverts the PMU interrupt signal.
  23. The PMU is an external Power Management Unit, whose interrupt output
  24. signal is fed into the PMC. This signal is optionally inverted, and then
  25. fed into the ARM GIC. The PMC is not involved in the detection or
  26. handling of this interrupt signal, merely its inversion.
  27. - nvidia,suspend-mode : The suspend mode that the platform should use.
  28. Valid values are 0, 1 and 2:
  29. 0 (LP0): CPU + Core voltage off and DRAM in self-refresh
  30. 1 (LP1): CPU voltage off and DRAM in self-refresh
  31. 2 (LP2): CPU voltage off
  32. - nvidia,core-power-req-active-high : Boolean, core power request active-high
  33. - nvidia,sys-clock-req-active-high : Boolean, system clock request active-high
  34. - nvidia,combined-power-req : Boolean, combined power request for CPU & Core
  35. - nvidia,cpu-pwr-good-en : Boolean, CPU power good signal (from PMIC to PMC)
  36. is enabled.
  37. Required properties when nvidia,suspend-mode is specified:
  38. - nvidia,cpu-pwr-good-time : CPU power good time in uS.
  39. - nvidia,cpu-pwr-off-time : CPU power off time in uS.
  40. - nvidia,core-pwr-good-time : <Oscillator-stable-time Power-stable-time>
  41. Core power good time in uS.
  42. - nvidia,core-pwr-off-time : Core power off time in uS.
  43. Required properties when nvidia,suspend-mode=<0>:
  44. - nvidia,lp0-vec : <start length> Starting address and length of LP0 vector
  45. The LP0 vector contains the warm boot code that is executed by AVP when
  46. resuming from the LP0 state. The AVP (Audio-Video Processor) is an ARM7
  47. processor and always being the first boot processor when chip is power on
  48. or resume from deep sleep mode. When the system is resumed from the deep
  49. sleep mode, the warm boot code will restore some PLLs, clocks and then
  50. bring up CPU0 for resuming the system.
  51. Hardware-triggered thermal reset:
  52. On Tegra30, Tegra114 and Tegra124, if the 'i2c-thermtrip' subnode exists,
  53. hardware-triggered thermal reset will be enabled.
  54. Required properties for hardware-triggered thermal reset (inside 'i2c-thermtrip'):
  55. - nvidia,i2c-controller-id : ID of I2C controller to send poweroff command to. Valid values are
  56. described in section 9.2.148 "APBDEV_PMC_SCRATCH53_0" of the
  57. Tegra K1 Technical Reference Manual.
  58. - nvidia,bus-addr : Bus address of the PMU on the I2C bus
  59. - nvidia,reg-addr : I2C register address to write poweroff command to
  60. - nvidia,reg-data : Poweroff command to write to PMU
  61. Optional properties for hardware-triggered thermal reset (inside 'i2c-thermtrip'):
  62. - nvidia,pinmux-id : Pinmux used by the hardware when issuing poweroff command.
  63. Defaults to 0. Valid values are described in section 12.5.2
  64. "Pinmux Support" of the Tegra4 Technical Reference Manual.
  65. Optional nodes:
  66. - powergates : This node contains a hierarchy of power domain nodes, which
  67. should match the powergates on the Tegra SoC. See "Powergate
  68. Nodes" below.
  69. Example:
  70. / SoC dts including file
  71. pmc@7000f400 {
  72. compatible = "nvidia,tegra20-pmc";
  73. reg = <0x7000e400 0x400>;
  74. clocks = <&tegra_car 110>, <&clk32k_in>;
  75. clock-names = "pclk", "clk32k_in";
  76. nvidia,invert-interrupt;
  77. nvidia,suspend-mode = <1>;
  78. nvidia,cpu-pwr-good-time = <2000>;
  79. nvidia,cpu-pwr-off-time = <100>;
  80. nvidia,core-pwr-good-time = <3845 3845>;
  81. nvidia,core-pwr-off-time = <458>;
  82. nvidia,core-power-req-active-high;
  83. nvidia,sys-clock-req-active-high;
  84. nvidia,lp0-vec = <0xbdffd000 0x2000>;
  85. };
  86. / Tegra board dts file
  87. {
  88. ...
  89. pmc@7000f400 {
  90. i2c-thermtrip {
  91. nvidia,i2c-controller-id = <4>;
  92. nvidia,bus-addr = <0x40>;
  93. nvidia,reg-addr = <0x36>;
  94. nvidia,reg-data = <0x2>;
  95. };
  96. };
  97. ...
  98. clocks {
  99. compatible = "simple-bus";
  100. #address-cells = <1>;
  101. #size-cells = <0>;
  102. clk32k_in: clock {
  103. compatible = "fixed-clock";
  104. reg=<0>;
  105. #clock-cells = <0>;
  106. clock-frequency = <32768>;
  107. };
  108. };
  109. ...
  110. };
  111. == Powergate Nodes ==
  112. Each of the powergate nodes represents a power-domain on the Tegra SoC
  113. that can be power-gated by the Tegra PMC. The name of the powergate node
  114. should be one of the below. Note that not every powergate is applicable
  115. to all Tegra devices and the following list shows which powergates are
  116. applicable to which devices. Please refer to the Tegra TRM for more
  117. details on the various powergates.
  118. Name Description Devices Applicable
  119. 3d 3D Graphics Tegra20/114/124/210
  120. 3d0 3D Graphics 0 Tegra30
  121. 3d1 3D Graphics 1 Tegra30
  122. aud Audio Tegra210
  123. dfd Debug Tegra210
  124. dis Display A Tegra114/124/210
  125. disb Display B Tegra114/124/210
  126. heg 2D Graphics Tegra30/114/124/210
  127. iram Internal RAM Tegra124/210
  128. mpe MPEG Encode All
  129. nvdec NVIDIA Video Decode Engine Tegra210
  130. nvjpg NVIDIA JPEG Engine Tegra210
  131. pcie PCIE Tegra20/30/124/210
  132. sata SATA Tegra30/124/210
  133. sor Display interfaces Tegra124/210
  134. ve2 Video Encode Engine 2 Tegra210
  135. venc Video Encode Engine All
  136. vdec Video Decode Engine Tegra20/30/114/124
  137. vic Video Imaging Compositor Tegra124/210
  138. xusba USB Partition A Tegra114/124/210
  139. xusbb USB Partition B Tegra114/124/210
  140. xusbc USB Partition C Tegra114/124/210
  141. Required properties:
  142. - clocks: Must contain an entry for each clock required by the PMC for
  143. controlling a power-gate. See ../clocks/clock-bindings.txt for details.
  144. - resets: Must contain an entry for each reset required by the PMC for
  145. controlling a power-gate. See ../reset/reset.txt for details.
  146. - #power-domain-cells: Must be 0.
  147. Example:
  148. pmc: pmc@7000e400 {
  149. compatible = "nvidia,tegra210-pmc";
  150. reg = <0x0 0x7000e400 0x0 0x400>;
  151. clocks = <&tegra_car TEGRA210_CLK_PCLK>, <&clk32k_in>;
  152. clock-names = "pclk", "clk32k_in";
  153. powergates {
  154. pd_audio: aud {
  155. clocks = <&tegra_car TEGRA210_CLK_APE>,
  156. <&tegra_car TEGRA210_CLK_APB2APE>;
  157. resets = <&tegra_car 198>;
  158. #power-domain-cells = <0>;
  159. };
  160. };
  161. };
  162. == Powergate Clients ==
  163. Hardware blocks belonging to a power domain should contain a "power-domains"
  164. property that is a phandle pointing to the corresponding powergate node.
  165. Example:
  166. adma: adma@702e2000 {
  167. ...
  168. power-domains = <&pd_audio>;
  169. ...
  170. };