All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rahul Sharma <r.sh.open@gmail.com>
To: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: sw0312.kim@samsung.com, Kishon Vijay Abraham I <kishon@ti.com>,
	linux-samsung-soc@vger.kernel.org,
	Stephen Warren <swarren@wwwdotorg.org>,
	sunil joshi <joshi@samsung.com>,
	DRI mailing list <dri-devel@lists.freedesktop.org>,
	Kukjin Kim <kgene.kim@samsung.com>,
	grant.likely@linaro.org, Rahul Sharma <rahul.sharma@samsung.com>,
	Inki Dae <inki.dae@samsung.com>
Subject: Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control
Date: Thu, 1 Aug 2013 12:25:44 +0530	[thread overview]
Message-ID: <CAPdUM4OtmOdNmyUPjODTgGk4zWOqz+8pihRg2YGoppArR3PO+A@mail.gmail.com> (raw)
In-Reply-To: <51F8FEF9.9020107@samsung.com>

Thanks Sylwester,

On Wed, Jul 31, 2013 at 5:41 PM, Sylwester Nawrocki
<s.nawrocki@samsung.com> wrote:
> Hi Rahul,
>
> On 07/31/2013 01:23 PM, Rahul Sharma wrote:
>>>> I think your hdmiphy pmu patch is good enough just if dt binding for pmu
>>>> >> is in hdmiphy binding instead of hdmi binding. So I recommended to make
>>>> >> pmu patch set on the top of independent hdmiphy patch set because with
>>>> >> independent hdmiphy patch set hdmiphy pmu code is moved to hdmiphy driver.
>>>> >>
>>>> >> Is it possible that hdmi driver references pmu information from hdmiphy
>>>> >> binding? If that, it seems one possible solution to fix current exynos
>>>> >> hdmi broken.
>>>> >>
>>>> >> Thanks and Regards,
>>>> >> - Seung-Woo Kim
>>>> >>
>>> >
>>> > I can surely do that but, I am worried about hdmiphy control bus.
>>> > change In 5420. It is changed to platform bus from i2c. Isolating
>>> > hdmiphy from hdmi driver seems the only clean method to handle
>>> > control bus change, changed phy configurations and power control
>>> > through PMU bit.
>>> >
>>> > To fix broken hdmi for 5420, I can again post the "hdmiphy
>>> > separation patches" to place hdmiphy driver in DRM. Later we can
>>> > migrate to Generic Phy Framework.
>>> >
>>
>> Hi Seung Woo, Mr. Dae, Sylwester,
>>
>> What you say on this? Shall I separate hdmiphy in following manner:
>>
>> 1) Move all phy related code to hdmiphy driver i.e. exynos_hdmiphy.c
>> 2) hdmiphy driver exposes power_on/off and set_pixel callbacks for
>> hdmi driver.
>> 3) let hdmi driver behave as phy controller for hdmiphy.
>> 4) move PMU bit control to hdmiphy driver, instead of hdmi driver.
>>
>> This way we will be very close to generic phy framework implementation
>> and migration to generic phy framework will be just a cakewalk.
>
> This all sound good to me, it seem natural to put the HDMI PHY
> functionality into a separate module. Hardware-wise the PHY is quite
> separate and as experience shows different PHYs can be attached to
> same controller. Well, we have well known that before...
>
> I'm not sure what the problem is with adding subsystem specific
> classes of operations (set of callback) to the generic PHY API, until
> that gets sorted out your approach looks good to me.
>
> As a side note, originally the V4L2 driver exposed the HDMI PHY
> as struct v4l2_subdev object, have a look at drivers/media/platform/
> s5p-tv/hdmiphy_drv.c. And in case of exynos5 we would just have
> created a platform driver for the HDMI PHY which would expose same
> subdev interface. So something similar as you proposed above.
>

Yea, it is very similar to s5p-tv/hdmiphy_drv.c. On top of this, I want
to make hdmiphy platform device as Clock provider for hdmiphy clock,
as you have done for cam_clkout*. Hdmi driver will call set_rate on this
clock.

I will post patches for the above separation and move hdmiphy to Generic
Phy framework after we get clarity on how to add additional callbacks.

Thanks for your reply.

Regards,
Rahul Sharma

>
> Regards,
> Sylwester
>

  reply	other threads:[~2013-08-01  6: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
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 [this message]
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=CAPdUM4OtmOdNmyUPjODTgGk4zWOqz+8pihRg2YGoppArR3PO+A@mail.gmail.com \
    --to=r.sh.open@gmail.com \
    --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=rahul.sharma@samsung.com \
    --cc=s.nawrocki@samsung.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.