You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(pm_wakeup_sources): Add Main GPIO wakeup source for AM62L
Add the Main GPIO wakeup example for AM62L. Since this wakeup source is
enabled in the AM62L device tree by default, use the example that is
configured for AM62L. Move the AM62X/A/P specific example into an
ifconfig.
Signed-off-by: Kendall Willis <[email protected]>
@@ -509,26 +509,27 @@ I/O Power Management and Daisy Chaining section in the TRM.
509
509
510
510
.. note::
511
511
512
-
|__PART_FAMILY_DEVICE_NAMES__| supports the ability to wakeup using pad based wake event ONLY in Deep Sleep or MCU Only Mode.
513
-
During active system usage, even if the wake_enable bit is set the system will be unresponsive to any wakeup
514
-
activity on that pad.
515
-
516
-
To demonstrate I/O daisy chain wakeup as part of |__PART_FAMILY_DEVICE_NAMES__| offering, two reference examples are provided:
517
-
518
-
#. main_uart0 is used where a key press on the Linux console can wakeup the system.
519
-
#. main_gpio is used where activity on configured GPIO pin can wakeup the system.
512
+
|__PART_FAMILY_DEVICE_NAMES__| supports the ability to wakeup using pad
513
+
based wake event ONLY in Deep Sleep or MCU Only Mode. During active
514
+
system usage, even if the wake_enable bit is set the system will be
515
+
unresponsive to any wakeup activity on that pad.
520
516
521
517
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
522
518
523
519
.. note::
524
520
525
-
|__PART_FAMILY_DEVICE_NAMES__| supports the ability to wakeup using pad based wake event ONLY in Deep Sleep.
526
-
During active system usage, even if the wake_enable bit is set the system will be unresponsive to any wakeup
521
+
|__PART_FAMILY_DEVICE_NAMES__| supports the ability to wakeup using pad
522
+
based wake event ONLY in Deep Sleep. During active system usage, even if
523
+
the wake_enable bit is set the system will be unresponsive to any wakeup
527
524
activity on that pad.
528
525
529
-
To demonstrate I/O daisy chain wakeup as part of |__PART_FAMILY_DEVICE_NAMES__| offering, a reference example is provided:
526
+
To demonstrate I/O daisy chain wakeup as part of |__PART_FAMILY_DEVICE_NAMES__|
527
+
offering, two reference examples are provided:
530
528
531
-
#. main_uart0 is used where a key press on the Linux console can wakeup the system.
529
+
#. main_uart0 is used where a key press on the Linux console can wakeup the
530
+
system.
531
+
#. main_gpio is used where activity on configured GPIO pin can wakeup the
532
+
system.
532
533
533
534
534
535
Main UART
@@ -707,36 +708,32 @@ Any UART can be chosen according to application requirements.
707
708
Main GPIO
708
709
=========
709
710
710
-
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
711
-
712
-
Main GPIO wakeup is not yet supported on AM62LX.
711
+
Configuring Main GPIO as an I/O daisy chain wakeup source requires a
712
+
combination of gpio-keys with chained IRQ in the pinctrl driver. To briefly
713
+
explain, setting the 29th bit in the desired padconfig register, allows the
714
+
pad to act as a wakeup source by triggering a wake IRQ in Deep Sleep states.
713
715
714
716
.. ifconfig:: CONFIG_part_variant in ('AM62X', 'AM62AX', 'AM62PX')
715
717
716
-
Configuring Main GPIO as an I/O daisy chain wakeup source requires a
717
-
combination of gpio-keys with chained IRQ in the pinctrl driver. To briefly
718
-
explain, setting the 29th bit in the desired padconfig register, allows the
719
-
pad to act as a wakeup source by triggering a wake IRQ to the DM R5 in Deep
720
-
Sleep states.
721
-
722
718
The reference configuration for Main GPIO wakeup can be found under
723
-
gpio_key node in `k3-am62x-sk-lpm-wkup-sources.dtso <https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/arch/arm64/boot/dts/ti/k3-am62x-sk-lpm-wkup-sources.dtso?h=11.01.05#n21>`__
0 commit comments