From: Xing Zheng <zhengxing@rock-chips.com>
To: Heiko Stuebner <heiko@sntech.de>, Doug Anderson <dianders@google.com>
Cc: "Frank Wang" <frank.wang@rock-chips.com>,
"Brian Norris" <briannorris@chromium.org>,
"William wu" <wulf@rock-chips.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Will Deacon" <will.deacon@arm.com>,
"Caesar Wang" <wxt@rock-chips.com>,
"Jianqun Xu" <jay.xu@rock-chips.com>,
"Elaine Zhang" <zhangqing@rock-chips.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
"Tao Huang" <huangtao@rock-chips.com>,
"open list:ARM/Rockchip SoC..."
<linux-rockchip@lists.infradead.org>,
"daniel.meng" <daniel.meng@rock-chips.com>,
"Kever Yang" <kever.yang@rock-chips.com>,
郑兴 <xing.zheng@rock-chips.com>
Subject: Re: [PATCH 3/3] arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399
Date: Fri, 16 Dec 2016 14:57:01 +0800 [thread overview]
Message-ID: <5853903D.8030605@rock-chips.com> (raw)
In-Reply-To: <2526685.VC5cUs58On@phil>
[-- Attachment #1: Type: text/plain, Size: 1978 bytes --]
Hi Heiko, Doug,
On 2016年12月16日 02:18, Heiko Stuebner wrote:
> Am Donnerstag, 15. Dezember 2016, 08:34:09 CET schrieb Doug Anderson:
>
>> I still need to digest all of the things that were added to this
>> thread overnight, but nothing I've seen so far indicates that you need
>> the post-gated clock. AKA I still think you need to redo your patch
>> to replace:
>>
>> clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
>> <&cru SCLK_USBPHY0_480M_SRC>;
>>
>> with:
>>
>> clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
>> <&u2phy0>;
>>
>> Can you please comment on that?
> Also, with the change, the ehci will keep the clock (and thus the phy) always
> on. Does the phy-autosuspend even save anything now?
>
> In any case, could we make the clock-names entry sound nicer than usbphy0_480m
> please? bindings/usb/atmel-usb.txt calls its UTMI clock simply "usb_clk", but
> something like "utmi" should also work.
> While at it you could also fix up the other clock names to something like
> "host" and "arbiter" or so?.
>
>
> Heiko
>
The usbphy related clock tress like this:
Actually, at drivers/phy/phy-rockchip-inno-usb2.c, we can only
enable/disable the master gate via GRF is PHY_PLL, not UTMI_CLK.
And the naming style of the "hclk_host0" keep the name "hclk_host0" on
the clcok tree diagram:
Therefore, could we rename the clock name like this:
----
for usb_host0_ehci and usb_host0_ohci:
clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
<&cru SCLK_U2PHY0>;
clock-names = "hclk_host0", "hclk_host0_arb",
"sclk_u2phy0";
for usb_host1_ehci and usb_host1_ohci:
clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
<&cru SCLK_U2PHY1>;
clock-names = "hclk_host1", "hclk_host1_arb",
"sclk_u2phy1";
----
BTW, the "arb" is an abbreviation for arbiter.
Thanks.
--
- Xing Zheng
[-- Attachment #2.1: Type: text/html, Size: 2965 bytes --]
[-- Attachment #2.2: iajadige.png --]
[-- Type: image/png, Size: 10118 bytes --]
[-- Attachment #2.3: egdfjghh.png --]
[-- Type: image/png, Size: 4934 bytes --]
next prev parent reply other threads:[~2016-12-16 6:57 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-14 10:11 [PATCH 0/3] Add and export clk-480m clocks for ehci and ohci on RK3399 Xing Zheng
2016-12-14 10:11 ` Xing Zheng
2016-12-14 10:11 ` Xing Zheng
[not found] ` <1481710301-1454-1-git-send-email-zhengxing-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-12-14 10:11 ` [PATCH 1/3] clk: rockchip: rk3399: add USBPHYx_480M_SRC clock IDs Xing Zheng
2016-12-14 10:11 ` Xing Zheng
2016-12-15 0:27 ` Doug Anderson
2016-12-14 10:11 ` [PATCH 2/3] clk: rockchip: rk3399: export 480M_SRC clocks id for usbphy0/usbphy1 Xing Zheng
2016-12-14 10:11 ` Xing Zheng
2016-12-15 0:28 ` Doug Anderson
2016-12-15 0:28 ` Doug Anderson
2016-12-15 0:28 ` Doug Anderson
2016-12-14 10:11 ` [PATCH 3/3] arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399 Xing Zheng
2016-12-14 10:11 ` Xing Zheng
[not found] ` <1481710301-1454-4-git-send-email-zhengxing-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-12-15 0:10 ` Doug Anderson
2016-12-15 0:10 ` Doug Anderson
2016-12-15 0:10 ` Doug Anderson
[not found] ` <CAD=FV=UU4JdRjRgEvc_wxprvi6bo46+jd=x2m2QzOe4uJmuRPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-15 0:47 ` Brian Norris
2016-12-15 0:47 ` Brian Norris
2016-12-15 0:47 ` Brian Norris
[not found] ` <20161215004737.GA32652-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2016-12-15 1:18 ` Brian Norris
2016-12-15 1:18 ` Brian Norris
2016-12-15 1:18 ` Brian Norris
2016-12-15 2:41 ` Xing Zheng
2016-12-15 2:41 ` Xing Zheng
2016-12-15 2:41 ` Xing Zheng
[not found] ` <5ce521da-119a-2de8-026c-5992fedfef43-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-12-15 3:20 ` Brian Norris
2016-12-15 3:20 ` Brian Norris
2016-12-15 3:20 ` Brian Norris
2016-12-15 6:41 ` Frank Wang
2016-12-15 6:41 ` Frank Wang
[not found] ` <991221a4-3962-1bcb-7863-72f5553eba40-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-12-15 16:34 ` Doug Anderson
2016-12-15 16:34 ` Doug Anderson
2016-12-15 16:34 ` Doug Anderson
[not found] ` <CAD=FV=XKQaqRS4jUM7NpN2KEV8USj_cVWbh7q4274n3jBtwORg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-15 18:18 ` Heiko Stuebner
2016-12-15 18:18 ` Heiko Stuebner
2016-12-15 18:18 ` Heiko Stuebner
2016-12-16 6:57 ` Xing Zheng [this message]
[not found] ` <5853903D.8030605-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-12-16 17:28 ` Doug Anderson
2016-12-16 17:28 ` Doug Anderson
2016-12-16 17:28 ` Doug Anderson
[not found] ` <CAD=FV=W1BW6FSZ6MSxR6RhvtZyGsdQbz9vU_QshaQ5A65ENMCg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-21 10:44 ` Xing Zheng
2016-12-21 10:44 ` Xing Zheng
2016-12-21 10:44 ` Xing Zheng
2016-12-17 1:20 ` Heiko Stuebner
2016-12-17 1:20 ` Heiko Stuebner
2016-12-17 1:20 ` Heiko Stuebner
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=5853903D.8030605@rock-chips.com \
--to=zhengxing@rock-chips.com \
--cc=briannorris@chromium.org \
--cc=catalin.marinas@arm.com \
--cc=daniel.meng@rock-chips.com \
--cc=devicetree@vger.kernel.org \
--cc=dianders@google.com \
--cc=dmitry.torokhov@gmail.com \
--cc=frank.wang@rock-chips.com \
--cc=heiko@sntech.de \
--cc=huangtao@rock-chips.com \
--cc=jay.xu@rock-chips.com \
--cc=kever.yang@rock-chips.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=will.deacon@arm.com \
--cc=wulf@rock-chips.com \
--cc=wxt@rock-chips.com \
--cc=xing.zheng@rock-chips.com \
--cc=zhangqing@rock-chips.com \
/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.