From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Linus Walleij <linus.walleij@linaro.org>,
Jianhua Lu <lujianhua000@gmail.com>
Cc: Thierry Reding <thierry.reding@gmail.com>,
Sam Ravnborg <sam@ravnborg.org>, David Airlie <airlied@gmail.com>,
Daniel Vetter <daniel@ffwll.ch>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, phone-devel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] gpu/drm/panel: Add Lenovo NT36523W BOE panel
Date: Wed, 8 Mar 2023 12:03:19 +0100 [thread overview]
Message-ID: <9dc9814e-22ae-7b89-80cc-dc1d92898a2f@linaro.org> (raw)
In-Reply-To: <CACRpkdZ8RvFrieWXhx1WGO71M10H0-b3WbDXM7=xnngX7uWT6Q@mail.gmail.com>
On 7.03.2023 23:18, Linus Walleij wrote:
> On Tue, Mar 7, 2023 at 2:26 PM Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
>
>> Introduce support for the BOE panel with a NT36523W touch/driver IC
>> found on some Lenovo Tab P11 devices. It's a 2000x1200, 24bit RGB
>> MIPI DSI panel with integrated DCS-controlled backlight (that expects
>> big-endian communication).
>>
>> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
>> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
>
> I will think this is some variant of the Novatek NT36523 display
> controller packaged up with Lenovo electronics until proven how
> wrong I am.
>
> I will listen to reason if it can be demonstrated that NT36523 and
> NT36523W are considerably different and need very different
> drivers, but I seriously doubt it. (For reasons see below.)
>
>> drivers/gpu/drm/panel/panel-lenovo-nt36523w-boe.c | 747 ++++++++++++++++++++++
>
> We usually share code with different displays using the
> same display controller, so panel-novatek-nt36523.c should
> be used as name.
>
>> +config DRM_PANEL_LENOVO_NT36523W_BOE
>> + tristate "Lenovo NT36523W BOE panel"
>
> Name it after the display controller like the other examples
> in the Kconfig, DRM_PANEL_NOVATEK_NT36523
>
>> + mipi_dsi_dcs_write_seq(dsi, 0xff, 0x20);
>> + mipi_dsi_dcs_write_seq(dsi, 0xfb, 0x01);
>> + mipi_dsi_dcs_write_seq(dsi, 0x05, 0xd9);
>> + mipi_dsi_dcs_write_seq(dsi, 0x07, 0x78);
>> + mipi_dsi_dcs_write_seq(dsi, 0x08, 0x5a);
>> + mipi_dsi_dcs_write_seq(dsi, 0x0d, 0x63);
>> + mipi_dsi_dcs_write_seq(dsi, 0x0e, 0x91);
>> + mipi_dsi_dcs_write_seq(dsi, 0x0f, 0x73);
>> + mipi_dsi_dcs_write_seq(dsi, 0x95, 0xeb);
>> + mipi_dsi_dcs_write_seq(dsi, 0x96, 0xeb);
>> + mipi_dsi_dcs_write_seq(dsi, MIPI_DCS_SET_PARTIAL_ROWS, 0x11);
>
> I think it looks very similar to Jianhua:s driver:
> https://lore.kernel.org/lkml/20230220121258.10727-1-lujianhua000@gmail.com/T/
>
> Can't you just add this special magic sequence into
> that driver instead?
Yeah I'll try doing that.
>
> Would it help if we merge Jianhua's driver first so you can patch on
> top of it?
Definitely.
Konrad
>
> Yours,
> Linus Walleij
prev parent reply other threads:[~2023-03-08 11:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-07 13:26 [PATCH v2 0/2] Add support for " Konrad Dybcio
2023-03-07 13:26 ` [PATCH v2 1/2] dt-bindings: display/panel: Add " Konrad Dybcio
2023-03-07 22:08 ` Linus Walleij
2023-03-08 11:02 ` Konrad Dybcio
2023-03-14 18:45 ` Linus Walleij
2023-03-07 13:26 ` [PATCH v2 2/2] gpu/drm/panel: " Konrad Dybcio
2023-03-07 22:18 ` Linus Walleij
2023-03-08 11:03 ` Konrad Dybcio [this message]
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=9dc9814e-22ae-7b89-80cc-dc1d92898a2f@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=airlied@gmail.com \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lujianhua000@gmail.com \
--cc=neil.armstrong@linaro.org \
--cc=phone-devel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=sam@ravnborg.org \
--cc=thierry.reding@gmail.com \
/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
all inboxes | Powered by JetHome®