From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Rahul Sharma <rahul.sharma@samsung.com>
Cc: Rahul Sharma <r.sh.open@gmail.com>,
Inki Dae <inki.dae@samsung.com>,
linux-samsung-soc@vger.kernel.org,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
DRI mailing list <dri-devel@lists.freedesktop.org>,
Kukjin Kim <kgene.kim@samsung.com>,
Seung-Woo Kim <sw0312.kim@samsung.com>,
Sean Paul <seanpaul@chromium.org>,
sunil joshi <joshi@samsung.com>,
Kishon Vijay Abraham I <kishon@ti.com>,
Stephen Warren <swarren@wwwdotorg.org>,
grant.likely@linaro.org
Subject: Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control
Date: Thu, 13 Jun 2013 10:55:36 +0200 [thread overview]
Message-ID: <51B98908.8050403@samsung.com> (raw)
In-Reply-To: <CAPdUM4Nis0uwyZf1hNDOMmdqFm0K7beVPoyAWRjMBwq0jcwwCQ@mail.gmail.com>
Hi,
On 06/13/2013 06:26 AM, Rahul Sharma wrote:
> Mr. Dae,
>
> Thanks for your valuable inputs.
>
> I posted it as RFC because, I also have received comments to register
> hdmiphy as a clock controller. As we always configure it for specific
> frequency, hdmi-phy looks similar to a PLL. But it really doesn't
> belong to that class. Secondly prior to exynos5420, it was a i2c
> device. I am not sure we can register a I2C device as a clock
> controller. I wanted to discuss and explore this option here.
Have you considered using the generic PHY framework for those HDMI
PHY devices [1] ? I guess we could add a dedicated group of ops for
video PHYs, similarly as is is done with struct v4l2_subdev_ops. For
configuring things like the carrier/pixel clock frequency or anything
what's common across the video PHYs.
Perhaps you could have a look and see if this framework would be
useful for HDMI and possibly point out anything what might be missing ?
I'm not sure it it really solves the issues specific to the Exynos
HDMI but at least with a generic PHY driver the PHY module would be
separate from the PHY controller, as often same HDMI DPHY can be used
with various types of a HDMI controller. So this would allow to not
duplicate the HDMI PHY drivers in the long-term perspective.
[1] https://lkml.org/lkml/2013/4/29/95
Thanks,
Sylwester
> As you said, in parallel, I will align these changes and along with
> "drm/exynos: hdmi: move hdmiphy related code to hdmiphy driver"
> series and post them.
>
> I hope we should be able to close on one of the above approaches for
> hdmiphy.
>
> regards,
> Rahul Sharma.
>
> On Wed, Jun 12, 2013 at 9:57 AM, Inki Dae <inki.dae@samsung.com> wrote:
>>
>> 2013/6/12 Inki Dae <inki.dae@samsung.com>
>>>
>>> Hi Rahul,
>>>
>>> This patch is important to us. Actually, previous hdmi driver had
>>> controlled hdmiphy HDMI_PHY_CONTROL as if that were a clock but now that
>>> doesn't exist anymore. So we need to discuss how hdmiphy should be handled.
>>> I konw that you had already posted hdmiphy relevant patch set, [PATCH 0/4]
>>> drm/exynos: hdmi: move hdmiphy related code to hdmiphy driver.
>>>
>>> I think we can couple pmu register controlling codes with that patch set
>>> without RFC. Could you update and post them again? like below,
>>> [PATCH 0/4] drm/exynos: hdmi: move hdmiphy related code to hdmiphy driver
>>> + [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg
>>> control
>>>
>>> And then let's start review :)
>>
>> And I think It would be better to move the pmu register controlling codes
>> into hdmiphy driver like drivers/usb/phy/phy-samsung-usb2.c driver does.
>>>
>>> Thanks,
>>> Inki Dae
>>>
>>> 2013/6/11 Rahul Sharma <rahul.sharma@samsung.com>
>>>>
>>>> Previously, hdmiphy is added as a dummy clock in clock file for
>>>> exynos SoCs. Enable/Disable to this clock, actually toggles the power
>>>> control bit in PMU, instead of controlling the clock gate.
>>>>
>>>> This RFC adds the support to parse hdmiphy control node which is a child
>>>> node to hdmi, and map the pmu register to toggle the power control bit.
>>>>
>>>> This is based on drm-next branch in Inki Dae's tree.
>>>>
>>>> Rahul Sharma (2):
>>>> drm/exynos: replace dummy hdmiphy clock with pmu register control
>>>> ARM/dts: add hdmiphy power control pmu register to hdmi dt node
>>>>
>>>> arch/arm/boot/dts/exynos5250.dtsi | 6 +++
>>>> drivers/gpu/drm/exynos/exynos_hdmi.c | 69
>>>> ++++++++++++++++++++++++++++++----
>>>> drivers/gpu/drm/exynos/regs-hdmi.h | 4 ++
>>>> 3 files changed, 71 insertions(+), 8 deletions(-)
>>>>
>>>> --
>>>> 1.7.10.4
--
Sylwester Nawrocki
Samsung R&D Institute Poland
Samsung Electronics
next prev parent reply other threads:[~2013-06-13 8:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-11 7:17 [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control Rahul Sharma
2013-06-11 7:17 ` [RFC 1/2] drm/exynos: replace dummy hdmiphy clock with pmu register control Rahul Sharma
2013-06-11 7:17 ` [RFC 2/2] ARM/dts: add hdmiphy power control pmu register to hdmi dt node Rahul Sharma
[not found] ` <1370935073-7475-1-git-send-email-rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-06-12 4:18 ` [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control Inki Dae
[not found] ` <CAAQKjZMuSQhbYtOyni-RdHhXu0fv3U2Dm_2iqRLe0smSt_jjjQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-12 4:27 ` Inki Dae
2013-06-13 4:26 ` Rahul Sharma
2013-06-13 8:55 ` Sylwester Nawrocki [this message]
2013-06-13 11:21 ` Inki Dae
[not found] ` <02c101ce6828$29ab0f20$7d012d60$%dae-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-06-13 12:54 ` Kishon Vijay Abraham I
2013-06-14 6:09 ` 김승우
2013-06-18 10:03 ` Rahul Sharma
2013-06-18 11:37 ` Kishon Vijay Abraham I
2013-07-30 3:42 ` Rahul Sharma
2013-07-30 5:07 ` Kishon Vijay Abraham I
2013-07-30 5:49 ` Rahul Sharma
2013-07-30 6:06 ` Seung-Woo Kim
2013-07-30 8:51 ` Rahul Sharma
2013-07-31 11:23 ` Rahul Sharma
2013-07-31 12:11 ` Sylwester Nawrocki
2013-08-01 6:55 ` Rahul Sharma
2013-08-28 8:36 ` Inki Dae
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=51B98908.8050403@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=grant.likely@linaro.org \
--cc=inki.dae@samsung.com \
--cc=joshi@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=kishon@ti.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=r.sh.open@gmail.com \
--cc=rahul.sharma@samsung.com \
--cc=seanpaul@chromium.org \
--cc=sw0312.kim@samsung.com \
--cc=swarren@wwwdotorg.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