Re: [PATCH 1/2] ARM: dts: Add the support for display5 equipped with Mitsubishi (800x480) display

From: Lukasz Majewski
Date: Fri Nov 17 2017 - 10:27:47 EST


On Fri, 17 Nov 2017 16:07:18 +0100
Lucas Stach <l.stach@xxxxxxxxxxxxxx> wrote:

> Am Freitag, den 17.11.2017, 16:03 +0100 schrieb Lukasz Majewski:
> > Hi Lucas,
> >
> > > Am Freitag, den 17.11.2017, 15:13 +0100 schrieb Lukasz Majewski:
> > > > Hi Shawn,
> > > > ÂÂ
> > > > > On Fri, Nov 17, 2017 at 11:24:03AM +0100, Lukasz Majewski
> > > > > wrote:ÂÂ
> > > > > > This is the support for aa070mc01-ca1 Mitsubishi display.
> > > > > >
> > > > > > > > > > > Signed-off-by: Lukasz Majewski <lukma@xxxxxxx>
> > > > > > ---
> > > > > > Âarch/arm/boot/dts/MakefileÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ|ÂÂ1 +
> > > > > > Â.../imx6q-display5-mitsubishi-aa070-800x480.dtsÂÂÂÂ| 51
> > > > > > ++++++++++++++++++++++ 2 files changed, 52 insertions(+)
> > > > > > Âcreate mode 100644
> > > > > > arch/arm/boot/dts/imx6q-display5-mitsubishi-aa070-800x480.dts
> > > > > >
> > > > > > diff --git a/arch/arm/boot/dts/Makefile
> > > > > > b/arch/arm/boot/dts/Makefile
> > > > > > index d9d0c82e7d20..10b3ad078dea 100644
> > > > > > --- a/arch/arm/boot/dts/Makefile
> > > > > > +++ b/arch/arm/boot/dts/Makefile
> > > > > > @@ -407,6 +407,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
> > > > > > > > > > > Â imx6q-cm-fx6.dtb \
> > > > > > > > > > > Â imx6q-cubox-i.dtb \
> > > > > > > > > > > Â imx6q-dfi-fs700-m60.dtb \
> > > > > > > > > > > +
> > > > > > > > > > > imx6q-display5-mitsubishi-aa070-800x480.dtb \
> > > > > > > > > > > imx6q-display5-tianma-tm070-1280x768.dtb \
> > > > > > > > > > > imx6q-dmo-edmqmx6.dtb \
> > > > > > Â imx6q-evi.dtb \ÂÂÂÂ
> > > > >
> > > > > <snip>
> > > > > ÂÂ
> > > > > > +#include "imx6q-display5.dtsi"
> > > > > > +
> > > > > > +&panel {
> > > > > > > > > > > + compatible =
> > > > > > > > > > > "mitsubishi,aa070mc01-ca1";
> > > > > > +};ÂÂÂÂ
> > > > >
> > > > > How many DTB files do you want to add for this display5
> > > > > board?ÂÂÂÂ
> > > >
> > > > This is a single board, which can support panels which I've
> > > > posted.
> > > >
> > > > Those dtbs I do pack to u-boot' FIT image and don't need to
> > > > worry that
> > > > some display is not working (after setting bootloader env
> > > > variable).
> > > > > It's
> > > > > obvious no fun to maintain a bunch of DTB files for all the
> > > > > panels this board can support.ÂÂ
> > > >
> > > > Please note that those files excessively use #include
> > > > directive, and there is not so much code added (the longest
> > > > part is license and comments).
> > > > ÂÂ
> > > > > ÂLet's stop right here.ÂÂ
> > > >
> > > > If I may ask - how shall I proceed? What would be your
> > > > suggestion to move on (dtb overlays) ?ÂÂ
> > >
> > > The solution we use for the ZII RDU1 and RDU2 boards is to have
> > > the bootloader patch in the correct panel compatible strings.Â
> >
> > Do you mean adjusting the DTB accordingly in u-boot for each
> > display - change panel/compatible to new display name ?
>
> Exactly. Simply let the bootloader insert the correct panel compatible
> string into the DTB.

This would complicate a few other things :-),

but yes, this seems to be a technically better idea (in terms of final
binary size).

Thanks for help.

>
> Regards,
> Lucas



Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@xxxxxxx

Attachment: pgpaFyYqRjCau.pgp
Description: OpenPGP digital signature