linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [RESEND PATCH 0/1] add multiple clock handling for dwc2 driver
       [not found] <eb6931a1-4679-1579-27fe-d444ae84a122@rock-chips.com>
@ 2017-02-06  2:20 ` Frank Wang
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Wang @ 2017-02-06  2:20 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: johnyoun, gregkh, linux-kernel, linux-usb, linux-rockchip,
	huangtao, kever.yang, william.wu, elaine.zhang, frank.wang

Sorry to reformat the graph.

On 2017/2/6 9:40, Frank Wang wrote:
> Hi Heiko,
>
> On 2017/2/5 17:41, Heiko Stuebner wrote:
>> Hi Frank,
>>
>> Am Sonntag, 5. Februar 2017, 10:51:00 CET schrieb Frank Wang:
>>> The original posting on Jan 19th have not received any responses, so I
>>> resend them.
>>>
>>> The Current default dwc2 just handle one clock named otg, however,
>>> it may
>>> have two or more clock need to manage for some new SoCs(such as
>>> RK3328), so
>>> this adds change clk to clk's array of dwc2_hsotg to handle more clocks
>>> operation.
>> can you please give a bit more detail on the specific layout.
>>
>> I guess you're talking about hclk_otg_pmu, right? What component does it
>> supply, because I didn't find anything in the partial TRM in the PMU
>> section
>> relating to the "otg".
>
> Yes, it is hclk_otg_pmu.
>
> The rock-chip hclk_otg_pmu is an input clock for dwc2 PMU module which
> named pmu_hclk in chapter 2.4 of dwc otg databook v3.10.
> Please refer to the following simple clock tree from CRU part of
> rk3328 TRM.
>                      _ _ _ ...
>                     |
>                     |--> G19_8 --- hclk_otg ------->
> hclk_peri_pre -->    |
>                     |--> G19_9 --- hclk_otg_pmu --->
>                     |_ _ _ ...
>
>
> BR.
> Frank
>
>> This meant to make sure, you're actually controlling some part of the
>> dwc2
>> with that second/third/... clock and not some separate component.
>>
>>
>> Heiko
>>
>>
>>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RESEND PATCH 0/1] add multiple clock handling for dwc2 driver
  2017-02-06  1:40   ` Frank Wang
@ 2017-02-06 23:53     ` Heiko Stuebner
  0 siblings, 0 replies; 5+ messages in thread
From: Heiko Stuebner @ 2017-02-06 23:53 UTC (permalink / raw)
  To: Frank Wang
  Cc: johnyoun, gregkh, linux-kernel, linux-usb, linux-rockchip,
	huangtao, kever.yang, william.wu, elaine.zhang

Hi Frank,

Am Montag, 6. Februar 2017, 09:40:35 CET schrieb Frank Wang:
> On 2017/2/5 17:41, Heiko Stuebner wrote:
> > Am Sonntag, 5. Februar 2017, 10:51:00 CET schrieb Frank Wang:
> >> The original posting on Jan 19th have not received any responses, so I
> >> resend them.
> >> 
> >> The Current default dwc2 just handle one clock named otg, however, it may
> >> have two or more clock need to manage for some new SoCs(such as RK3328),
> >> so
> >> this adds change clk to clk's array of dwc2_hsotg to handle more clocks
> >> operation.
> > 
> > can you please give a bit more detail on the specific layout.
> > 
> > I guess you're talking about hclk_otg_pmu, right? What component does it
> > supply, because I didn't find anything in the partial TRM in the PMU
> > section relating to the "otg".
> 
> Yes, it is hclk_otg_pmu.
> 
> The rock-chip hclk_otg_pmu is an input clock for dwc2 PMU module which
> named pmu_hclk in chapter 2.4 of dwc otg databook v3.10.

ok great, on establishing that this is a actual part of the IP block.

I'm going to comment on the actual code change in a minute, so see you over 
there :-)

Heiko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RESEND PATCH 0/1] add multiple clock handling for dwc2 driver
  2017-02-05  9:41 ` Heiko Stuebner
@ 2017-02-06  1:40   ` Frank Wang
  2017-02-06 23:53     ` Heiko Stuebner
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Wang @ 2017-02-06  1:40 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: johnyoun, gregkh, linux-kernel, linux-usb, linux-rockchip,
	huangtao, kever.yang, william.wu, elaine.zhang, frank.wang

