Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control

2013-06-18 Thread Kishon Vijay Abraham I
Hi,

On Tuesday 18 June 2013 03:33 PM, Rahul Sharma wrote:
> Thanks all,
> 
> On Fri, Jun 14, 2013 at 11:39 AM, 김승우  wrote:
>> Hello Kishon,
>>
>> On 2013년 06월 13일 21:54, Kishon Vijay Abraham I wrote:
>>> Hi,
>>>
>>> On Thursday 13 June 2013 04:51 PM, Inki Dae wrote:
>>>>
>>>>
>>>>> -Original Message-
>>>>> From: Sylwester Nawrocki [mailto:s.nawro...@samsung.com]
>>>>> Sent: Thursday, June 13, 2013 5:56 PM
>>>>> To: Rahul Sharma
>>>>> Cc: Rahul Sharma; Inki Dae; linux-samsung-...@vger.kernel.org;
>>>>> devicetree-
>>>>> disc...@lists.ozlabs.org; DRI mailing list; Kukjin Kim; Seung-Woo Kim;
>>>>> Sean Paul; sunil joshi; Kishon Vijay Abraham I; Stephen Warren;
>>>>> grant.lik...@linaro.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.
>>
>> In exnoys hdmi case, i2c interface is not the exact issue. In exynos
>> hdmi, hdmiphy should send i2c configuration about video clock
>> information as the video mode information including resolution, bit per
>> pixel, refresh rate passed from drm subsystem. So init/on/off callbacks
>> of phy framework are not enough for exynos hdmiphy and it should have a
>> callback to set video mode.
>>
>> Do you have plan to add driver specific extend callback pointers to phy
>> framework?
>>
>> Currently, hdmi directly calls phy operations, but Rahul's another patch
>> set, mentioned by Inki, divides hdmi and hdmiphy and hdmi and hdmiphy is
>> connected with exynos hdmi own sub driver callback operations.
>>
>> IMHO, if phy framework can support extend callback feature, then this
>> own sub driver callbacks can be replaced with phy framework at long term
>> view.
> 
> Extended callbacks are always welcome. I can also use phy device
> private data to pass on private ops like get_pixelclk and set_pixelclk.

I would recommend creating a wrapper to the existing PHY framework
for HDMI PHY. That way, we can have other HDMI phys added
easily. We need to figure out all the ops that might be needed by the
HDMI PHY to be added to the wrapper.
IMO extended callbacks can lead to abuse of the system and should be
used only when absolutely necessary.

Thanks
Kishon
___
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss


Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control

2013-06-18 Thread Rahul Sharma
Thanks all,

On Fri, Jun 14, 2013 at 11:39 AM, 김승우  wrote:
> Hello Kishon,
>
> On 2013년 06월 13일 21:54, Kishon Vijay Abraham I wrote:
>> Hi,
>>
>> On Thursday 13 June 2013 04:51 PM, Inki Dae wrote:
>>>
>>>
>>>> -Original Message-
>>>> From: Sylwester Nawrocki [mailto:s.nawro...@samsung.com]
>>>> Sent: Thursday, June 13, 2013 5:56 PM
>>>> To: Rahul Sharma
>>>> Cc: Rahul Sharma; Inki Dae; linux-samsung-...@vger.kernel.org;
>>>> devicetree-
>>>> disc...@lists.ozlabs.org; DRI mailing list; Kukjin Kim; Seung-Woo Kim;
>>>> Sean Paul; sunil joshi; Kishon Vijay Abraham I; Stephen Warren;
>>>> grant.lik...@linaro.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.
>
> In exnoys hdmi case, i2c interface is not the exact issue. In exynos
> hdmi, hdmiphy should send i2c configuration about video clock
> information as the video mode information including resolution, bit per
> pixel, refresh rate passed from drm subsystem. So init/on/off callbacks
> of phy framework are not enough for exynos hdmiphy and it should have a
> callback to set video mode.
>
> Do you have plan to add driver specific extend callback pointers to phy
> framework?
>
> Currently, hdmi directly calls phy operations, but Rahul's another patch
> set, mentioned by Inki, divides hdmi and hdmiphy and hdmi and hdmiphy is
> connected with exynos hdmi own sub driver callback operations.
>
> IMHO, if phy framework can support extend callback feature, then this
> own sub driver callbacks can be replaced with phy framework at long term
> view.

Extended callbacks are always welcome. I can also use phy device
private data to pass on private ops like get_pixelclk and set_pixelclk.
Similar logic has been used to pass struct omap_usb to usb phy
controller. I can add these changes for migration of hdmiphy to
generic phy framwork to my hdmiphy separation patch set.

