Linux Serial subsystem development
 help / color / mirror / Atom feed
From: Kendall Willis <k-willis@ti.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Vignesh Raghavendra <vigneshr@ti.com>
Cc: <linux-kernel@vger.kernel.org>, <linux-serial@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <d-gole@ti.com>, <vishalm@ti.com>,
	<sebin.francis@ti.com>, <msp@baylibre.com>,
	<khilman@baylibre.com>, <a-kaur@ti.com>,
	<andriy.shevchenko@linux.intel.com>, <yujiaoliang@vivo.com>,
	<b-liu@ti.com>, <u.kleine-koenig@baylibre.com>,
	Kendall Willis <k-willis@ti.com>
Subject: [PATCH v2 0/2] serial: 8250: omap: Add wakeup support
Date: Wed, 10 Sep 2025 16:23:30 -0500	[thread overview]
Message-ID: <20250910-uart-daisy-chain-8250-omap-v2-0-e90d44c1a9ac@ti.com> (raw)

This series adds wakeup support for the serial 8250_omap driver. On the
TI K3 AM62 family of devices, the UARTs are able to wakeup the system
from various low power modes by using I/O daisy-chaining.

The wakeup functionality is implemented by adding the pinctrl state
'wakeup' in which specific flags are set on the pins to enable wakeup
via I/O daisy-chain. If the 'wakeup' pinctrl state exists for the serial
device, the 'wakeup' pinctrl state is selected on suspend. Upon resume,
the pinctrl 'default' state is selected.

The commits "dt-bindings: serial: 8250_omap: Add wakeup pinctrl state"
and "serial: 8250: omap: Support wakeup pinctrl state on suspend" were
picked from this series [1]. The commit "dt-bindings: serial: 8250_omap:
Add wakeup pinctrl state" was updated to follow the structure of a
similar patch [2] by Markus for the m_can driver. The commit "serial:
8250: omap: Support wakeup pinctrl state on suspend" was updated to only
include s2ram functionality instead of a poweroff state.

Implementation
--------------
This series is intended to be implemented along with the following
series. This patch has no dependencies on any of the other series:

1. "pmdomain: ti_sci: Handle wakeup constraint if device has pinctrl
   wakeup state" [3]: Patch which skips setting constraints for wakeup
   sources that use pinctrl state 'wakeup'.

2. "serial: 8250: omap: Add wakeup support" (this series): Implements
   wakeup from the UARTs for TI K3 SoCs

3. "arm64: dts: ti: k3-am62: Support Main UART wakeup" [4]: Implements
   the functionality to wakeup the system from the Main UART

Testing
-------
Tested on a AM62P SK EVM board with all series and dependencies
implemented. Suspend/resume verified with the Main UART wakeup source
by entering a keypress on the console.

This github branch [5] has all the necessary patches to test the series
using linux-next.

Links
-----
[1] https://lore.kernel.org/all/20240523075819.1285554-1-msp@baylibre.com/
[2] https://lore.kernel.org/all/20250820-topic-mcan-wakeup-source-v6-12-v9-1-0ac13f2ddd67@baylibre.com/
[3] https://github.com/kwillis01/linux/tree/b4/uart-daisy-chain-pmdomain
[4] https://github.com/kwillis01/linux/tree/b4/uart-daisy-chain-dts
[5] https://github.com/kwillis01/linux/tree/uart-daisy-chain

Previous Versions
-----------------
v1: https://lore.kernel.org/all/20250904212455.3729029-1-k-willis@ti.com/

Changes from v1 to v2:
 - Drop patch for updated wakeup-source binding
 - Update dt binding for pinctrl to only use either default or sleep
   states and change commit message to reflect the change

base-commit: 4ac65880ebca1b68495bd8704263b26c050ac010
---
Markus Schneider-Pargmann (2):
      dt-bindings: serial: 8250_omap: Add wakeup pinctrl state
      serial: 8250: omap: Support wakeup pinctrl state on suspend

 .../devicetree/bindings/serial/8250_omap.yaml      | 16 ++++++++++
 drivers/tty/serial/8250/8250_omap.c                | 36 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)
---
base-commit: 5f540c4aade9f1d58fb7b9490b4b7d5214ec9746
change-id: 20250910-uart-daisy-chain-8250-omap-3649ec6a7155

Best regards,
-- 
Kendall Willis <k-willis@ti.com>


             reply	other threads:[~2025-09-10 21:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-10 21:23 Kendall Willis [this message]
2025-09-10 21:23 ` [PATCH v2 1/2] dt-bindings: serial: 8250_omap: Add wakeup pinctrl state Kendall Willis
2025-09-15  0:26   ` Rob Herring (Arm)
2025-09-15  5:21   ` Dhruva Gole
2025-09-10 21:23 ` [PATCH v2 2/2] serial: 8250: omap: Support wakeup pinctrl state on suspend Kendall Willis
2025-09-15  5:33   ` Dhruva Gole

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250910-uart-daisy-chain-8250-omap-v2-0-e90d44c1a9ac@ti.com \
    --to=k-willis@ti.com \
    --cc=a-kaur@ti.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=b-liu@ti.com \
    --cc=conor+dt@kernel.org \
    --cc=d-gole@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=khilman@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=msp@baylibre.com \
    --cc=robh@kernel.org \
    --cc=sebin.francis@ti.com \
    --cc=u.kleine-koenig@baylibre.com \
    --cc=vigneshr@ti.com \
    --cc=vishalm@ti.com \
    --cc=yujiaoliang@vivo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox