From: m.szyprowski@samsung.com (Marek Szyprowski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 9/9] drm/exynos: add support for 'hdmi' clock
Date: Thu, 22 Jan 2015 13:41:15 +0100 [thread overview]
Message-ID: <54C0EFEB.6080201@samsung.com> (raw)
In-Reply-To: <54BE4F8E.50605@collabora.co.uk>
Hello,
On 2015-01-20 13:52, Javier Martinez Canillas wrote:
> On 01/20/2015 01:16 PM, Marek Szyprowski wrote:
>> Mixed need to have hdmi clock enabled to properly perform power on/off
>> sequences, so add handling of this clock directly to the mixer driver.
>> Dependency between hdmi clock and mixer module has been observed on
>> Exynos4 based boards.
>>
>> Suggested-by: Andrzej Hajda<a.hajda@samsung.com>
>> Signed-off-by: Marek Szyprowski<m.szyprowski@samsung.com>
>> ---
>> drivers/gpu/drm/exynos/exynos_mixer.c | 9 +++++++++
>> 1 file changed, 9 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
>> index 820b76234ef4..e5ef1fccd8fb 100644
>> --- a/drivers/gpu/drm/exynos/exynos_mixer.c
>> +++ b/drivers/gpu/drm/exynos/exynos_mixer.c
>> @@ -72,6 +72,7 @@ struct mixer_resources {
>> spinlock_t reg_slock;
>> struct clk *mixer;
>> struct clk *vp;
>> + struct clk *hdmi;
>> struct clk *sclk_mixer;
>> struct clk *sclk_hdmi;
>> struct clk *mout_mixer;
>> @@ -774,6 +775,12 @@ static int mixer_resources_init(struct mixer_context *mixer_ctx)
>> return -ENODEV;
>> }
>>
>> + mixer_res->hdmi = devm_clk_get(dev, "hdmi");
> You need to update the Documentation/devicetree/bindings/video/exynos_mixer.txt
> DT binding docs to also mention the "hdmi" clock in the list of clocks.
Right, I've send an updated version of the patch.
> But as I mentioned in "[PATCH v2 0/6] Enable HDMI support on Exynos platforms"
> thread, while this seems to be enough to prevent the issue on Exynos4 is not
> enough on the Exynos5420/5422/5800 boards I've tested.
>
> So I wonder if $subject is fixing the root cause or just fixing a symptom and
> the cause is that the exynos_hdmi DPMS handler has to be executed before the
> exynos_mixer DPMS handler for DRM_MODE_DPMS_ON like is the case for DPMS_OFF
> after commit 245f98f269714 ("drm/exynos: hdmi: fix power order issue").
I'm aware of the issues with Exynos542x, I've tested it with Odroid XU3,
but I
really have no idea how to fix it. The reference manual (both for power
domain
and mixer/hdmi modules) also doesn't provide any useful information for this
case.
The issue with power on/off sequence definitely IS related to clock
configuration,
but we didn't figure out how to solve it in a generic way. This will be
handled in
Exynos HDMI and mixer drivers anyway, so the DTS part (at least for
Exynos4 SoC)
will not change.
We would really like to have HDMI support for Exynos4 merged, especially
that the
first version of the HDMI patches was posted in v3.16 times and now we
are close
to v3.20 -next merge window end...
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
next prev parent reply other threads:[~2015-01-22 12:41 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 12:16 [PATCH v4 0/9] Enable HDMI support on Exynos platforms Marek Szyprowski
2015-01-20 12:16 ` [PATCH v4 1/9] PM / Domains: Add a note about power domain subdomains Marek Szyprowski
2015-01-20 12:16 ` [PATCH v4 2/9] ARM: Exynos: add support for sub-power domains Marek Szyprowski
2015-01-20 12:16 ` [PATCH v4 3/9] ARM: dts: exynos4: add hdmi related nodes Marek Szyprowski
2015-01-20 12:16 ` [PATCH v4 4/9] ARM: dts: exynos4: add dependency between TV and LCD0 power domains Marek Szyprowski
2015-01-20 12:16 ` [PATCH v4 5/9] ARM: dts: exynos4412-odroid: enable hdmi support Marek Szyprowski
2015-01-20 12:16 ` [PATCH v4 6/9] ARM: dts: exynos4210-universal_c210: " Marek Szyprowski
2015-01-20 12:16 ` [PATCH v4 7/9] ARM: dts: Exynos: add 'hdmi' clock to mixer nodes Marek Szyprowski
2015-01-20 12:16 ` [PATCH v4 8/9] ARM: dts: exynos5250: add display power domain Marek Szyprowski
2015-01-20 12:16 ` [PATCH v4 9/9] drm/exynos: add support for 'hdmi' clock Marek Szyprowski
2015-01-20 12:52 ` Javier Martinez Canillas
2015-01-22 12:28 ` [PATCH v4 RESEND " Marek Szyprowski
2015-01-22 13:11 ` Javier Martinez Canillas
2015-01-22 12:41 ` Marek Szyprowski [this message]
2015-01-22 12:51 ` [PATCH v4 " Javier Martinez Canillas
2015-01-22 13:20 ` Marek Szyprowski
2015-01-22 13:00 ` Fabio Estevam
2015-02-02 12:54 ` Marek Szyprowski
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=54C0EFEB.6080201@samsung.com \
--to=m.szyprowski@samsung.com \
--cc=linux-arm-kernel@lists.infradead.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