From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Peter Ujfalusi <peter.ujfalusi@ti.com>,
robh+dt@kernel.org, airlied@linux.ie, thierry.reding@gmail.com
Cc: daniel.vetter@ffwll.ch, linux-fbdev@vger.kernel.org,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 3/3] video: of: display_timing: Add support for syncclk-active property
Date: Thu, 29 Sep 2016 13:55:36 +0300 [thread overview]
Message-ID: <f2d2e5df-07ef-854d-9128-6adc91c83b95@ti.com> (raw)
In-Reply-To: <20160922103526.24925-4-peter.ujfalusi@ti.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1595 bytes --]
On 22/09/16 13:35, Peter Ujfalusi wrote:
> Configure the DISPLAY_FLAGS_SYNC_POSEDGE/NEGEDGE flags according to the
> binding document.
> If the syncclk-active is present in DT, configure the flags accordingly, if
> it is omitted it means that the SYNC edge is following the pixdata
> configuration.
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> CC: Rob Herring <robh+dt@kernel.org>
> CC: Mark Rutland <mark.rutland@arm.com>
> CC: devicetree@vger.kernel.org
> ---
> drivers/video/of_display_timing.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c
> index 8a1076beecd3..db992c684f09 100644
> --- a/drivers/video/of_display_timing.c
> +++ b/drivers/video/of_display_timing.c
> @@ -88,6 +88,15 @@ static int of_parse_display_timing(const struct device_node *np,
> dt->flags |= val ? DISPLAY_FLAGS_PIXDATA_POSEDGE :
> DISPLAY_FLAGS_PIXDATA_NEGEDGE;
>
> + if (!of_property_read_u32(np, "syncclk-active", &val))
> + dt->flags |= val ? DISPLAY_FLAGS_SYNC_POSEDGE :
> + DISPLAY_FLAGS_SYNC_NEGEDGE;
> + else if (dt->flags & (DISPLAY_FLAGS_PIXDATA_POSEDGE |
> + DISPLAY_FLAGS_PIXDATA_NEGEDGE))
> + dt->flags |= dt->flags & DISPLAY_FLAGS_PIXDATA_POSEDGE ?
> + DISPLAY_FLAGS_SYNC_POSEDGE :
> + DISPLAY_FLAGS_SYNC_NEGEDGE;
> +
> if (of_property_read_bool(np, "interlaced"))
> dt->flags |= DISPLAY_FLAGS_INTERLACED;
> if (of_property_read_bool(np, "doublescan"))
>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Tomi
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2016-09-29 10:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-22 10:35 [PATCH v2 0/3] video: of: Drive edge selection for sync Peter Ujfalusi
2016-09-22 10:35 ` [PATCH v2 2/3] video: display_timing: Add flags to select the edge when the sync is driven Peter Ujfalusi
[not found] ` <20160922103526.24925-3-peter.ujfalusi-l0cyMroinI0@public.gmane.org>
2016-09-29 10:54 ` Tomi Valkeinen
[not found] ` <20160922103526.24925-1-peter.ujfalusi-l0cyMroinI0@public.gmane.org>
2016-09-22 10:35 ` [PATCH v2 1/3] dt-bindings: display: display-timing: Add property to configure sync drive edge Peter Ujfalusi
[not found] ` <20160922103526.24925-2-peter.ujfalusi-l0cyMroinI0@public.gmane.org>
2016-09-23 20:01 ` Rob Herring
2016-09-29 10:52 ` Tomi Valkeinen
2016-09-22 10:35 ` [PATCH v2 3/3] video: of: display_timing: Add support for syncclk-active property Peter Ujfalusi
2016-09-29 10:55 ` Tomi Valkeinen [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=f2d2e5df-07ef-854d-9128-6adc91c83b95@ti.com \
--to=tomi.valkeinen@ti.com \
--cc=airlied@linux.ie \
--cc=daniel.vetter@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.ujfalusi@ti.com \
--cc=robh+dt@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