public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] firmware: ti_sci: Partial-IO support
@ 2024-05-23  8:02 Markus Schneider-Pargmann
  2024-05-23  8:02 ` [PATCH 1/6] dt-bindings: ti, sci: Add property for partial-io-wakeup-sources Markus Schneider-Pargmann
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Markus Schneider-Pargmann @ 2024-05-23  8:02 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,

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 Andrew Davis accepted patches:
  [PATCH 0/4] Unconditionally register TI-SCI reset handler
  https://lore.kernel.org/lkml/20240326223730.54639-1-afd@ti.com/

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.

These two other series are relevant for the support of Partial-IO:

 - serial: 8250: omap: Add am62 wakeup support
 - can: m_can: Add am62 wakeup support

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.9?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

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         |   6 +
 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                     | 135 +++++++++++++++++-
 drivers/firmware/ti_sci.h                     |  31 ++++
 7 files changed, 186 insertions(+), 1 deletion(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-05-27 19:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-23  8:02 [PATCH 0/6] firmware: ti_sci: Partial-IO support Markus Schneider-Pargmann
2024-05-23  8:02 ` [PATCH 1/6] dt-bindings: ti, sci: Add property for partial-io-wakeup-sources Markus Schneider-Pargmann
2024-05-24  0:43   ` Nishanth Menon
2024-05-27 19:07   ` Krzysztof Kozlowski
2024-05-23  8:02 ` [PATCH 2/6] firmware: ti_sci: Partial-IO support Markus Schneider-Pargmann
2024-05-24  5:46   ` Nishanth Menon
2024-05-23  8:02 ` [PATCH 3/6] arm64: dts: ti: k3-pinctrl: Add WKUP_EN flag Markus Schneider-Pargmann
2024-05-24  5:58   ` Nishanth Menon
2024-05-23  8:02 ` [PATCH 4/6] arm64: dts: ti: k3-am62: Add partial-io wakeup sources Markus Schneider-Pargmann
2024-05-23  8:02 ` [PATCH 5/6] arm64: dts: ti: k3-am62a: " Markus Schneider-Pargmann
2024-05-23  8:02 ` [PATCH 6/6] arm64: dts: ti: k3-am62p: " Markus Schneider-Pargmann
2024-05-24  5:54   ` Nishanth Menon
2024-05-27  8:48     ` Dhruva Gole
2024-05-24  5:53 ` [PATCH 0/6] firmware: ti_sci: Partial-IO support Nishanth Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox