power: domain: add i.MX8 scu power domain driver
authorPeng Fan <peng.fan@nxp.com>
Mon, 2 Sep 2019 10:16:32 +0000 (18:16 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 5 Nov 2019 09:27:18 +0000 (10:27 +0100)
commitafd267af8dc2a1f33e416dbb77fb30600aefe5cd
treed3a7bbb9ea204aca8adfc88bb1b999c9c6a98d6f
parent954b9311abc265e569d47876e75100b0e5e191ab
power: domain: add i.MX8 scu power domain driver

The power domain tree is not accepted by Linux Kernel upstream.
only a single pd node is used currently, as following:

pd: imx8qx-pd {
compatible = "fsl,imx8qm-scu-pd", "fsl,scu-pd";
#power-domain-cells = <1>;
};

So to migrate to use upstream linux dts, we also need a driver
to support this.

This patch is to support the new method, compared with legacy power
domain tree, it will be simpiler, because each device will
has resource id as power domain index, it will be directly passed
to scfw, and no need to let power domain build that tree. If multiple
power domain is needed, it is the dts node should has correctly power
domains entry added and sequence correct.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/domain/Makefile
drivers/power/domain/imx8-power-domain.c [new file with mode: 0644]