From: Inki Dae <inki.dae@samsung.com>
To: Andrzej Hajda <a.hajda@samsung.com>,
Rob Herring <robh@kernel.org>,
Hoegeun Kwon <hoegeun.kwon@samsung.com>
Cc: devicetree@vger.kernel.org, krzk@kernel.org,
cw00.choi@samsung.com, Donghwa Lee <dh09.lee@samsung.com>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
jh80.chung@samsung.com, linux-samsung-soc@vger.kernel.org,
kgene@kernel.org, Hyungwon Hwang <human.hwang@samsung.com>
Subject: Re: [PATCH v5 2/3] drm/panel: Add support for S6E3HA2 panel driver on TM2 board
Date: Thu, 05 Jan 2017 16:52:51 +0900 [thread overview]
Message-ID: <586DFB53.9050709@samsung.com> (raw)
In-Reply-To: <412a0238-dd8e-6c74-46a7-876e112189f1@samsung.com>
2017년 01월 05일 15:55에 Andrzej Hajda 이(가) 쓴 글:
> On 04.01.2017 15:44, Rob Herring wrote:
>> On Wed, Jan 04, 2017 at 05:15:10PM +0900, Hoegeun Kwon wrote:
>>> This patch add support for MIPI-DSI based S6E3HA2 AMOLED panel
>>> driver. This panel has 1440x2560 resolution in 5.7-inch physical
>>> panel in the TM2 device.
>>>
>>> Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
>>> Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
>>> Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
>>> ---
>>> .../bindings/display/panel/samsung,s6e3ha2.txt | 40 ++
>>> drivers/gpu/drm/panel/Kconfig | 6 +
>>> drivers/gpu/drm/panel/Makefile | 1 +
>>> drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 741 +++++++++++++++++++++
>>> 4 files changed, 788 insertions(+)
>>> create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt
>>> create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c
>>>
>>> diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt b/Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt
>>> new file mode 100644
>>> index 0000000..6879f51
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt
>>> @@ -0,0 +1,40 @@
>>> +Samsung S6E3HA2 5.7" 1440x2560 AMOLED panel
>>> +
>>> +Required properties:
>>> + - compatible: "samsung,s6e3ha2"
>>> + - reg: the virtual channel number of a DSI peripheral
>>> + - vdd3-supply: I/O voltage supply
>>> + - vci-supply: voltage supply for analog circuits
>>> + - reset-gpios: a GPIO spec for the reset pin (active low)
>>> + - enable-gpios: a GPIO spec for the panel enable pin (active high)
>>> + - te-gpios: a GPIO spec for the tearing effect synchronization signal
>>> + gpio pin (active high)
>>> +
>>> +The device node can contain one 'port' child node with one child
>>> +'endpoint' node, according to the bindings defined in [1]. This
>>> +node should describe panel's video bus.
>>> +
>>> +[1]: Documentation/devicetree/bindings/media/video-interfaces.txt
>>> +
>>> +Example:
>>> +
>>> +&dsi {
>>> + ...
>>> +
>>> + panel@0 {
>>> + compatible = "samsung,s6e3ha2";
>>> + reg = <0>;
>>> + vdd3-supply = <&ldo27_reg>;
>>> + vci-supply = <&ldo28_reg>;
>>> + reset-gpios = <&gpg0 0 GPIO_ACTIVE_LOW>;
>>> + enable-gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>;
>>> + te-gpios = <&gpf1 3 GPIO_ACTIVE_HIGH>;
>>> +
>>> + port {
>>> + panel_in: endpoint {
>>> + remote-endpoint = <&dsi_out>;
>> As I said previously, it makes no sense to have a graph to dsi_out it is
>> simply the parent node.
>
> The problem is that exynos_dsi requires presence of endpoint node, when
> it was written the policy was that graphs must be always present.
> DSI reads from this node samsung,burst-clock-frequency and
> samsung,esc-clock-frequency. For example in exynos4412-trats2.dts:
>
>> dsi_0: dsi@11C80000 {
>> ...
>> ports {
>> #address-cells = <1>;
>> #size-cells = <0>;
>>
>> port@1 {
>> reg = <1>;
>>
>> dsi_out: endpoint {
>> remote-endpoint = <&dsi_in>;
>> samsung,burst-clock-frequency
>> = <500000000>;
>> samsung,esc-clock-frequency =
>> <20000000>;
>> };
>> };
>> };
>>
>> panel@0 {
>> ...
>> port {
>> dsi_in: endpoint {
>> remote-endpoint = <&dsi_out>;
>> };
>> };
>> };
>> };
>
> However, DSI driver does not use remote-endpoint property, it is here
> only to fulfill of_graph policy.
> So if something like below is acceptable, we can get rid of port node in
> panel:
>
>> dsi_0: dsi@11C80000 {
>> ...
>> ports {
>> #address-cells = <1>;
>> #size-cells = <0>;
>>
>> port@1 {
>> reg = <1>;
>>
>> dsi_out: endpoint {
>> samsung,burst-clock-frequency
>> = <500000000>;
>> samsung,esc-clock-frequency =
>> <20000000>;
>> };
>> };
>> };
>>
>> panel@0 {
>> ...
>> };
>> };
>
> What do you think?
>
> Other solution is to move problematic properties somewhere else, but
> this require change of bindings.
> Anyway I would be glad to remove port nodes in other samsung panels:
> s6e8aa0, ld9040.
In addition,
Now dsi and mic device nodes of exynos5433.dtsi include remote nodes which define Display pipeline. This is wrong.
Display pipeline is specific to board, not SoC so these things should be moved to exynos5433-tm2.dts file.
Hoegeun, you can do this with other patch also.
Thanks.
>
> Regards
> Andrzej
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-01-05 7:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170104081520epcas1p42dd46f1d13adfde20a2559bd5c1cbd3d@epcas1p4.samsung.com>
2017-01-04 8:15 ` [PATCH v5 0/3] Add support for the S6E3HA2 panel on TM2 board Hoegeun Kwon
[not found] ` <CGME20170104081521epcas1p40d5fbfbe0600d0df05e77b36ce6a353f@epcas1p4.samsung.com>
2017-01-04 8:15 ` [PATCH v5 1/3] drm/exynos: mic: Add mode_set callback function Hoegeun Kwon
2017-01-04 9:05 ` Andrzej Hajda
[not found] ` <CGME20170104081522epcas5p112698b2499e56dc9027ec1f57f8964ee@epcas5p1.samsung.com>
2017-01-04 8:15 ` [PATCH v5 2/3] drm/panel: Add support for S6E3HA2 panel driver on TM2 board Hoegeun Kwon
2017-01-04 8:20 ` Chanwoo Choi
2017-01-04 9:39 ` Andrzej Hajda
2017-01-04 14:44 ` Rob Herring
2017-01-05 6:55 ` Andrzej Hajda
2017-01-05 7:52 ` Inki Dae [this message]
[not found] ` <CGME20170104081522epcas5p1985a9b2404976bd26df4e13fa5ffe1bc@epcas5p1.samsung.com>
2017-01-04 8:15 ` [PATCH v5 3/3] arm64: dts: exynos: Add support for S6E3HA2 panel device " Hoegeun Kwon
[not found] ` <1483517711-23849-4-git-send-email-hoegeun.kwon-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2017-01-04 8:20 ` Chanwoo Choi
2017-01-04 9:57 ` Andrzej Hajda
2017-01-04 9:58 ` [PATCH v5 0/3] Add support for the S6E3HA2 panel " Andi Shyti
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=586DFB53.9050709@samsung.com \
--to=inki.dae@samsung.com \
--cc=a.hajda@samsung.com \
--cc=cw00.choi@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=dh09.lee@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=hoegeun.kwon@samsung.com \
--cc=human.hwang@samsung.com \
--cc=jh80.chung@samsung.com \
--cc=kgene@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=robh@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;
as well as URLs for NNTP newsgroup(s).