From: abhinavk@codeaurora.org
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-arm-msm@vger.kernel.org,
"open list:DRM PANEL DRIVERS" <dri-devel@lists.freedesktop.org>,
thierry.reding@gmail.com, hoegsberg@google.com,
chandanu@codeaurora.org
Subject: Re: [PATCH v5 2/2] dt-bindings: Add Truly NT35597 panel bindings
Date: Fri, 03 Aug 2018 14:31:03 -0700 [thread overview]
Message-ID: <bd168e532aff796e961908515df4c53f@codeaurora.org> (raw)
In-Reply-To: <CACRpkdbfweM_1+gnON7eeZjgct5H6q1X7KBoiSdboOoDeC2UQg@mail.gmail.com>
Hi Linus
Thanks for your valuable comments.
Yes, we agree with your comments here and will address them.
Some details below on how we will take care of it.
Thanks
Abhinav
On 2018-08-03 04:20, Linus Walleij wrote:
> On Fri, Aug 3, 2018 at 4:49 AM Abhinav Kumar <abhinavk@codeaurora.org>
> wrote:
>
>> From: "abhinavk@codeaurora.org" <abhinavk@codeaurora.org>
>>
>> Add the device tree bindings for Truly NT35597 panel.
>> This panel supports both single DSI and dual DSI.
>
> I do not think this is a panel but a panel driver that can be used
> with several physical panels. Can you confirm?
Yes, from the documentation I have I can see that this is a panel
driver and can support other panels/resolutions.
>
> I suspect this since the command sequence in the driver seems
> to contain a command for setting up the actual resolution and
> a bunch of clocking properties for the physical panel.
>
>> +Required properties:
>> +- compatible: should be "truly,nt35597"
>
> As with eg ili9322 I think this should have dual compatible strings
> identifying the system it is used with since the resolution, clocking
> etc is apparently
> actually configurable.
>
> compatible:
> "truly,nt35597", "qcom,reference-design1-name-display";
> "truly,nt35597", "qcom,reference-design2-name-display";
>
> Then you send the command setting up resolution etc only for that
> one system.
>
Yes, I agree we will can have dual compatible strings and we will pick
resolution/modes based on the compatible string similar to this:
https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/panel/panel-ilitek-ili9322.c#L659
>> +- vdda-supply: phandle of the regulator that provides the supply
>> voltage
>> + Power IC supply
>> +- vdispp-supply: phandle of the regulator that provides the supply
>> voltage
>> + for positive LCD bias
>> +- vdispn-supply: phandle of the regulator that provides the supply
>> voltage
>> + for negative LCD bias
>> +- reset-gpios: phandle of gpio for reset line
>> + This should be 8mA, gpio can be configured using mux, pinctrl,
>> pinctrl-names
>> +- mode-gpios: phandle of the gpio for choosing the mode of the
>> display
>> + for single DSI or Dual DSI
>> + This should be low for dual DSI and high for single DSI mode
>> +- display-timings: Node for the Panel timings
>
> I don't think this belongs in the device tree at all.
>
> Provide the timings from the driver based on the compatible string
> instead, as you actually send commands to set up a certain timing in
> the display controller.
>
> (See ili9322 driver for an example of how I do this.)
Yes, will follow the example of ili9322 and do the same.
>
>> +- ports: This device has two video ports driven by two DSIs. Their
>> connections
>> + are modelled using the OF graph bindings specified in
>> + Documentation/devicetree/bindings/graph.txt.
>> + - port@0: DSI input port driven by master DSI
>> + - port@1: DSI input port driven by secondary DSI
>
> The rest seems fine.
>
> Yours,
> Linus Walleij
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2018-08-03 21:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-03 2:49 [PATCH v5 1/2] drm/panel: Add support for Truly NT35597 panel Abhinav Kumar
2018-08-03 2:49 ` [PATCH v5 2/2] dt-bindings: Add Truly NT35597 panel bindings Abhinav Kumar
2018-08-03 11:20 ` Linus Walleij
2018-08-03 21:31 ` abhinavk [this message]
2018-08-03 11:03 ` [PATCH v5 1/2] drm/panel: Add support for Truly NT35597 panel Linus Walleij
2018-08-03 21:25 ` abhinavk
2018-08-09 10:53 ` Thierry Reding
2018-08-09 17:51 ` Sean Paul
2018-08-10 1:54 ` abhinavk
2018-08-10 8:44 ` Linus Walleij
-- strict thread matches above, loose matches on Subject: below --
2018-08-03 3:09 Abhinav Kumar
2018-08-03 3:09 ` [PATCH v5 2/2] dt-bindings: Add Truly NT35597 panel bindings Abhinav Kumar
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=bd168e532aff796e961908515df4c53f@codeaurora.org \
--to=abhinavk@codeaurora.org \
--cc=chandanu@codeaurora.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=hoegsberg@google.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-msm@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).