devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kishon Vijay Abraham I <kishon-l0cyMroinI0@public.gmane.org>
To: Inki Dae <inki.dae-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
Cc: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	'Seung-Woo Kim'
	<sw0312.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	'sunil joshi' <joshi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	'DRI mailing list'
	<dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
	'Kukjin Kim' <kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	'Sylwester Nawrocki'
	<s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
	'Rahul Sharma'
	<r.sh.open-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	'Rahul Sharma'
	<rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
Subject: Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control
Date: Thu, 13 Jun 2013 18:24:05 +0530	[thread overview]
Message-ID: <51B9C0ED.2040605@ti.com> (raw)
In-Reply-To: <02c101ce6828$29ab0f20$7d012d60$%dae-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>

Hi,

On Thursday 13 June 2013 04:51 PM, Inki Dae wrote:
>
>
>> -----Original Message-----
>> From: Sylwester Nawrocki [mailto:s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org]
>> Sent: Thursday, June 13, 2013 5:56 PM
>> To: Rahul Sharma
>> Cc: Rahul Sharma; Inki Dae; linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; devicetree-
>> discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org; DRI mailing list; Kukjin Kim; Seung-Woo Kim;
>> Sean Paul; sunil joshi; Kishon Vijay Abraham I; Stephen Warren;
>> grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org
>> Subject: Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with
>> pmu reg control
>>
>> 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.
>
> Yeah, at least, it seems that we could use PHY module to control PMU
> register, HDMI_PHY_CONTROL. However, PHY module provides only init/on/off
> callbacks. As you may know, HDMIPHY needs i2c interfaces to control HDMIPHY
> clock. So with PHY module, HDMIPHY driver could enable PMU more generically,
> but also has to use existing i2c stuff to control HDMIPHY clock. I had a
> quick review to Generic PHY Framework[v6] but I didn't see that the PHY
> module could generically support more features such as i2c stuff.

I don't think PHY framework needs to provide i2c interfaces to program 
certain configurations. Instead in one of the callbacks (init/on/off) 
PHY driver can program whatever it wants using any of the interfaces it 
needs. IMO PHY framework should work independent of the interfaces.

For example, twl4030 phy driver actually uses i2c to program its 
registers but still it uses the PHY framework [1].

[1] --> http://www.gossamer-threads.com/lists/linux/kernel/1729414

Thanks
Kishon

  parent reply	other threads:[~2013-06-13 12:54 UTC|newest]

Thread overview: 15+ 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 [this message]
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  6:06                           ` Seung-Woo Kim

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=51B9C0ED.2040605@ti.com \
    --to=kishon-l0cymroini0@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=inki.dae-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=joshi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=r.sh.open-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=rahul.sharma-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=s.nawrocki-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=sw0312.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.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;
as well as URLs for NNTP newsgroup(s).