Skip to content

Commit f013118

Browse files
akashdeep-tiStaticRocket
authored andcommitted
feat(linux): AM62Lx: Add documentation for RTC Only mode
Add documentation on how to enter RTC Only low power mode on AM62L EVM. This includes all the prerequisites and alternatives to enter this mode. Signed-off-by: Akashdeep Kaur <a-kaur@ti.com>
1 parent 9d19083 commit f013118

4 files changed

Lines changed: 78 additions & 15 deletions

File tree

source/images/am62l_lpm_j14.png

12.3 KB
Loading

source/linux/Foundational_Components/Power_Management/pm_am62lx_low_power_modes.rst

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,71 @@ values are detailed in the device-specific data sheet. As part of this SDK offer
1515
Texas Instruments has added support for the following low power modes (ordered from lowest power consumption
1616
to highest power consumption):
1717

18+
#. RTC Only
1819
#. RTC Only Plus DDR
1920
#. Deep Sleep
2021

22+
RTC Only
23+
********
24+
25+
RTC Only mode is the deepest low power mode that allows the system to enter a complete poweroff state
26+
with ultra-low power consumption while maintaining system time and wakeup capability.
27+
Unlike other low power modes, RTC Only powers off all domains except the RTC, which remains active
28+
to keep track of system time and provide wakeup via RTC alarm or RTC I/O event.
29+
30+
.. note::
31+
32+
The system loses nearly all its state as DDR is also turned-off.
33+
RTC Only is comparable with a Linux poweroff state with system timer ON.
34+
35+
.. important::
36+
37+
Jumper J14 position on the EVM determines which low power mode is entered. For RTC Only mode,
38+
connect jumper J14 to the position marked as "RTC ONLY MODE".
39+
40+
.. image:: /images/am62l_lpm_j14.png
41+
42+
The reference implementation in this SDK implements RTC Only as a poweroff state.
43+
When the system powers off, the RTC driver programs the RTC hardware for poweroff mode.
44+
The final sequence to power off the system is executed by TF-A firmware, which pulls the PMIC_EN
45+
signal low to turn off all the supply rails powered by the PMIC.
46+
47+
On AM62L platforms, if the ``system-power-controller`` device tree property is not set on the PMIC node,
48+
the PMIC will not register a poweroff handler. In this configuration, TF-A firmware handles the
49+
poweroff sequence and the system enters RTC Only mode. This allows the system to maintain accurate
50+
system time and provide wakeup capability via RTC alarm or external button press while consuming
51+
minimal power.
52+
53+
RTC Only mode supports two wakeup sources: RTC timer alarm and RTC I/O pins.
54+
55+
Use the following command to enter RTC Only mode with a timer alarm for wakeup:
56+
57+
.. code-block:: console
58+
59+
root@<machine>:~# rtcwake -s <time> -m off
60+
61+
Use the following command to enter RTC Only mode with RTC I/O (button press) for wakeup:
62+
63+
.. code-block:: console
64+
65+
root@<machine>:~# poweroff
66+
67+
At this point, the Linux kernel will go through its poweroff process and
68+
the console output will stop at the following lines:
69+
70+
.. code-block:: dmesg
71+
72+
[ 51.698039] systemd-shutdown[1]: Powering off.
73+
[ 51.769478] reboot: Power down
74+
75+
The system has entered RTC Only mode and can be woken up by activity on an RTC I/O pin
76+
programmed for wakeup. If an alarm was set, the system will automatically wake up
77+
when the alarm triggers.
78+
79+
During resume from RTC Only mode, the system goes through a normal Linux boot process. The RTC driver
80+
detects that the RTC is already programmed and skips the full initialization, performing only minimal
81+
cleanup to preserve the system time.
82+
2183
RTC Only Plus DDR
2284
*****************
2385

source/linux/Foundational_Components/Power_Management/pm_overview.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ supported by the Linux kernel.
6363

6464
The static power management features on |__PART_FAMILY_DEVICE_NAMES__| are:
6565

66+
#. RTC Only
6667
#. RTC Only Plus DDR
6768
#. Deep Sleep

source/linux/Foundational_Components/Power_Management/pm_wakeup_sources.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ valid for given low power modes:
5353

5454
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
5555

56-
+------------------------------------------------+------------+----------------+
57-
| Wakeup Source | Deep Sleep | RTC Only + DDR |
58-
+================================================+============+================+
59-
| Real-Time Clock (RTC) | Yes | Yes |
60-
+------------------------------------------------+------------+----------------+
61-
| WKUP GPIO | Yes | No |
62-
+------------------------------------------------+------------+----------------+
63-
| Main I/O Daisy Chain (Main GPIO and Main UART) | Yes | No |
64-
+------------------------------------------------+------------+----------------+
65-
| WKUP UART | Yes | No |
66-
+------------------------------------------------+------------+----------------+
67-
| USB Wakeup | Yes | No |
68-
+------------------------------------------------+------------+----------------+
69-
| RTC Ext Pin | Yes | Yes |
70-
+------------------------------------------------+------------+----------------+
56+
+------------------------------------------------+------------+----------------+----------+
57+
| Wakeup Source | Deep Sleep | RTC Only + DDR | RTC Only |
58+
+================================================+============+================+==========+
59+
| Real-Time Clock (RTC) | Yes | Yes | Yes |
60+
+------------------------------------------------+------------+----------------+----------+
61+
| WKUP GPIO | Yes | No | No |
62+
+------------------------------------------------+------------+----------------+----------+
63+
| Main I/O Daisy Chain (Main GPIO and Main UART) | Yes | No | No |
64+
+------------------------------------------------+------------+----------------+----------+
65+
| WKUP UART | Yes | No | No |
66+
+------------------------------------------------+------------+----------------+----------+
67+
| USB Wakeup | Yes | No | No |
68+
+------------------------------------------------+------------+----------------+----------+
69+
| RTC Ext Pin | Yes | Yes | Yes |
70+
+------------------------------------------------+------------+----------------+----------+
7171

7272
*********************
7373
Real-Time Clock (RTC)

0 commit comments

Comments
 (0)