Skip to content

Commit 842ca52

Browse files
committed
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 <[email protected]>
1 parent 77512a6 commit 842ca52

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

source/linux/Foundational_Components/Power_Management/pm_wakeup_sources.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -301,26 +301,26 @@ Setup the interrupt parent and interrupt as MCU_GPIO0,
301301

302302
.. code-block:: dts
303303
304-
interrupt-parent = <&mcu_gpio0>;
305-
interrupts = <16 IRQ_TYPE_EDGE_RISING>;
304+
interrupt-parent = <&mcu_gpio0>;
305+
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
306306
307307
Now, under the switch node we add the following:
308308

309309
.. code-block:: dts
310310
311-
switch {
312-
label = "MCUGPIO";
313-
linux,code = <143>;
314-
gpios = <&mcu_gpio0 16 GPIO_ACTIVE_LOW>;
315-
wakeup-source;
316-
};
311+
switch {
312+
label = "MCUGPIO";
313+
linux,code = <143>;
314+
gpios = <&mcu_gpio0 4 GPIO_ACTIVE_LOW>;
315+
wakeup-source;
316+
};
317317
318318
#. The label is the descriptive name of the key. The string will reflect under /proc/interrupts as:
319319

320320
.. code-block:: console
321321
322-
root@<machine>:~# cat /proc/interrupts | grep "MCUGPIO"
323-
262: 0 0 0 0 GPIO 16 Edge -davinci_gpio MCUGPIO
322+
root@<machine>:~# cat /proc/interrupts | grep "MCUGPIO"
323+
273: 0 0 0 0 GPIO 4 Edge -davinci_gpio MCUGPIO
324324
325325
#. linux,code: Keycode to emit.
326326
#. gpios: the gpio required to be used as the gpio-key.
@@ -340,8 +340,8 @@ MCU GPIO wakeup can only be tested when
340340
overlay is loaded. Please refer to :ref:`How to enable DT overlays<howto_dt_overlays>` for more details.
341341

342342
Once the system has entered Deep Sleep or MCU Only mode as shown in the
343-
:ref:`LPM section<lpm_modes>`, wakeup from MCU GPIO0_16 can be triggered
344-
by grounding Pin 11 on J8 MCU Header.
343+
:ref:`LPM section<lpm_modes>`, wakeup from MCU_SPI0_D1 can be triggered
344+
by grounding Pin 4 on J8 MCU Header.
345345

346346
********************
347347
Main I/O Daisy Chain

0 commit comments

Comments
 (0)