Message ID | 1548335800-6438-6-git-send-email-aisheng.dong@nxp.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | dt-binding: clk: prepare for imx8qm clock support | expand |
Hi Stephen, Can you help picked this one? SCU clock is likely to be common, so we add a common compatible string to handle it. BTW Patch 1~2 already picked up by Shawn. Patch 3~4 dropped. Regards Dong Aisheng > -----Original Message----- > From: Aisheng Dong > Sent: Thursday, January 24, 2019 9:23 PM > To: linux-clk@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org; sboyd@kernel.org; > mturquette@baylibre.com; shawnguo@kernel.org; Fabio Estevam > <fabio.estevam@nxp.com>; dl-linux-imx <linux-imx@nxp.com>; > kernel@pengutronix.de; robh+dt@kernel.org; devicetree@vger.kernel.org; > Aisheng Dong <aisheng.dong@nxp.com> > Subject: [PATCH V3 5/5] clk: imx: scu: add fallback compatible string support > > 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> > --- > drivers/clk/imx/clk-imx8qxp.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c index > 83e2ef9..5e2903e 100644 > --- a/drivers/clk/imx/clk-imx8qxp.c > +++ b/drivers/clk/imx/clk-imx8qxp.c > @@ -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 */ } > }; > -- > 2.7.4
Quoting Aisheng Dong (2019-02-19 23:09:57) > Hi Stephen, > > Can you help picked this one? > SCU clock is likely to be common, so we add a common > compatible string to handle it. > > BTW Patch 1~2 already picked up by Shawn. > Patch 3~4 dropped. > Sure. Picked into clk-next.
diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c index 83e2ef9..5e2903e 100644 --- a/drivers/clk/imx/clk-imx8qxp.c +++ b/drivers/clk/imx/clk-imx8qxp.c @@ -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 */ } };
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> --- drivers/clk/imx/clk-imx8qxp.c | 1 + 1 file changed, 1 insertion(+)