All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: mxsfb: Disable overlay plane support for i.MX8MM/i.MX8MN
@ 2021-06-20 22:48 Marek Vasut
  2021-06-21 12:10 ` Lucas Stach
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2021-06-20 22:48 UTC (permalink / raw)
  To: dri-devel; +Cc: Marek Vasut, ch, Emil Velikov, Daniel Abrecht, Laurent Pinchart

The iMX8MM and iMX8MN do not support the overlay plane, so they
are MXSFB V4. Add the compatible strings to reflect this. Note
that iMX8MQ does support the overlay plane, so it is MXSFB V6.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Daniel Abrecht <public@danielabrecht.ch>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Stefan Agner <stefan@agner.ch>
---
 drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
index c277d3f61a5e..0ae4a3553304 100644
--- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c
+++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
@@ -308,6 +308,8 @@ static const struct of_device_id mxsfb_dt_ids[] = {
 	{ .compatible = "fsl,imx23-lcdif", .data = &mxsfb_devdata[MXSFB_V3], },
 	{ .compatible = "fsl,imx28-lcdif", .data = &mxsfb_devdata[MXSFB_V4], },
 	{ .compatible = "fsl,imx6sx-lcdif", .data = &mxsfb_devdata[MXSFB_V6], },
+	{ .compatible = "fsl,imx8mm-lcdif", .data = &mxsfb_devdata[MXSFB_V4], },
+	{ .compatible = "fsl,imx8mn-lcdif", .data = &mxsfb_devdata[MXSFB_V4], },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mxsfb_dt_ids);
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm: mxsfb: Disable overlay plane support for i.MX8MM/i.MX8MN
  2021-06-20 22:48 [PATCH] drm: mxsfb: Disable overlay plane support for i.MX8MM/i.MX8MN Marek Vasut
@ 2021-06-21 12:10 ` Lucas Stach
  2021-06-21 16:28   ` Marek Vasut
  0 siblings, 1 reply; 3+ messages in thread
From: Lucas Stach @ 2021-06-21 12:10 UTC (permalink / raw)
  To: Marek Vasut, dri-devel; +Cc: Daniel Abrecht, Emil Velikov, ch, Laurent Pinchart

Am Montag, dem 21.06.2021 um 00:48 +0200 schrieb Marek Vasut:
> The iMX8MM and iMX8MN do not support the overlay plane, so they
> are MXSFB V4. Add the compatible strings to reflect this. Note
> that iMX8MQ does support the overlay plane, so it is MXSFB V6.

Do we need this compatible in the driver? If there are no other changes
known at this time, shouldn't we be able to just specify "fsl,imx28-
lcdif" as the fallback compatible in the DT, besides the imx8m*
specific ones?

Regards,
Lucas

> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Daniel Abrecht <public@danielabrecht.ch>
> Cc: Emil Velikov <emil.l.velikov@gmail.com>
> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Cc: Lucas Stach <l.stach@pengutronix.de>
> Cc: Stefan Agner <stefan@agner.ch>
> ---
>  drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
> index c277d3f61a5e..0ae4a3553304 100644
> --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c
> +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
> @@ -308,6 +308,8 @@ static const struct of_device_id mxsfb_dt_ids[] = {
>  	{ .compatible = "fsl,imx23-lcdif", .data = &mxsfb_devdata[MXSFB_V3], },
>  	{ .compatible = "fsl,imx28-lcdif", .data = &mxsfb_devdata[MXSFB_V4], },
>  	{ .compatible = "fsl,imx6sx-lcdif", .data = &mxsfb_devdata[MXSFB_V6], },
> +	{ .compatible = "fsl,imx8mm-lcdif", .data = &mxsfb_devdata[MXSFB_V4], },
> +	{ .compatible = "fsl,imx8mn-lcdif", .data = &mxsfb_devdata[MXSFB_V4], },
>  	{ /* sentinel */ }
>  };
>  MODULE_DEVICE_TABLE(of, mxsfb_dt_ids);



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm: mxsfb: Disable overlay plane support for i.MX8MM/i.MX8MN
  2021-06-21 12:10 ` Lucas Stach
@ 2021-06-21 16:28   ` Marek Vasut
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2021-06-21 16:28 UTC (permalink / raw)
  To: Lucas Stach, dri-devel; +Cc: Daniel Abrecht, Emil Velikov, ch, Laurent Pinchart

On 6/21/21 2:10 PM, Lucas Stach wrote:
> Am Montag, dem 21.06.2021 um 00:48 +0200 schrieb Marek Vasut:
>> The iMX8MM and iMX8MN do not support the overlay plane, so they
>> are MXSFB V4. Add the compatible strings to reflect this. Note
>> that iMX8MQ does support the overlay plane, so it is MXSFB V6.
> 
> Do we need this compatible in the driver? If there are no other changes
> known at this time, shouldn't we be able to just specify "fsl,imx28-
> lcdif" as the fallback compatible in the DT, besides the imx8m*
> specific ones?

Yes, we should discard this patch and use the fallback compatible, 
although it is quite counter-intuitive.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-21 16:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-20 22:48 [PATCH] drm: mxsfb: Disable overlay plane support for i.MX8MM/i.MX8MN Marek Vasut
2021-06-21 12:10 ` Lucas Stach
2021-06-21 16:28   ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.