devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: YoungJun Cho <yj44.cho@samsung.com>
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
	linux-samsung-soc@vger.kernel.org, pawel.moll@arm.com,
	ijc+devicetree@hellion.org.uk, sw0312.kim@samsung.com,
	dri-devel@lists.freedesktop.org, a.hajda@samsung.com,
	kyungmin.park@samsung.com, robh+dt@kernel.org,
	galak@codeaurora.org, kgene.kim@samsung.com
Subject: Re: [RFC PATCH 05/14] ARM: dts: samsung-fimd: add I80 specific properties
Date: Tue, 22 Apr 2014 00:35:29 +0200	[thread overview]
Message-ID: <1903586.zxepIQYiBA@avalon> (raw)
In-Reply-To: <534F67B1.2020001@samsung.com>

Hi YoungJun,

On Thursday 17 April 2014 14:33:37 YoungJun Cho wrote:
> On 04/17/2014 06:26 AM, Laurent Pinchart wrote:
> > On Tuesday 15 April 2014 14:47:33 YoungJun Cho wrote:
> >> In case of using CPU interface panel, the relevant registers should be
> >> set. So this patch adds relevant dt bindings.
> >> 
> >> Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
> >> Signed-off-by: Inki Dae <inki.dae@samsung.com>
> >> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> >> ---
> >> 
> >>   .../devicetree/bindings/video/samsung-fimd.txt     |    9 +++++++++
> >>   1 file changed, 9 insertions(+)
> >> 
> >> diff --git a/Documentation/devicetree/bindings/video/samsung-fimd.txt
> >> b/Documentation/devicetree/bindings/video/samsung-fimd.txt index
> >> 2dad41b..924c2e1 100644
> >> --- a/Documentation/devicetree/bindings/video/samsung-fimd.txt
> >> +++ b/Documentation/devicetree/bindings/video/samsung-fimd.txt
> >> 
> >> @@ -44,6 +44,15 @@ Optional Properties:
> >>   - display-timings: timing settings for FIMD, as described in document
> >>   [1].
> >>   
> >>   		Can be used in case timings cannot be provided otherwise
> >>   		or to override timings provided by the panel.
> >> 
> >> +- samsung,sysreg-phandle: handle to syscon used to control the system
> 
> Oops... I have to change "samsung,sysreg-phandle" to "samsung,sysreg".
> 
> >> registers
> >> +- vidout-i80-ldi: boolean to support i80 interface instead of rgb one
> >> +- cs-setup: clock cycles for the active period of address signal enable
> >> until
> >> +	chip select is enable in i80 interface
> >> +- wr-setup: clock cycles for the active period of CS signal enable until
> >> +	write signal is enable in i80 interface
> >> +- wr-act: clock cycles for the active period of CS enable in i80
> >> interface
> >> +- wr-hold: clock cycles for the active period of CS disable until write
> >> signal
> >> +	is disable in i80 interface
> > 
> > Shouldn't the interface parameters be considered as a property of the
> > slave device instead ? The bus master side is programmable, and different
> > slaves would have different timing requirements. I think it would make
> > more sense to specify the timings on the slave (panel) side and query them
> > dynamically at runtime. Depending on the slave the timings could be
> > hardcoded in the driver (as they're usually an intrinsic property of the
> > slave) or partially or fully specified in the slave DT node.
> 
> Yes, you're right. These properties are related to panel in a sense.
> 
> But my intention is to use these properties to fimd node in the board
> specific dts file, because it decides the interface with panel and
> these are required by fimd only.

I agree, it's a bit of a gray area. The properties describe the connection 
between the display controller output and the panel. As such they're shared 
between the two components, so deciding on which node to include them in is a 
bit difficult. In this specific case, as the panel dictates the interface 
timings and the display controller is then programmed to comply with those 
timings, I would be tempted to consider timing information as panel 
properties. This obviously complicates driver implementation, as we would need 
to communicate timing information from panel drivers to display controller 
drivers.

> If dynamic query is more logical approach, I should find some ways
> with considering probing order.

I won't push too much for storing interface timing information in the panel DT 
node, but I'm a bit worried that storing it in the display controller DT node 
might cause issues at some point. As DT is an ABI, we need to carefully 
consider the potential issues.

> >>   The device node can contain 'port' child nodes according to the
> >>   bindings
> >> 
> >> defined in [2]. The following are properties specific to those nodes:

-- 
Regards,

Laurent Pinchart

  parent reply	other threads:[~2014-04-21 22:35 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15  5:47 [RFC PATCH 00/14] drm/exynos: support MIPI DSI command mode display YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 01/14] drm/exynos: dsi: move the Eot packets configuration point YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 02/14] drm/exynos: dsi: delay setting clocks after reset YoungJun Cho
2014-04-18 12:15   ` Andrzej Hajda
2014-04-19 22:30     ` YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 03/14] drm/exynos: use wait_event_timeout() for safety usage YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 04/14] ARM: dts: add exynos5 compatible to sysreg YoungJun Cho
2014-04-15  8:02   ` Sachin Kamat
2014-04-16  4:38     ` [RFC PATCH v2 04/14] ARM: dts: sysreg: add exynos5 compatible to DT bindings YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 05/14] ARM: dts: samsung-fimd: add I80 specific properties YoungJun Cho
2014-04-16 21:26   ` Laurent Pinchart
2014-04-17  5:33     ` YoungJun Cho
2014-04-17 11:53       ` [RFC PATCH v2 " YoungJun Cho
2014-04-18 12:32         ` Andrzej Hajda
2014-04-20  0:34           ` YoungJun Cho
2014-04-21 22:35       ` Laurent Pinchart [this message]
2014-04-15  5:47 ` [RFC PATCH 06/14] drm/exynos: support MIPI DSI command mode YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 07/14] ARM: dts: exynos_dsim: add exynos5420 Soc compatible YoungJun Cho
     [not found]   ` <1397540862-21359-8-git-send-email-yj44.cho-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2014-04-15  8:09     ` Sachin Kamat
2014-04-16  4:38       ` [RFC PATCH v2 07/14] ARM: dts: exynos_dsim: add exynos5420 compatible to DT bindings YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 08/14] drm/exynos: dsi: add driver data to support Exynos5420 YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 09/14] ARM: dts: s6e3fa0: add DT bindings YoungJun Cho
2014-04-15  8:18   ` Sachin Kamat
2014-04-16  4:38     ` [RFC PATCH v2 " YoungJun Cho
2014-04-16 21:45       ` Laurent Pinchart
2014-04-17 11:54         ` [RFC PATCH v3 " YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 10/14] drm/panel: add S6E3FA0 driver YoungJun Cho
2014-04-17 11:54   ` [RFC PATCH v3 " YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 11/14] ARM: dts: exynos4: add system register node YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 12/14] ARM: dts: exynos5: add system register support YoungJun Cho
2014-04-15  8:41   ` Sachin Kamat
2014-04-15  9:18     ` Sylwester Nawrocki
2014-04-15  9:31       ` Sachin Kamat
2014-04-15  5:47 ` [RFC PATCH 13/14] ARM: dts: exynos5420: add mipi-phy node YoungJun Cho
2014-04-15  5:47 ` [RFC PATCH 14/14] ARM: dts: exynos5420: add dsi node YoungJun Cho
2014-04-15  8:04   ` Sachin Kamat
2014-04-16  4:39     ` [RFC PATCH v2 " YoungJun Cho

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=1903586.zxepIQYiBA@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=a.hajda@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=kgene.kim@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sw0312.kim@samsung.com \
    --cc=yj44.cho@samsung.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).