nvidia,tegra20-pmc.txt 3.1 KB

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