]> git.dujemihanovic.xyz Git - u-boot.git/commit
power: zynqmp: Add power domain driver for ZynqMP
authorMichal Simek <michal.simek@xilinx.com>
Mon, 7 Feb 2022 09:27:37 +0000 (10:27 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 15 Feb 2022 12:01:42 +0000 (13:01 +0100)
commite0283cbdfd49a437ef3cfdd662b196d2f70b5ea0
treed845cd6b699bc029289a76bda1d065234a24c1ba
parent2f9dd4bfc7a2d618c9c76448dd7b3ce67c6ec4ce
power: zynqmp: Add power domain driver for ZynqMP

Driver should be enabled by CONFIG_POWER_DOMAIN=y and
CONFIG_ZYNQMP_POWER_DOMAIN=y. Power domain driver doesn't have own DT node
but it uses zynqmp firmware DT node that's why there is a need to bind
driver when firmware node is found.

Driver itself is simple. It is sending pmufw config object overlay for
enabling access to device which is done in ...domain_request().
In ...domain_on() capabilities are passed and node is requested.
This should be bare minimum of required to get power domain driver working.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Link: https://lore.kernel.org/r/f4b9433b91c0b18c375b061c7a4e29d428f70547.1644226055.git.michal.simek@xilinx.com
MAINTAINERS
drivers/firmware/firmware-zynqmp.c
drivers/power/domain/Kconfig
drivers/power/domain/Makefile
drivers/power/domain/zynqmp-power-domain.c [new file with mode: 0644]
include/zynqmp_firmware.h