Skip to content

Commit 249ebf3

Browse files
author
Bartosz Golaszewski
committed
power: sequencing: implement the pwrseq core
Implement the power sequencing subsystem allowing devices to share complex powering-up and down procedures. It's split into the consumer and provider parts but does not implement any new DT bindings so that the actual power sequencing is never revealed in the DT representation. Tested-by: Amit Pundir <[email protected]> Tested-by: Neil Armstrong <[email protected]> # on SM8550-QRD, SM8650-QRD & SM8650-HDK Tested-by: Caleb Connolly <[email protected]> # OnePlus 8T Acked-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 83a7eef commit 249ebf3

File tree

8 files changed

+1262
-0
lines changed

8 files changed

+1262
-0
lines changed

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17890,6 +17890,14 @@ F: include/linux/pm_*
1789017890
F: include/linux/powercap.h
1789117891
F: kernel/configs/nopm.config
1789217892

17893+
POWER SEQUENCING
17894+
M: Bartosz Golaszewski <[email protected]>
17895+
17896+
S: Maintained
17897+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git
17898+
F: drivers/power/sequencing/
17899+
F: include/linux/pwrseq/
17900+
1789317901
POWER STATE COORDINATION INTERFACE (PSCI)
1789417902
M: Mark Rutland <[email protected]>
1789517903
M: Lorenzo Pieralisi <[email protected]>

drivers/power/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
source "drivers/power/reset/Kconfig"
3+
source "drivers/power/sequencing/Kconfig"
34
source "drivers/power/supply/Kconfig"

drivers/power/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
obj-$(CONFIG_POWER_RESET) += reset/
3+
obj-$(CONFIG_POWER_SEQUENCING) += sequencing/
34
obj-$(CONFIG_POWER_SUPPLY) += supply/

drivers/power/sequencing/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
3+
menuconfig POWER_SEQUENCING
4+
tristate "Power Sequencing support"
5+
help
6+
Say Y here to enable the Power Sequencing subsystem.
7+
8+
This subsystem is designed to control power to devices that share
9+
complex resources and/or require specific power sequences to be run
10+
during power-up.
11+
12+
If unsure, say no.

drivers/power/sequencing/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
obj-$(CONFIG_POWER_SEQUENCING) += pwrseq-core.o
4+
pwrseq-core-y := core.o

0 commit comments

Comments
 (0)