[PATCH 8/8] interconnect: imx: Add platform driver for imx8mp

Peng Fan peng.fan at nxp.com
Wed Jun 1 05:03:31 PDT 2022


> Subject: Re: [PATCH 8/8] interconnect: imx: Add platform driver for imx8mp
> 
> On 01/06/2022 11:41, Peng Fan (OSS) wrote:
> > From: Peng Fan <peng.fan at nxp.com>
> >
> > Add a platform driver for the i.MX8MP SoC describing bus topology,
> > based on internal documentation.
> >
> > Signed-off-by: Peng Fan <peng.fan at nxp.com>
> 
> > +
> > +static struct platform_driver imx8mp_icc_driver = {
> > +	.probe = imx8mp_icc_probe,
> > +	.remove = imx8mp_icc_remove,
> > +	.driver = {
> > +		.name = "imx8mp-interconnect",
> 
> How do you match/bind the driver?

drivers/devfreq/imx-bus.c will create a platform device
that match this driver. I have not posted the patch to add
imx8mp support in devfreq driver.

Thanks,
Peng.

> 
> > +	},
> > +};
> > +
> > +module_platform_driver(imx8mp_icc_driver);
> > +MODULE_AUTHOR("Peng Fan <peng.fan at nxp.com>");
> MODULE_LICENSE("GPL
> > +v2"); MODULE_ALIAS("platform:imx8mp-interconnect");
> > diff --git a/include/dt-bindings/interconnect/fsl,imx8mp.h
> > b/include/dt-bindings/interconnect/fsl,imx8mp.h
> > new file mode 100644
> 
> Bindings are separate patch.
> 
> > index 000000000000..732547577c76
> > --- /dev/null
> > +++ b/include/dt-bindings/interconnect/fsl,imx8mp.h
> > @@ -0,0 +1,59 @@
> > +/* SPDX-License-Identifier: GPL-2.0 */
> 
> Dual license.
> 
> > +/*
> > + * Interconnect framework driver for i.MX SoC
> > + *
> > + * Copyright 2022 NXP
> > + * Peng Fan <peng.fan at nxp.com>
> > + */
> > +
> 
> 
> 
> Best regards,
> Krzysztof


More information about the linux-arm-kernel mailing list