clk: imx: scu: add fallback compatible string support
authorAisheng Dong <aisheng.dong@nxp.com>
Thu, 24 Jan 2019 13:22:49 +0000 (13:22 +0000)
committerStephen Boyd <sboyd@kernel.org>
Thu, 21 Feb 2019 20:41:16 +0000 (12:41 -0800)
SCU clock can be used in a similar way by IMX8QXP and IMX8QM SoCs.
Make the driver support "fsl,scu-clk" fallback compatible string
to allow other SoCs to reuse the common part.

Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-imx8qxp.c

index 83e2ef9..5e2903e 100644 (file)
@@ -138,6 +138,7 @@ static int imx8qxp_clk_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id imx8qxp_match[] = {
+       { .compatible = "fsl,scu-clk", },
        { .compatible = "fsl,imx8qxp-clk", },
        { /* sentinel */ }
 };