Hi Heiko,

On 2017/2/5 17:41, Heiko Stuebner wrote:
> Hi Frank,
>
> Am Sonntag, 5. Februar 2017, 10:51:00 CET schrieb Frank Wang:
>> The original posting on Jan 19th have not received any responses, so I
>> resend them.
>>
>> The Current default dwc2 just handle one clock named otg, however, it may
>> have two or more clock need to manage for some new SoCs(such as RK3328), so
>> this adds change clk to clk's array of dwc2_hsotg to handle more clocks
>> operation.
> can you please give a bit more detail on the specific layout.
>
> I guess you're talking about hclk_otg_pmu, right? What component does it
> supply, because I didn't find anything in the partial TRM in the PMU section
> relating to the "otg".

Yes, it is hclk_otg_pmu.

The rock-chip hclk_otg_pmu is an input clock for dwc2 PMU module which 
named pmu_hclk in chapter 2.4 of dwc otg databook v3.10.
Please refer to the following simple clock tree from CRU part of rk3328 
TRM.
                                  _ _ _ ...
                                 |
                                 |- - -> G19_8 - - - hclk_otg - - - - - - ->
hclk_peri_pre - - ->|
|- - -> G19_9 - - - hclk_otg_pmu - - ->
                                 |_ _ _ ...

BR.
Frank

> This meant to make sure, you're actually controlling some part of the dwc2
> with that second/third/... clock and not some separate component.
>
>
> Heiko
>
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RESEND PATCH 0/1] add multiple clock handling for dwc2 driver
  2017-02-05  2:51 Frank Wang
@ 2017-02-05  9:41 ` Heiko Stuebner
  2017-02-06  1:40   ` Frank Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Heiko Stuebner @ 2017-02-05  9:41 UTC (permalink / raw)
  To: Frank Wang
  Cc: johnyoun, gregkh, linux-kernel, linux-usb, linux-rockchip,
	huangtao, kever.yang, william.wu

Hi Frank,

Am Sonntag, 5. Februar 2017, 10:51:00 CET schrieb Frank Wang:
> The original posting on Jan 19th have not received any responses, so I
> resend them.
> 
> The Current default dwc2 just handle one clock named otg, however, it may
> have two or more clock need to manage for some new SoCs(such as RK3328), so
> this adds change clk to clk's array of dwc2_hsotg to handle more clocks
> operation.

can you please give a bit more detail on the specific layout.

I guess you're talking about hclk_otg_pmu, right? What component does it 
supply, because I didn't find anything in the partial TRM in the PMU section 
relating to the "otg".

This meant to make sure, you're actually controlling some part of the dwc2 
with that second/third/... clock and not some separate component.


Heiko

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [RESEND PATCH 0/1] add multiple clock handling for dwc2 driver
@ 2017-02-05  2:51 Frank Wang
  2017-02-05  9:41 ` Heiko Stuebner
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Wang @ 2017-02-05  2:51 UTC (permalink / raw)
  To: johnyoun, gregkh, heiko
  Cc: linux-kernel, linux-usb, linux-rockchip, huangtao, kever.yang,
	william.wu, frank.wang

The original posting on Jan 19th have not received any responses, so I resend them.

The Current default dwc2 just handle one clock named otg, however, it may have
two or more clock need to manage for some new SoCs(such as RK3328), so this
adds change clk to clk's array of dwc2_hsotg to handle more clocks operation.

Frank Wang (1):
  usb: dwc2: add multiple clock handling

 drivers/usb/dwc2/core.h     |  5 ++++-
 drivers/usb/dwc2/platform.c | 39 ++++++++++++++++++++++++++-------------
 2 files changed, 30 insertions(+), 14 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-06 23:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <eb6931a1-4679-1579-27fe-d444ae84a122@rock-chips.com>
2017-02-06  2:20 ` [RESEND PATCH 0/1] add multiple clock handling for dwc2 driver Frank Wang
2017-02-05  2:51 Frank Wang
2017-02-05  9:41 ` Heiko Stuebner
2017-02-06  1:40   ` Frank Wang
2017-02-06 23:53     ` Heiko Stuebner

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).