From: Kendall Willis <k-willis@ti.com>
To: Rob Herring <robh@kernel.org>
Cc: <gregkh@linuxfoundation.org>, <jirislaby@kernel.org>,
<krzk+dt@kernel.org>, <conor+dt@kernel.org>, <vigneshr@ti.com>,
<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>,
<john.ogness@linutronix.de>, <andriy.shevchenko@linux.intel.com>,
<yujiaoliang@vivo.com>, <b-liu@ti.com>,
<u.kleine-koenig@baylibre.com>
Subject: Re: [PATCH 2/3] dt-bindings: serial: 8250_omap: Add wakeup pinctrl state
Date: Tue, 9 Sep 2025 16:26:49 -0500 [thread overview]
Message-ID: <c2fad6ac-d296-4155-b101-bd82defd2e6d@ti.com> (raw)
In-Reply-To: <20250905204148.GA1313142-robh@kernel.org>
Hi Rob,
On 9/5/25 15:41, Rob Herring wrote:
> On Thu, Sep 04, 2025 at 04:24:54PM -0500, Kendall Willis wrote:
>> From: Markus Schneider-Pargmann <msp@baylibre.com>
>>
>> Pins associated with the 8250 omap unit can be the source of a wakeup in
>> deep sleep states. To be able to wakeup, these pins have to be
>> configured in a special way. To support this configuration add the
>> default and wakeup pinctrl states. Add support for the sleep state as
>> well which is in use by some devicetrees.
>>
>> Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
>> Signed-off-by: Kendall Willis <k-willis@ti.com>
>> ---
>> .../devicetree/bindings/serial/8250_omap.yaml | 17 +++++++++++++++++
>> 1 file changed, 17 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/serial/8250_omap.yaml b/Documentation/devicetree/bindings/serial/8250_omap.yaml
>> index 851a5291b4be4..1c4040a9f9d0b 100644
>> --- a/Documentation/devicetree/bindings/serial/8250_omap.yaml
>> +++ b/Documentation/devicetree/bindings/serial/8250_omap.yaml
>> @@ -77,6 +77,23 @@ properties:
>> description:
>> List of phandles to system idle states in which UARTs can wakeup the system.
>>
>> + pinctrl-0:
>> + description: Default pinctrl state
>> +
>> + pinctrl-1:
>> + description: Can be "sleep" or "wakeup" pinctrl state
>> +
>> + pinctrl-names:
>> + description:
>> + When present should contain at least "default" describing the default pin
>> + states. Other states are "sleep" which describes the pinstate when
>> + sleeping and "wakeup" describing the pins if wakeup is enabled.
>> + minItems: 1
>> + items:
>> + - const: default
>> + - const: sleep
>> + - const: wakeup
>
> This doesn't match what 'pinctrl-1' says. Perhaps you want?:
>
> items:
> - const: default
> - enum: [ sleep, wakeup ]
That is my mistake, I should have added another pinctrl-2 which could be
either "sleep" or "wakeup" state. This would mean that all three states
could be present at the same time so it should stay as separate items.
The thought process for the availability of all three states is that if
the UART is not wakeup capable, it could use the sleep state when
suspending.
However, the serial 8250 omap driver does not use the sleep pinctrl
state as of now, so for the next version I think I will remove the sleep
state since it is not necessary/used as of this moment.
Thanks for reviewing!
Best,
Kendall
>
>> +
>> required:
>> - compatible
>> - reg
>> --
>> 2.34.1
>>
next prev parent reply other threads:[~2025-09-09 21:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-04 21:24 [PATCH 0/3] serial: 8250: omap: Add wakeup support Kendall Willis
2025-09-04 21:24 ` [PATCH 1/3] dt-bindings: serial: 8250_omap: Update wakeup-source type property Kendall Willis
2025-09-05 18:38 ` Conor Dooley
2025-09-05 18:48 ` Dhruva Gole
2025-09-09 9:05 ` Markus Schneider-Pargmann
2025-09-09 18:59 ` Kendall Willis
2025-09-05 20:38 ` Rob Herring
2025-09-09 19:00 ` Kendall Willis
2025-09-04 21:24 ` [PATCH 2/3] dt-bindings: serial: 8250_omap: Add wakeup pinctrl state Kendall Willis
2025-09-05 20:41 ` Rob Herring
2025-09-09 21:26 ` Kendall Willis [this message]
2025-09-04 21:24 ` [PATCH 3/3] serial: 8250: omap: Support wakeup pinctrl state on suspend Kendall Willis
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=c2fad6ac-d296-4155-b101-bd82defd2e6d@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=john.ogness@linutronix.de \
--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