nvidia,tegra20-pmc.txt 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. NVIDIA Tegra Power Management Controller (PMC)
  2. The PMC block interacts with an external Power Management Unit. The PMC
  3. mostly controls the entry and exit of the system from different sleep
  4. modes. It provides power-gating controllers for SoC and CPU power-islands.
  5. Required properties:
  6. - name : Should be pmc
  7. - compatible : Should contain "nvidia,tegra<chip>-pmc".
  8. - reg : Offset and length of the register set for the device
  9. - clocks : Must contain an entry for each entry in clock-names.
  10. See ../clocks/clock-bindings.txt for details.
  11. - clock-names : Must include the following entries:
  12. "pclk" (The Tegra clock of that name),
  13. "clk32k_in" (The 32KHz clock input to Tegra).
  14. Optional properties:
  15. - nvidia,invert-interrupt : If present, inverts the PMU interrupt signal.
  16. The PMU is an external Power Management Unit, whose interrupt output
  17. signal is fed into the PMC. This signal is optionally inverted, and then
  18. fed into the ARM GIC. The PMC is not involved in the detection or
  19. handling of this interrupt signal, merely its inversion.
  20. - nvidia,suspend-mode : The suspend mode that the platform should use.
  21. Valid values are 0, 1 and 2:
  22. 0 (LP0): CPU + Core voltage off and DRAM in self-refresh
  23. 1 (LP1): CPU voltage off and DRAM in self-refresh
  24. 2 (LP2): CPU voltage off
  25. - nvidia,core-power-req-active-high : Boolean, core power request active-high
  26. - nvidia,sys-clock-req-active-high : Boolean, system clock request active-high
  27. - nvidia,combined-power-req : Boolean, combined power request for CPU & Core
  28. - nvidia,cpu-pwr-good-en : Boolean, CPU power good signal (from PMIC to PMC)
  29. is enabled.
  30. Required properties when nvidia,suspend-mode is specified:
  31. - nvidia,cpu-pwr-good-time : CPU power good time in uS.
  32. - nvidia,cpu-pwr-off-time : CPU power off time in uS.
  33. - nvidia,core-pwr-good-time : <Oscillator-stable-time Power-stable-time>
  34. Core power good time in uS.
  35. - nvidia,core-pwr-off-time : Core power off time in uS.
  36. Required properties when nvidia,suspend-mode=<0>:
  37. - nvidia,lp0-vec : <start length> Starting address and length of LP0 vector
  38. The LP0 vector contains the warm boot code that is executed by AVP when
  39. resuming from the LP0 state. The AVP (Audio-Video Processor) is an ARM7
  40. processor and always being the first boot processor when chip is power on
  41. or resume from deep sleep mode. When the system is resumed from the deep
  42. sleep mode, the warm boot code will restore some PLLs, clocks and then
  43. bring up CPU0 for resuming the system.
  44. Example:
  45. / SoC dts including file
  46. pmc@7000f400 {
  47. compatible = "nvidia,tegra20-pmc";
  48. reg = <0x7000e400 0x400>;
  49. clocks = <&tegra_car 110>, <&clk32k_in>;
  50. clock-names = "pclk", "clk32k_in";
  51. nvidia,invert-interrupt;
  52. nvidia,suspend-mode = <1>;
  53. nvidia,cpu-pwr-good-time = <2000>;
  54. nvidia,cpu-pwr-off-time = <100>;
  55. nvidia,core-pwr-good-time = <3845 3845>;
  56. nvidia,core-pwr-off-time = <458>;
  57. nvidia,core-power-req-active-high;
  58. nvidia,sys-clock-req-active-high;
  59. nvidia,lp0-vec = <0xbdffd000 0x2000>;
  60. };
  61. / Tegra board dts file
  62. {
  63. ...
  64. clocks {
  65. compatible = "simple-bus";
  66. #address-cells = <1>;
  67. #size-cells = <0>;
  68. clk32k_in: clock {
  69. compatible = "fixed-clock";
  70. reg=<0>;
  71. #clock-cells = <0>;
  72. clock-frequency = <32768>;
  73. };
  74. };
  75. ...
  76. };