From: Lucas Stach <l.stach@pengutronix.de>
To: Fabio Estevam <festevam@gmail.com>, marex@denx.de
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org,
Fabio Estevam <festevam@denx.de>,
kernel@puri.sm, dri-devel@lists.freedesktop.org,
robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
martink@posteo.de
Subject: Re: [PATCH 1/3] drm/mxsfb: Add an entry for "fsl,imx8mq-lcdif"
Date: Tue, 12 Dec 2023 19:19:25 +0100 [thread overview]
Message-ID: <9089fb993eb0b2b630784e5b91cb88c1ff2f45fb.camel@pengutronix.de> (raw)
In-Reply-To: <20231211204138.553141-1-festevam@gmail.com>
Hi Fabio,
Am Montag, dem 11.12.2023 um 17:41 -0300 schrieb 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.
>
I don't really like this series. While we don't make any strong
guarantees in this way, it breaks booting older kernels with a new DT.
As this driver patch shows, there are no actual differences in the IP
block between i.MX6SX and i.MX8MQ, it's just the SoC integration that's
different, where in one SoC the controller is located in a power
domain, while it isn't in another.
To me this smells like making changes to parts that don't really care
about those differences. The thing that cares about the difference is
the DT schema validation and I feel like there must be a better way to
describe this in the schema than to patch both driver and DT just to
accommodate a SoC integration difference. Is there a way to make the
power-domain property not dependent on the IP block, but the machine
compatible?
Regards,
Lucas
> 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);
next prev parent reply other threads:[~2023-12-12 18:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-11 20:41 [PATCH 1/3] drm/mxsfb: Add an entry for "fsl,imx8mq-lcdif" Fabio Estevam
2023-12-11 20:41 ` [PATCH 2/3] dt-bindings: lcdif: Decouple imx8mq from imx6sx Fabio Estevam
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-12 18:19 ` Lucas Stach [this message]
2023-12-12 18:28 ` [PATCH 1/3] drm/mxsfb: Add an entry for "fsl,imx8mq-lcdif" Fabio Estevam
2023-12-13 9:02 ` Lucas Stach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9089fb993eb0b2b630784e5b91cb88c1ff2f45fb.camel@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=festevam@denx.de \
--cc=festevam@gmail.com \
--cc=kernel@puri.sm \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=marex@denx.de \
--cc=martink@posteo.de \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox