Skip to content

DNM: psci-mfd driver for review#389

Open
quicAspratap wants to merge 3 commits intoqualcomm-linux:mainfrom
quicAspratap:psci
Open

DNM: psci-mfd driver for review#389
quicAspratap wants to merge 3 commits intoqualcomm-linux:mainfrom
quicAspratap:psci

Conversation

@quicAspratap
Copy link
Copy Markdown

Creating this pull request just for review of changes. This is DNM.

Shivendra Pratap added 3 commits March 27, 2026 19:56
PSCI supports different types of resets like COLD reset, ARCH WARM
reset, vendor-specific resets. Currently there is no common driver that
handles all supported psci resets at one place. Additionally, there is
no common mechanism to issue the supported psci resets from userspace.

Add a PSCI reboot mode driver and define two types of PSCI resets in the
driver as reboot-modes: predefined resets controlled by Linux
reboot_mode and customizable resets defined by SoC vendors in their
device tree under the psci:reboot-mode node.

Register the driver with the reboot-mode framework to interface these
resets to userspace. When userspace initiates a supported command, pass
the reset arguments to the PSCI driver to enable command-based reset.

This change allows userspace to issue supported PSCI reset commands
using the standard reboot system calls while enabling SoC vendors to
define their specific resets for PSCI.

Signed-off-by: Shivendra Pratap <shivendra.pratap@oss.qualcomm.com>
Add a new PSCI MFD driver that binds to arm,psci-1.0 and registers
cpuidle-psci-domain as a child cell. Since cpuidle-psci-domain
now probes without its own of_node, use the parent PSCI of_node
to traverse the power domain.

Signed-off-by: Shivendra Pratap <shivendra.pratap@oss.qualcomm.com>
Add a psci-reboot-mode cell to the psci-mfd driver and bind the
psci:reboot-mode node to it.

Signed-off-by: Shivendra Pratap <shivendra.pratap@oss.qualcomm.com>
@quicAspratap quicAspratap requested a review from brgl March 27, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant