@@ -18,6 +18,7 @@ Texas Instruments has added support for the following low power modes:
1818#. Deep Sleep
1919#. MCU Only
2020#. Partial I/O
21+ #. I/O Only Plus DDR
2122
2223TI SDK 10.0 (ti-linux-6.6.y kernel and 10.0 DM firmware) adds support for
2324an updated LPM Software Architecture that seamlessly manages the various
@@ -106,8 +107,6 @@ Deep Sleep mode using one of the supported wakeup sources.
106107MCU Only
107108********
108109
109- .. _pm_mcu_only :
110-
111110Similar to Deep Sleep, with the major distinction being that the MCU core is kept alive to run applications.
112111The benefits of using MCU Only mode:
113112
@@ -290,6 +289,126 @@ system and it will go through a normal Linux boot process.
290289 The capability to detect whether system is resuming from Partial I/O
291290 or doing a normal cold boot will be added in future release.
292291
292+ *****************
293+ I/O Only Plus DDR
294+ *****************
295+
296+ .. ifconfig :: CONFIG_part_variant in ('AM62X')
297+
298+ This mode is not applicable for AM62X.
299+
300+ .. ifconfig :: CONFIG_part_variant in ('AM62AX' , 'AM62PX')
301+
302+ This mode is similar to Partial I/O mode, with the major distinction being
303+ that the DDR memory is kept in self refresh to save context. All the processor
304+ power supplies are turned off except the LVCMOS I/O power supply while keeping
305+ DDR in self-refresh.
306+ The user can do system power state transitions, including power supply control,
307+ by a single interface signal (PMIC_LPM_EN signal) with PMIC register programming.
308+
309+ The benefits of using I/O Only plus DDR in embedded devices:
310+
311+ #. Lowest power consumption: I/O Only Plus DDR mode can save a significant amount of power, especially in battery-powered
312+ devices that are mostly idle or low activity most of the time with the full context being saved.
313+ #. Better efficiency: I/O Only Plus DDR mode can help to improve the efficiency of embedded devices by
314+ reducing the amount of time that the processor is idle. This is because the processor can
315+ be kept in a low-power state when it is not needed.
316+
317+ .. ifconfig :: CONFIG_part_variant in ('AM62AX')
318+
319+ .. important :: Jumper J9 should be connected on SK to enable system to enter I/O Only plus DDR mode.
320+
321+ .. ifconfig :: CONFIG_part_variant in ('AM62PX')
322+
323+ .. important :: Jumper J12 should be connected on SK to enable system to enter I/O Only plus DDR mode.
324+
325+ The wakeup sources that can be used to wake the system from I/O Only Plus DDR are
326+ mcu_uart0, mcu_mcan0, mcu_mcan1 and wkup_uart0. After Linux boots, direct register
327+ writes can be used to enable wakeup.
328+
329+ .. rubric :: Following commands set the wakeup EN bit, enable receive for pad in PADCONFIG register and can
330+ be used to enable wakeup from mcu_mcan0, mcu_mcan1, mcu_uart0 and wkup_uart0 pins respectively.
331+
332+ .. code-block :: console
333+
334+ root@<machine>:~# devmem2 0x4084038 0x20050000 # MCU_PADCONFIG14
335+ root@<machine>:~# devmem2 0x4084040 0x20050000 # MCU_PADCONFIG16
336+ root@<machine>:~# devmem2 0x4084014 0x20050000 # MCU_PADCONFIG5
337+ root@<machine>:~# devmem2 0x4084024 0x20050000 # MCU_PADCONFIG9
338+
339+ .. note ::
340+
341+ Atleast one of the wakeup sources listed above must be enabled to wakeup from I/O Only Plus DDR mode.
342+
343+ .. rubric :: To enter I/O Only Plus DDR mode, first disable wakeup from RTC, USB0 and USB1 as these wakeup
344+ sources are not supported for this mode.
345+
346+ .. ifconfig :: CONFIG_part_variant in ('AM62AX')
347+
348+ .. code-block :: console
349+
350+ root@am62axx-evm:~# echo disabled > /sys/class/rtc/rtc0/device/power/wakeup
351+ root@am62axx-evm:~# echo disabled > /sys/devices/platform/bus@f0000/f900000.dwc3-usb/power/wakeup
352+ root@am62axx-evm:~# echo disabled > /sys/devices/platform/bus@f0000/f910000.dwc3-usb/power/wakeup
353+
354+ .. ifconfig :: CONFIG_part_variant in ('AM62PX')
355+
356+ .. code-block :: console
357+
358+ root@am62pxx-evm:~# echo disabled > /sys/class/rtc/rtc0/device/power/wakeup
359+ root@am62pxx-evm:~# echo disabled > /sys/devices/platform/bus@f0000/f900000.usb/power/wakeup
360+ root@am62pxx-evm:~# echo disabled > /sys/devices/platform/bus@f0000/f910000.usb/power/wakeup
361+
362+ .. rubric :: Then, configure PMIC register bit to turn off only selected rails for this mode.
363+
364+ .. ifconfig :: CONFIG_part_variant in ('AM62AX')
365+
366+ .. code-block :: console
367+
368+ root@am62axx-evm:~# i2cset -f -y -m 0xFF -r -a 0 0x48 0x86 0x1
369+
370+ The register write has been done to enable PMIC to enter `PMIC S2R <https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.ti.com/lit/pdf/slvucm3&ved=2ahUKEwjknrL864-KAxVocGwGHdJZFPwQFnoECBgQAQ&usg=AOvVaw1y0evgQxxy9YOF7l5Wzaef >`_ .
371+
372+ .. ifconfig :: CONFIG_part_variant in ('AM62PX')
373+
374+ .. code-block :: console
375+
376+ root@am62pxx-evm:~# i2cset -f -y -m 0xFF -r -a 0 0x48 0x86 0x2
377+
378+ .. rubric :: Now, the SoC can be suspended using the following command:
379+
380+ .. code-block :: console
381+
382+ root@<machine>:~# echo mem > /sys/power/state
383+ [ 26.132900] PM: suspend entry (deep)
384+ [ 26.136759] Filesystems sync: 0.000 seconds
385+ [ 26.151748] Freezing user space processes
386+ [ 26.157256] Freezing user space processes completed (elapsed 0.001 seconds)
387+ [ 26.164239] OOM killer disabled.
388+ [ 26.167469] Freezing remaining freezable tasks
389+ [ 26.173168] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
390+ [ 26.180624] printk: Suspending console(s) (use no_console_suspend to debug)
391+
392+ This partially indicates that linux has finished it's I/O Only plus DDR sequence.
393+
394+ .. ifconfig :: CONFIG_part_variant in ('AM62AX')
395+
396+ For further confirmation, one can take a look at the on board LED LD2 on the SK
397+ (LED should turn off).
398+
399+ .. ifconfig :: CONFIG_part_variant in ('AM62PX')
400+
401+ For further confirmation, one can take a look at the on board LED LD1 on the SK
402+ (LED should turn off).
403+
404+ The system has entered I/O Only plus DDR and can be woken up either with an
405+ activity on the I/O pin programmed for wakeup or key press on wkup_uart0 (third serial port :file: `/dev/ttyUSB2 `) or
406+ mcu_uart0 (fourth serial port :file: `/dev/ttyUSB3 `).
407+
408+ .. note ::
409+
410+ The system will enter I/O Only plus DDR mode only if DM selects it based on existing constraints.
411+
293412***********
294413Limitations
295414***********
0 commit comments