From 47730aeda97b436dde590048cc42c93575a466ba Mon Sep 17 00:00:00 2001 From: Kendall Willis Date: Wed, 11 Dec 2024 14:47:00 -0600 Subject: [PATCH] docs(linux): Power_Management: Fix MCU GPIO wakeup pin The MCU GPIO wakeup pin was incorrect in the documentation. Updated to specify the correct pin. Signed-off-by: Kendall Willis --- .../Power_Management/pm_wakeup_sources.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/linux/Foundational_Components/Power_Management/pm_wakeup_sources.rst b/source/linux/Foundational_Components/Power_Management/pm_wakeup_sources.rst index 4453fc29..859ed34c 100644 --- a/source/linux/Foundational_Components/Power_Management/pm_wakeup_sources.rst +++ b/source/linux/Foundational_Components/Power_Management/pm_wakeup_sources.rst @@ -204,7 +204,7 @@ Setup the interrupt parent and interrupt as MCU_GPIO0, .. code-block:: dts interrupt-parent = <&mcu_gpio0>; - interrupts = <16 IRQ_TYPE_EDGE_RISING>; + interrupts = <4 IRQ_TYPE_EDGE_RISING>; Now, under the switch node we add the following: @@ -213,7 +213,7 @@ Now, under the switch node we add the following: switch { label = "MCUGPIO"; linux,code = <143>; - gpios = <&mcu_gpio0 16 GPIO_ACTIVE_LOW>; + gpios = <&mcu_gpio0 4 GPIO_ACTIVE_LOW>; wakeup-source; }; @@ -222,7 +222,7 @@ Now, under the switch node we add the following: .. code-block:: console root@:~# cat /proc/interrupts | grep "MCUGPIO" - 262: 0 0 0 0 GPIO 16 Edge -davinci_gpio MCUGPIO + 273: 0 0 0 0 GPIO 4 Edge -davinci_gpio MCUGPIO #. linux,code: Keycode to emit. #. gpios: the gpio required to be used as the gpio-key. @@ -242,8 +242,8 @@ MCU GPIO wakeup can only be tested when overlay is loaded. Please refer to :ref:`How to enable DT overlays` for more details. Once the system has entered Deep Sleep or MCU Only mode as shown in the -:ref:`LPM section`, wakeup from MCU GPIO0_16 can be triggered -by grounding Pin 11 on J8 MCU Header. +:ref:`LPM section`, wakeup from MCU_SPI0_D1 can be triggered +by grounding Pin 4 on J8 MCU Header. ******************** Main I/O Daisy Chain