devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] firmware: ti_sci: Partial-IO support
@ 2024-07-29  8:00 Markus Schneider-Pargmann
  2024-07-29  8:00 ` [PATCH v2 1/6] dt-bindings: ti, sci: Add property for partial-io-wakeup-sources Markus Schneider-Pargmann
                   ` (6 more replies)
  0 siblings, 7 replies; 34+ messages in thread
From: Markus Schneider-Pargmann @ 2024-07-29  8:00 UTC (permalink / raw)
  To: Nishanth Menon, Tero Kristo, Santosh Shilimkar, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Vignesh Raghavendra
  Cc: Vibhore Vardhan, Kevin Hilman, Dhruva Gole, linux-arm-kernel,
	devicetree, linux-kernel, Markus Schneider-Pargmann

Hi,

v2
--
In v2 I fixed the comments on the first version of this series and
rebased to v6.11-rc1. See below for a more detailed list.

I also dropped the omap serial series for Partial-IO as it can't be
tested with Partial-IO at the moment. The code was tested with other low
power modes but they will be upstreamed later on.

Series
------
Partial-IO is a poweroff SoC state with a few pingroups active for
wakeup. This state can be entered by sending a TI_SCI PREPARE_SLEEP
message.

The message is sent on poweroff if one of the potential wakeup sources
for this power state are wakeup enabled. A list of potential wakeup
sources for the specific SoC is described in the devicetree. The wakeup
sources can be individually enabled/disabled by the user in the running
system.

The series is based on v6.11-rc1.

Partial-IO
----------
This series is part of a bigger topic to support Partial-IO on am62,
am62a and am62p. Partial-IO is a poweroff state in which some pins are
able to wakeup the SoC. In detail MCU m_can and two serial port pins can
trigger the wakeup.
A documentation can also be found in section 6.2.4 in the TRM:
  https://www.ti.com/lit/pdf/spruiv7

This other series is relevant for the support of Partial-IO:

 - can: m_can: Add am62 wakeup support
   https://lore.kernel.org/lkml/20240729074135.3850634-1-msp@baylibre.com/
   https://gitlab.baylibre.com/msp8/linux/-/tree/topic/mcan-wakeup-source/v6.11?ref_type=heads

Testing
-------
A test branch is available here that includes all patches required to
test Partial-IO:

https://gitlab.baylibre.com/msp8/linux/-/tree/integration/am62-lp-sk-partialio/v6.11?ref_type=heads

After enabling Wake-on-LAN the system can be powered off and will enter
the Partial-IO state in which it can be woken up by activity on the
specific pins:
    ethtool -s can0 wol p
    ethtool -s can1 wol p
    poweroff

I tested these patches on am62-lp-sk.

Best,
Markus

Previous versions:
 v1: https://lore.kernel.org/lkml/20240523080225.1288617-1-msp@baylibre.com/

Changes in v2:
 - Rebase to v6.11-rc1
 - dt-binding:
    - Update commit message
    - Add more verbose description of the new binding for a better
      explanation.
 - ti_sci driver:
    - Combine ti_sci_do_send() into ti_sci_do_xfer and only wait on a
      response if a flag is set.
    - On failure to enter Partial-IO, do emergency_restart()
    - Add comments
    - Fix small things

Markus Schneider-Pargmann (5):
  dt-bindings: ti, sci: Add property for partial-io-wakeup-sources
  firmware: ti_sci: Partial-IO support
  arm64: dts: ti: k3-pinctrl: Add WKUP_EN flag
  arm64: dts: ti: k3-am62: Add partial-io wakeup sources
  arm64: dts: ti: k3-am62a: Add partial-io wakeup sources

Vibhore Vardhan (1):
  arm64: dts: ti: k3-am62p: Add partial-io wakeup sources

 .../bindings/arm/keystone/ti,sci.yaml         |  13 ++
 arch/arm64/boot/dts/ti/k3-am62.dtsi           |   4 +
 arch/arm64/boot/dts/ti/k3-am62a.dtsi          |   4 +
 arch/arm64/boot/dts/ti/k3-am62p.dtsi          |   4 +
 arch/arm64/boot/dts/ti/k3-pinctrl.h           |   3 +
 drivers/firmware/ti_sci.c                     | 160 +++++++++++++++---
 drivers/firmware/ti_sci.h                     |  34 ++++
 7 files changed, 203 insertions(+), 19 deletions(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2024-09-28 12:13 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-29  8:00 [PATCH v2 0/6] firmware: ti_sci: Partial-IO support Markus Schneider-Pargmann
2024-07-29  8:00 ` [PATCH v2 1/6] dt-bindings: ti, sci: Add property for partial-io-wakeup-sources Markus Schneider-Pargmann
2024-08-06  6:18   ` Krzysztof Kozlowski
2024-08-06  7:11     ` Markus Schneider-Pargmann
2024-08-06  8:03       ` Krzysztof Kozlowski
2024-09-05  9:08         ` Markus Schneider-Pargmann
2024-09-05  9:15           ` Krzysztof Kozlowski
2024-09-05  9:25             ` Krzysztof Kozlowski
2024-09-05  9:49               ` Markus Schneider-Pargmann
2024-09-05 10:41                 ` Krzysztof Kozlowski
2024-09-05 11:17                   ` Markus Schneider-Pargmann
2024-09-05 11:41                     ` Krzysztof Kozlowski
2024-09-27  9:35                       ` Markus Schneider-Pargmann
2024-09-28 12:13                         ` Krzysztof Kozlowski
2024-07-29  8:00 ` [PATCH v2 2/6] firmware: ti_sci: Partial-IO support Markus Schneider-Pargmann
2024-07-30 12:28   ` Nishanth Menon
2024-07-30 13:01     ` Markus Schneider-Pargmann
2024-07-30 15:07       ` Nishanth Menon
2024-07-31 12:36         ` Markus Schneider-Pargmann
2024-07-31 13:01           ` Nishanth Menon
2024-07-30 15:12   ` Andrew Davis
2024-07-30 15:22     ` Nishanth Menon
2024-08-06  6:26   ` Krzysztof Kozlowski
2024-08-06  7:19     ` Markus Schneider-Pargmann
2024-08-06  8:50       ` Krzysztof Kozlowski
2024-07-29  8:00 ` [PATCH v2 3/6] arm64: dts: ti: k3-pinctrl: Add WKUP_EN flag Markus Schneider-Pargmann
2024-07-30 12:09   ` Nishanth Menon
2024-07-30 12:32     ` Markus Schneider-Pargmann
2024-07-30 12:37       ` Nishanth Menon
2024-08-06  6:28       ` Krzysztof Kozlowski
2024-07-29  8:00 ` [PATCH v2 4/6] arm64: dts: ti: k3-am62: Add partial-io wakeup sources Markus Schneider-Pargmann
2024-07-29  8:01 ` [PATCH v2 5/6] arm64: dts: ti: k3-am62a: " Markus Schneider-Pargmann
2024-07-29  8:01 ` [PATCH v2 6/6] arm64: dts: ti: k3-am62p: " Markus Schneider-Pargmann
2024-08-06  6:18 ` [PATCH v2 0/6] firmware: ti_sci: Partial-IO support Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).