firmware: imx: scu-pd: add fallback compatible string support
authorAisheng Dong <aisheng.dong@nxp.com>
Tue, 18 Dec 2018 16:01:29 +0000 (16:01 +0000)
committerShawn Guo <shawnguo@kernel.org>
Sat, 12 Jan 2019 01:36:45 +0000 (09:36 +0800)
SCU power domain can be used in the same way by IMX8QXP and IMX8QM SoCs.
Make the driver support the fallback compatible string "fsl,scu-pd" to
allow other SoCs to reuse the common part.

Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Kevin Hilman <khilman@kernel.org>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/firmware/imx/scu-pd.c

index 407245f2efd0d670c8e230538359a9cfb7d7de44..39a94c7177fc2675f685b2d1e2aa62ab6a17e1cb 100644 (file)
@@ -322,6 +322,7 @@ static int imx_sc_pd_probe(struct platform_device *pdev)
 
 static const struct of_device_id imx_sc_pd_match[] = {
        { .compatible = "fsl,imx8qxp-scu-pd", &imx8qxp_scu_pd},
+       { .compatible = "fsl,scu-pd", &imx8qxp_scu_pd},
        { /* sentinel */ }
 };