regards,
Rahul Sharm

Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control

2013-06-13 Thread 김승우
Hello Kishon,

On 2013년 06월 13일 21:54, Kishon Vijay Abraham I wrote:
> Hi,
> 
> On Thursday 13 June 2013 04:51 PM, Inki Dae wrote:
>>
>>
>>> -Original Message-
>>> From: Sylwester Nawrocki [mailto:s.nawro...@samsung.com]
>>> Sent: Thursday, June 13, 2013 5:56 PM
>>> To: Rahul Sharma
>>> Cc: Rahul Sharma; Inki Dae; linux-samsung-...@vger.kernel.org;
>>> devicetree-
>>> disc...@lists.ozlabs.org; DRI mailing list; Kukjin Kim; Seung-Woo Kim;
>>> Sean Paul; sunil joshi; Kishon Vijay Abraham I; Stephen Warren;
>>> grant.lik...@linaro.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.

In exnoys hdmi case, i2c interface is not the exact issue. In exynos
hdmi, hdmiphy should send i2c configuration about video clock
information as the video mode information including resolution, bit per
pixel, refresh rate passed from drm subsystem. So init/on/off callbacks
of phy framework are not enough for exynos hdmiphy and it should have a
callback to set video mode.

Do you have plan to add driver specific extend callback pointers to phy
framework?

Currently, hdmi directly calls phy operations, but Rahul's another patch
set, mentioned by Inki, divides hdmi and hdmiphy and hdmi and hdmiphy is
connected with exynos hdmi own sub driver callback operations.

IMHO, if phy framework can support extend callback feature, then this
own sub driver callbacks can be replaced with phy framework at long term
view.

Thanks and Regards,
- Seung-Woo Kim

> 
> 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
> -- 
> To unsubscribe from this list: send the line "unsubscribe
> linux-samsung-soc" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Seung-Woo Kim
Samsung Software R&D Center
--

___
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss


Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control

2013-06-13 Thread Kishon Vijay Abraham I

Hi,

On Thursday 13 June 2013 04:51 PM, Inki Dae wrote:




-Original Message-
From: Sylwester Nawrocki [mailto:s.nawro...@samsung.com]
Sent: Thursday, June 13, 2013 5:56 PM
To: Rahul Sharma
Cc: Rahul Sharma; Inki Dae; linux-samsung-...@vger.kernel.org; devicetree-
disc...@lists.ozlabs.org; DRI mailing list; Kukjin Kim; Seung-Woo Kim;
Sean Paul; sunil joshi; Kishon Vijay Abraham I; Stephen Warren;
grant.lik...@linaro.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
___
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss


RE: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control

2013-06-13 Thread Inki Dae


> -Original Message-
> From: Sylwester Nawrocki [mailto:s.nawro...@samsung.com]
> Sent: Thursday, June 13, 2013 5:56 PM
> To: Rahul Sharma
> Cc: Rahul Sharma; Inki Dae; linux-samsung-...@vger.kernel.org; devicetree-
> disc...@lists.ozlabs.org; DRI mailing list; Kukjin Kim; Seung-Woo Kim;
> Sean Paul; sunil joshi; Kishon Vijay Abraham I; Stephen Warren;
> grant.lik...@linaro.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.

Thanks,
Inki Dae

> 
> [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  wrote:
> >>
> >> 2013/6/12 Inki Dae 
> >>>
> >>> 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 
> >>>>
> >>>> 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

Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control

2013-06-13 Thread Sylwester Nawrocki
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  wrote:
>>
>> 2013/6/12 Inki Dae 
>>>
>>> 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 

 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
___
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss


Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control

2013-06-12 Thread Rahul Sharma
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.

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  wrote:
>
>
>
> 2013/6/12 Inki Dae 
>>
>> 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 
>>>
>>> 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
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe
>>> linux-samsung-soc" in
>>> the body of a message to majord...@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
>
___
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss


Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control

2013-06-11 Thread Inki Dae
2013/6/12 Inki Dae 

> 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 
>
>> 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
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> linux-samsung-soc" in
>> the body of a message to majord...@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
>
___
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss


Re: [RFC 0/2] exynos5250/hdmi: replace dummy hdmiphy clock with pmu reg control

2013-06-11 Thread Inki Dae
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 :)

Thanks,
Inki Dae



2013/6/11 Rahul Sharma 

> 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
>
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-samsung-soc" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
___
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss