* [PATCH 0/2] For now all I have is the getter and setter for the phase, nothing that uses it
@ 2014-11-14 22:52 Alexandru M Stan
2014-11-14 22:52 ` [PATCH 1/2] clk: rockchip: add bindings for the mmc clock phases Alexandru M Stan
0 siblings, 1 reply; 3+ messages in thread
From: Alexandru M Stan @ 2014-11-14 22:52 UTC (permalink / raw)
To: Heiko Stuebner, Doug Anderson, addy ke
Cc: Sonny Rao, Kever Yang, Alexandru M Stan, mark.rutland-5wv7dgnIgG8,
devicetree-u79uwXL29TY76Z2rM5mHXA,
mturquette-QSEj5FYQhm4dnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, galak-sgV2jX0FEOL9JmXXK+q4OQ,
mark.yao-TNX95d0MmH7DzftRWevZcw,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
(that is ready). You can test the getter like this:
localhost ~ # cat /sys/kernel/debug/clk/clk_summary|grep sample -C 1
sclk_sdio1 0 0 24000000 0 0
sdio1_sample 0 0 12000000 0 0
sdio1_drv 0 0 12000000 0 90
--
sclk_sdmmc 1 1 297000000 0 0
sdmmc_sample 0 0 148500000 0 134
sdmmc_drv 0 0 148500000 0 90
--
sclk_sdio0 1 1 100000000 0 0
sdio0_sample 0 0 50000000 0 0
sdio0_drv 0 0 50000000 0 90
sclk_emmc 1 1 100000000 0 0
emmc_sample 0 0 50000000 0 0
emmc_drv 0 0 50000000 0 180
Next thing that will come is some dts changes that will make use of these new
clocks, and eventually mmc code will be changed to tune with these clocks.
Alexandru M Stan (2):
clk: rockchip: add bindings for the mmc clock phases
clk: rockchip: Add support for the mmc clock phases using the
framework
drivers/clk/rockchip/Makefile | 1 +
drivers/clk/rockchip/clk-mmc-phase.c | 150 +++++++++++++++++++++++++++++++++
drivers/clk/rockchip/clk-rk3288.c | 12 +++
drivers/clk/rockchip/clk.c | 8 ++
drivers/clk/rockchip/clk.h | 23 +++++
include/dt-bindings/clock/rk3288-cru.h | 10 +++
6 files changed, 204 insertions(+)
create mode 100644 drivers/clk/rockchip/clk-mmc-phase.c
--
2.1.0.rc2.206.gedb03e5
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] clk: rockchip: add bindings for the mmc clock phases
2014-11-14 22:52 [PATCH 0/2] For now all I have is the getter and setter for the phase, nothing that uses it Alexandru M Stan
@ 2014-11-14 22:52 ` Alexandru M Stan
[not found] ` <1416005574-7756-2-git-send-email-amstan-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Alexandru M Stan @ 2014-11-14 22:52 UTC (permalink / raw)
To: Heiko Stuebner, Doug Anderson, addy ke
Cc: Sonny Rao, Kever Yang, Alexandru M Stan, robh+dt, pawel.moll,
mark.rutland, ijc+devicetree, galak, mturquette, mark.yao,
devicetree, linux-kernel
This will be used in a later patch for clock phase tuning.
Suggested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
---
include/dt-bindings/clock/rk3288-cru.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/dt-bindings/clock/rk3288-cru.h b/include/dt-bindings/clock/rk3288-cru.h
index 100a08c..465d0f6 100644
--- a/include/dt-bindings/clock/rk3288-cru.h
+++ b/include/dt-bindings/clock/rk3288-cru.h
@@ -72,6 +72,16 @@
#define SCLK_HEVC_CABAC 111
#define SCLK_HEVC_CORE 112
+#define SCLK_SDMMC_DRV_PHASE 113
+#define SCLK_SDIO0_DRV_PHASE 114
+#define SCLK_SDIO1_DRV_PHASE 115
+#define SCLK_EMMC_DRV_PHASE 116
+
+#define SCLK_SDMMC_SAMPLE_PHASE 117
+#define SCLK_SDIO0_SAMPLE_PHASE 118
+#define SCLK_SDIO1_SAMPLE_PHASE 119
+#define SCLK_EMMC_SAMPLE_PHASE 120
+
#define DCLK_VOP0 190
#define DCLK_VOP1 191
--
2.1.0.rc2.206.gedb03e5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] clk: rockchip: add bindings for the mmc clock phases
[not found] ` <1416005574-7756-2-git-send-email-amstan-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
@ 2014-11-18 17:44 ` Doug Anderson
0 siblings, 0 replies; 3+ messages in thread
From: Doug Anderson @ 2014-11-18 17:44 UTC (permalink / raw)
To: Alexandru M Stan
Cc: Heiko Stuebner, addy ke, Sonny Rao, Kever Yang, Rob Herring,
Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Mike Turquette, Mark yao,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Hi,
On Fri, Nov 14, 2014 at 2:52 PM, Alexandru M Stan <amstan-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote:
> This will be used in a later patch for clock phase tuning.
>
> Suggested-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
> Signed-off-by: Alexandru M Stan <amstan-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
> ---
> include/dt-bindings/clock/rk3288-cru.h | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/include/dt-bindings/clock/rk3288-cru.h b/include/dt-bindings/clock/rk3288-cru.h
> index 100a08c..465d0f6 100644
> --- a/include/dt-bindings/clock/rk3288-cru.h
> +++ b/include/dt-bindings/clock/rk3288-cru.h
> @@ -72,6 +72,16 @@
> #define SCLK_HEVC_CABAC 111
> #define SCLK_HEVC_CORE 112
>
> +#define SCLK_SDMMC_DRV_PHASE 113
> +#define SCLK_SDIO0_DRV_PHASE 114
> +#define SCLK_SDIO1_DRV_PHASE 115
> +#define SCLK_EMMC_DRV_PHASE 116
> +
> +#define SCLK_SDMMC_SAMPLE_PHASE 117
> +#define SCLK_SDIO0_SAMPLE_PHASE 118
> +#define SCLK_SDIO1_SAMPLE_PHASE 119
> +#define SCLK_EMMC_SAMPLE_PHASE 120
> +
Thinking about Mike T's comment, we might want to actually rename
these defines and just remove the "_PHASE". These clocks _are_ the
drive and sample clocks. Sure, they happen to have phases as one of
the attributes, but they aren't "phase clocks".
FYI, the TRM shows these clocks as:
- Into "clkgen" you see cclkin (the *2 clock)
- Out of "clkgen" you see:
--> "cclk_in" (the non *2 clock)
--> "cclk_in_drv" (the drive clock, which might be shifted)
--> "cclk_in_sample" (the sample clock, which might be shifted)
Right now we're not modeling the non-shifted, non *2 clock. I think
that's OK (otherwise we've got a bunch of old device trees to change,
since the old DTS files passed in the *2 clock as the card clock).
-Doug
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-18 17:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 22:52 [PATCH 0/2] For now all I have is the getter and setter for the phase, nothing that uses it Alexandru M Stan
2014-11-14 22:52 ` [PATCH 1/2] clk: rockchip: add bindings for the mmc clock phases Alexandru M Stan
[not found] ` <1416005574-7756-2-git-send-email-amstan-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-11-18 17:44 ` Doug Anderson
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).