@@ -274,9 +274,9 @@ MCU GPIO
274274
275275One of the most common ways to wakeup a system is by using some I/O activity. MCU GPIOs allow us to do this
276276by configuring the MCU GPIO controller as a wakeup source.
277- In ideal scenarios, The firmware running on MCU core is responsible for configuring MCU GPIO's as a wakeup source.
277+ In ideal scenarios, the firmware running on MCU core is responsible for configuring MCU GPIO's as a wakeup source.
278278However, if the application design doesn't rely too much on the MCU firmware then
279- linux can be used to configure the MCU GPIOs as a wakeup source. You can refer to the mcu_gpio_key node in
279+ Linux can be used to configure the MCU GPIOs as a wakeup source. You can refer to the mcu_gpio_key node in
280280`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=10.00.07 >`__
281281and use it as a template to configure the MCU GPIO of your choice as a wakeup capable GPIO.
282282
@@ -352,16 +352,16 @@ Main UART, GPIO, I2C, etc. The question then arises how to wakeup the SoC from p
352352to these controllers (for example main UART)? Here's where the role of I/O Daisy Chaining comes in.
353353At the hardware level, all the pads in an SoC have to be pinmuxed to dedicated controllers like UART or GPIO.
354354
355- For example, If a key press on Main UART (which is used for linux console logs)
356- were to wakeup the system from deep sleep then simply configuring the Main UART controller as a
355+ For example, If a key press on Main UART (which is used for Linux console logs)
356+ were to wakeup the system from Deep Sleep then simply configuring the Main UART controller as a
357357wakeup source wouldn't suffice. This is because the UART controller is powered off and wouldn't be able to
358358register any key press as such. However, at the "pad" level we are still connected, and the pads have
359359a specific way to be configured as wakeup sources.
360360
361361For detailed information and sequence please refer to
362362I/O Power Management and Daisy Chaining section in the TRM. To briefly explain,
363- Setting the 29th Bit in the desired padconfig register, allows the pad to act as a wakeup source by
364- triggering a wake irq to the DM R5 in deep sleep states.
363+ setting the 29th bit in the desired padconfig register, allows the pad to act as a wakeup source by
364+ triggering a wake irq to the DM R5 in Deep Sleep states.
365365
366366.. note ::
367367 |__PART_FAMILY_DEVICE_NAMES__ | supports the ability to wakeup using pad based wake event ONLY in Deep Sleep or MCU Only Mode.
@@ -371,7 +371,7 @@ triggering a wake irq to the DM R5 in deep sleep states.
371371
372372To demonstrate I/O daisy chain wakeup as part of |__PART_FAMILY_DEVICE_NAMES__ | offering, two reference examples are provided:
373373
374- #. main_uart0 is used where a key press on the linux console can wakeup the system.
374+ #. main_uart0 is used where a key press on the Linux console can wakeup the system.
375375#. main_gpio is used where activity on configured GPIO pin can wakeup the system.
376376
377377
@@ -388,7 +388,7 @@ main_uart0 node in `k3-am62x-sk-common.dtsi <https://git.ti.com/cgit/ti-linux-ke
388388 interrupt-names = "irq", "wakeup";
389389
390390 Here, we chain the IRQ to the pinctrl driver using the second interrupts-extended entry.
391- The wake IRQ framework in linux works in such a way that the second entry gets marked as a
391+ The wake IRQ framework in Linux works in such a way that the second entry gets marked as a
392392wakeup source, and then the pinctrl driver is informed that the pad 0x1c8 in this case is to
393393be configured as a wakeup pad when system enters deep sleep.
394394
@@ -427,7 +427,7 @@ Then, run this script:
427427
428428
429429 This will configure UART to act as deep sleep wakeup source, and
430- then a *key press * on same terminal should trigger a wakeup from deep sleep .
430+ then a *key press * on same terminal should trigger a wakeup from Deep Sleep .
431431
432432Any other pad can be chosen as per application requirements depending on which pad is required
433433to wakeup the system.
@@ -516,7 +516,7 @@ Plug in a USB device to one of the port on the board and check that the device i
516516 Follow the steps described in :ref: `LPM section<lpm_modes> ` to put the system in Low Power Mode via Deep Sleep or MCU only method.
517517
518518Once the system is suspended, disconnect the USB device from the board and this should wakeup the system.
519- And device would not show up in list of USB enumerated devices. This can be verified by executing
519+ The device will not show up in list of USB enumerated devices. This can be verified by executing
520520
521521.. code-block :: console
522522
@@ -541,13 +541,13 @@ It should show "suspended", indicating that the keyboard has entered into suspen
541541
542542.. code-block :: console
543543
544- # cat /sys/bus/usb/devices/1-1/power/runtime_status
544+ # cat /sys/bus/usb/devices/1-1/power/runtime_status
545545
546546 Now press a key on the keyboard and check the runtime power status and it would come back to "active".
547547
548548.. code-block :: console
549549
550- # cat /sys/bus/usb/devices/1-1/power/runtime_status
550+ # cat /sys/bus/usb/devices/1-1/power/runtime_status
551551
552552 Follow the steps described in :ref: `LPM section<lpm_modes> ` to put the system in Low Power Mode via Deep Sleep or MCU only method.
553553
@@ -556,7 +556,7 @@ And USB keyboard would still be present in the system's list of USB enumerated d
556556
557557.. code-block :: console
558558
559- # lsusb -t
559+ # lsusb -t
560560
561561 Device Mode Wakeup Events
562562=========================
@@ -568,17 +568,17 @@ Load a USB gadget driver such as g_zero
568568
569569.. code-block :: console
570570
571- # modprobe g_zero
571+ # modprobe g_zero
572572
573573 Follow the steps described in :ref: `LPM section<lpm_modes> ` to put the system in Low Power Mode via Deep Sleep or MCU only method.
574574
575575Once the system has entered the suspend state, plug a cable from a different Host system to the board's USB DRP port.
576- This should wakeup the system and gadget would be enumerated on the Host. Enumeration of the gadget on the Host system can be verified by executing the
576+ This should wakeup the system and gadget will be enumerated on the Host. Enumeration of the gadget on the Host system can be verified by executing the
577577below command on the Host system
578578
579579.. code-block :: console
580580
581- HOST:~$ > lsusb -t
581+ HOST:~$ lsusb -t
582582
583583
584584********************
0 commit comments