Commit 08b9a94e authored by Walker Chen's avatar Walker Chen Committed by Conor Dooley
Browse files

soc: starfive: Add StarFive JH71XX pmu driver



Add pmu driver for the StarFive JH71XX SoC.

As the power domains provider, the Power Management Unit (PMU) is
designed for including multiple PM domains that can be used for power
gating of selected IP blocks for power saving by reduced leakage
current. It accepts software encourage command to switch the power mode
of SoC.

Signed-off-by: default avatarWalker Chen <walker.chen@starfivetech.com>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Reviewed-by: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
parent 1fc7606d
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -19905,6 +19905,19 @@ F: Documentation/devicetree/bindings/reset/starfive,jh7100-reset.yaml
F:	drivers/reset/reset-starfive-jh7100.c
F:	include/dt-bindings/reset/starfive-jh7100.h
STARFIVE SOC DRIVERS
M:	Conor Dooley <conor@kernel.org>
S:	Maintained
T:	git https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/
F:	drivers/soc/starfive/
STARFIVE JH71XX PMU CONTROLLER DRIVER
M:	Walker Chen <walker.chen@starfivetech.com>
S:	Supported
F:	Documentation/devicetree/bindings/power/starfive*
F:	drivers/soc/starfive/jh71xx_pmu.c
F:	include/dt-bindings/power/starfive,jh7110-pmu.h
STATIC BRANCH/CALL
M:	Peter Zijlstra <peterz@infradead.org>
M:	Josh Poimboeuf <jpoimboe@kernel.org>
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ source "drivers/soc/renesas/Kconfig"
source "drivers/soc/rockchip/Kconfig"
source "drivers/soc/samsung/Kconfig"
source "drivers/soc/sifive/Kconfig"
source "drivers/soc/starfive/Kconfig"
source "drivers/soc/sunxi/Kconfig"
source "drivers/soc/tegra/Kconfig"
source "drivers/soc/ti/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ obj-y += renesas/
obj-y				+= rockchip/
obj-$(CONFIG_SOC_SAMSUNG)	+= samsung/
obj-$(CONFIG_SOC_SIFIVE)	+= sifive/
obj-$(CONFIG_SOC_STARFIVE)	+= starfive/
obj-y				+= sunxi/
obj-$(CONFIG_ARCH_TEGRA)	+= tegra/
obj-y				+= ti/
+12 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0

config JH71XX_PMU
	bool "Support PMU for StarFive JH71XX Soc"
	depends on PM
	depends on SOC_STARFIVE || COMPILE_TEST
	default SOC_STARFIVE
	select PM_GENERIC_DOMAINS
	help
	  Say 'y' here to enable support power domain support.
	  In order to meet low power requirements, a Power Management Unit (PMU)
	  is designed for controlling power resources in StarFive JH71XX SoCs.
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0

obj-$(CONFIG_JH71XX_PMU)	+= jh71xx_pmu.o
Loading