All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/mxsfb: Add an entry for "fsl,imx8mq-lcdif"
@ 2023-12-11 20:41 ` Fabio Estevam
  0 siblings, 0 replies; 11+ messages in thread
From: Fabio Estevam @ 2023-12-11 20:41 UTC (permalink / raw)
  To: marex
  Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, martink, kernel,
	dri-devel, devicetree, Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

On i.MX6SX, the LCDIF has an associated power domain.

However, i.MX8MQ does not have an LCDIF power domain.

imx8mq.dtsi has the following compatible string:

compatible = "fsl,imx8mq-lcdif", "fsl,imx6sx-lcdif";

which causes the following dt-schema warning:

imx8mq-evk.dtb: lcd-controller@30320000: 'power-domains' is a required property
	from schema $id: http://devicetree.org/schemas/display/fsl,lcdif.yaml#

To prevent this problem, add a specific fsl,imx8mq-lcdif entry in
the driver to properly handle such a power-domain requirement difference.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 drivers/gpu/drm/mxsfb/mxsfb_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
index b483ef48216a..ac9ce3b45b38 100644
--- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c
+++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
@@ -340,6 +340,7 @@ 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,imx8mq-lcdif", .data = &mxsfb_devdata[MXSFB_V6], },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mxsfb_dt_ids);
-- 
2.34.1


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

end of thread, other threads:[~2023-12-13  9:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-11 20:41 [PATCH 1/3] drm/mxsfb: Add an entry for "fsl,imx8mq-lcdif" Fabio Estevam
2023-12-11 20:41 ` Fabio Estevam
2023-12-11 20:41 ` [PATCH 2/3] dt-bindings: lcdif: Decouple imx8mq from imx6sx Fabio Estevam
2023-12-11 20:41   ` Fabio Estevam
2023-12-12 16:52   ` Conor Dooley
2023-12-12 16:52     ` Conor Dooley
2023-12-11 20:41 ` [PATCH 3/3] arm64: dts: imx8mq: Exclude "fsl,imx6sx-lcdif" Fabio Estevam
2023-12-11 20:41   ` Fabio Estevam
2023-12-12 18:19 ` [PATCH 1/3] drm/mxsfb: Add an entry for "fsl,imx8mq-lcdif" Lucas Stach
2023-12-12 18:28   ` Fabio Estevam
2023-12-13  9:02     ` Lucas Stach

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.