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]>
@@ -511,26 +511,27 @@ I/O Power Management and Daisy Chaining section in the TRM.
511
511
512
512
.. note::
513
513
514
-
|__PART_FAMILY_DEVICE_NAMES__| supports the ability to wakeup using pad based wake event ONLY in Deep Sleep or MCU Only Mode.
515
-
During active system usage, even if the wake_enable bit is set the system will be unresponsive to any wakeup
516
-
activity on that pad.
517
-
518
-
To demonstrate I/O daisy chain wakeup as part of |__PART_FAMILY_DEVICE_NAMES__| offering, two reference examples are provided:
519
-
520
-
#. main_uart0 is used where a key press on the Linux console can wakeup the system.
521
-
#. main_gpio is used where activity on configured GPIO pin can wakeup the system.
514
+
|__PART_FAMILY_DEVICE_NAMES__| supports the ability to wakeup using pad
515
+
based wake event ONLY in Deep Sleep or MCU Only Mode. During active
516
+
system usage, even if the wake_enable bit is set the system will be
517
+
unresponsive to any wakeup activity on that pad.
522
518
523
519
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
524
520
525
521
.. note::
526
522
527
-
|__PART_FAMILY_DEVICE_NAMES__| supports the ability to wakeup using pad based wake event ONLY in Deep Sleep.
528
-
During active system usage, even if the wake_enable bit is set the system will be unresponsive to any wakeup
523
+
|__PART_FAMILY_DEVICE_NAMES__| supports the ability to wakeup using pad
524
+
based wake event ONLY in Deep Sleep. During active system usage, even if
525
+
the wake_enable bit is set the system will be unresponsive to any wakeup
529
526
activity on that pad.
530
527
531
-
To demonstrate I/O daisy chain wakeup as part of |__PART_FAMILY_DEVICE_NAMES__| offering, a reference example is provided:
528
+
To demonstrate I/O daisy chain wakeup as part of |__PART_FAMILY_DEVICE_NAMES__|
529
+
offering, two reference examples are provided:
532
530
533
-
#. main_uart0 is used where a key press on the Linux console can wakeup the system.
531
+
#. main_uart0 is used where a key press on the Linux console can wakeup the
532
+
system.
533
+
#. main_gpio is used where activity on configured GPIO pin can wakeup the
534
+
system.
534
535
535
536
536
537
Main UART
@@ -709,36 +710,32 @@ Any UART can be chosen according to application requirements.
709
710
Main GPIO
710
711
=========
711
712
712
-
.. ifconfig:: CONFIG_part_variant in ('AM62LX')
713
-
714
-
Main GPIO wakeup is not yet supported on AM62LX.
713
+
Configuring Main GPIO as an I/O daisy chain wakeup source requires a
714
+
combination of gpio-keys with chained IRQ in the pinctrl driver. To briefly
715
+
explain, setting the 29th bit in the desired padconfig register, allows the
716
+
pad to act as a wakeup source by triggering a wake IRQ in Deep Sleep states.
715
717
716
718
.. ifconfig:: CONFIG_part_variant in ('AM62X', 'AM62AX', 'AM62PX')
717
719
718
-
Configuring Main GPIO as an I/O daisy chain wakeup source requires a
719
-
combination of gpio-keys with chained IRQ in the pinctrl driver. To briefly
720
-
explain, setting the 29th bit in the desired padconfig register, allows the
721
-
pad to act as a wakeup source by triggering a wake IRQ to the DM R5 in Deep
722
-
Sleep states.
723
-
724
720
The reference configuration for Main GPIO wakeup can be found under
725
-
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