* [PATCH v2 1/3] clk: rockchip: add rk3288 vip_out clock ids
@ 2017-01-18 5:42 Jacob Chen
[not found] ` <1484718161-27702-1-git-send-email-jacob-chen-fyOeoxGR3m/QT0dZR+AlfA@public.gmane.org>
2017-01-23 0:26 ` [PATCH v2 1/3] clk: rockchip: add rk3288 vip_out clock ids Heiko Stuebner
0 siblings, 2 replies; 6+ messages in thread
From: Jacob Chen @ 2017-01-18 5:42 UTC (permalink / raw)
To: heiko-4mtYJXux2i+zQB+pC5nmwQ, mturquette-rdvid1DuHRBWk0Htik3J/w,
sboyd-sgV2jX0FEOL9JmXXK+q4OQ
Cc: zhengxing-TNX95d0MmH7DzftRWevZcw,
zhangqing-TNX95d0MmH7DzftRWevZcw,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jacob Chen,
linux-clk-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Add clock-ids for the vip block of the rk3288
Signed-off-by: Jacob Chen <jacob-chen-fyOeoxGR3m/QT0dZR+AlfA@public.gmane.org>
---
include/dt-bindings/clock/rk3288-cru.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/dt-bindings/clock/rk3288-cru.h b/include/dt-bindings/clock/rk3288-cru.h
index 9a586e2..11183bf 100644
--- a/include/dt-bindings/clock/rk3288-cru.h
+++ b/include/dt-bindings/clock/rk3288-cru.h
@@ -88,6 +88,7 @@
#define SCLK_PVTM_GPU 124
#define SCLK_CRYPTO 125
#define SCLK_MIPIDSI_24M 126
+#define SCLK_VIP_OUT 127
#define SCLK_MAC 151
#define SCLK_MACREF_OUT 152
--
2.7.4
^ permalink raw reply related [flat|nested] 6+ messages in thread[parent not found: <1484718161-27702-1-git-send-email-jacob-chen-fyOeoxGR3m/QT0dZR+AlfA@public.gmane.org>]
* [PATCH v2 2/3] clk: rockchip: use rk3288 vip_out clock ids [not found] ` <1484718161-27702-1-git-send-email-jacob-chen-fyOeoxGR3m/QT0dZR+AlfA@public.gmane.org> @ 2017-01-18 5:42 ` Jacob Chen 2017-01-18 5:42 ` [PATCH v2 3/3] clk: rockchip: rk3288: make all niu clocks critical Jacob Chen 1 sibling, 0 replies; 6+ messages in thread From: Jacob Chen @ 2017-01-18 5:42 UTC (permalink / raw) To: heiko-4mtYJXux2i+zQB+pC5nmwQ, mturquette-rdvid1DuHRBWk0Htik3J/w, sboyd-sgV2jX0FEOL9JmXXK+q4OQ Cc: zhengxing-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jacob Chen, linux-clk-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Reference the newly added vip clock-ids in the clock-tree. Signed-off-by: Jacob Chen <jacob-chen-fyOeoxGR3m/QT0dZR+AlfA@public.gmane.org> --- drivers/clk/rockchip/clk-rk3288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 39af05a..3d02aa2 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c @@ -469,7 +469,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = { COMPOSITE_NODIV(0, "vip_src", mux_pll_src_cpll_gpll_p, 0, RK3288_CLKSEL_CON(26), 8, 1, MFLAGS, RK3288_CLKGATE_CON(3), 7, GFLAGS), - COMPOSITE_NOGATE(0, "sclk_vip_out", mux_vip_out_p, 0, + COMPOSITE_NOGATE(SCLK_VIP_OUT, "sclk_vip_out", mux_vip_out_p, 0, RK3288_CLKSEL_CON(26), 15, 1, MFLAGS, 9, 5, DFLAGS), DIV(0, "pclk_pd_alive", "gpll", 0, -- 2.7.4 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 3/3] clk: rockchip: rk3288: make all niu clocks critical [not found] ` <1484718161-27702-1-git-send-email-jacob-chen-fyOeoxGR3m/QT0dZR+AlfA@public.gmane.org> 2017-01-18 5:42 ` [PATCH v2 2/3] clk: rockchip: use " Jacob Chen @ 2017-01-18 5:42 ` Jacob Chen 2017-01-22 9:02 ` Jacob Chen 1 sibling, 1 reply; 6+ messages in thread From: Jacob Chen @ 2017-01-18 5:42 UTC (permalink / raw) To: heiko-4mtYJXux2i+zQB+pC5nmwQ, mturquette-rdvid1DuHRBWk0Htik3J/w, sboyd-sgV2jX0FEOL9JmXXK+q4OQ Cc: zhengxing-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Jacob Chen, linux-clk-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r NIU clocks are related to the interconnect and it's important to other blocks. Since we don't have a driver to handle it, we should always enable it to avoid casually close. Make all of them critical,so that we don't have to each clock on its own once things break. Signed-off-by: Jacob Chen <jacob-chen-fyOeoxGR3m/QT0dZR+AlfA@public.gmane.org> --- drivers/clk/rockchip/clk-rk3288.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 3d02aa2..c50386c 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c @@ -808,8 +808,15 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = { static const char *const rk3288_critical_clocks[] __initconst = { "aclk_cpu", "aclk_peri", + "aclk_peri_niu", + "aclk_vio0_niu", + "aclk_vio1_niu", + "aclk_rga_niu", "hclk_peri", + "hclk_vio_niu", + "pclk_alive_niu", "pclk_pd_pmu", + "pclk_pmu_niu", }; static void __iomem *rk3288_cru_base; -- 2.7.4 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 3/3] clk: rockchip: rk3288: make all niu clocks critical 2017-01-18 5:42 ` [PATCH v2 3/3] clk: rockchip: rk3288: make all niu clocks critical Jacob Chen @ 2017-01-22 9:02 ` Jacob Chen 2017-01-22 12:07 ` Heiko Stuebner 0 siblings, 1 reply; 6+ messages in thread From: Jacob Chen @ 2017-01-22 9:02 UTC (permalink / raw) To: Heiko Stuebner, Michael Turquette, sboyd Cc: linux-rockchip, linux-kernel, linux-arm-kernel, linux-clk, zhangqing, Xing Zheng, Jacob Chen 2017-01-18 13:42 GMT+08:00 Jacob Chen <jacob-chen@iotwrt.com>: > NIU clocks are related to the interconnect and it's important to other blocks. > Since we don't have a driver to handle it, we should always enable it to avoid > casually close. > > Make all of them critical,so that we don't have to each clock on its own > once things break. > > Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com> > --- > drivers/clk/rockchip/clk-rk3288.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c > index 3d02aa2..c50386c 100644 > --- a/drivers/clk/rockchip/clk-rk3288.c > +++ b/drivers/clk/rockchip/clk-rk3288.c > @@ -808,8 +808,15 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = { > static const char *const rk3288_critical_clocks[] __initconst = { > "aclk_cpu", > "aclk_peri", > + "aclk_peri_niu", > + "aclk_vio0_niu", > + "aclk_vio1_niu", > + "aclk_rga_niu", > "hclk_peri", > + "hclk_vio_niu", > + "pclk_alive_niu", > "pclk_pd_pmu", > + "pclk_pmu_niu", > }; > > static void __iomem *rk3288_cru_base; > -- > 2.7.4 > I just got an another bug that caused by closed niu clock. Making niu clock always enabled is really useful, it could save me a lot of time..... I just wonder why we don't do that before. Would it have great impact on power consumption? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 3/3] clk: rockchip: rk3288: make all niu clocks critical 2017-01-22 9:02 ` Jacob Chen @ 2017-01-22 12:07 ` Heiko Stuebner 0 siblings, 0 replies; 6+ messages in thread From: Heiko Stuebner @ 2017-01-22 12:07 UTC (permalink / raw) To: Jacob Chen Cc: Michael Turquette, sboyd, linux-rockchip, linux-kernel, linux-arm-kernel, linux-clk, zhangqing, Xing Zheng, Jacob Chen Am Sonntag, 22. Januar 2017, 17:02:17 CET schrieb Jacob Chen: > 2017-01-18 13:42 GMT+08:00 Jacob Chen <jacob-chen@iotwrt.com>: > > NIU clocks are related to the interconnect and it's important to other > > blocks. Since we don't have a driver to handle it, we should always > > enable it to avoid casually close. > > > > Make all of them critical,so that we don't have to each clock on its own > > once things break. > > > > Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com> > > --- > > > > drivers/clk/rockchip/clk-rk3288.c | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/drivers/clk/rockchip/clk-rk3288.c > > b/drivers/clk/rockchip/clk-rk3288.c index 3d02aa2..c50386c 100644 > > --- a/drivers/clk/rockchip/clk-rk3288.c > > +++ b/drivers/clk/rockchip/clk-rk3288.c > > @@ -808,8 +808,15 @@ static struct rockchip_clk_branch > > rk3288_clk_branches[] __initdata = {> > > static const char *const rk3288_critical_clocks[] __initconst = { > > > > "aclk_cpu", > > "aclk_peri", > > > > + "aclk_peri_niu", > > + "aclk_vio0_niu", > > + "aclk_vio1_niu", > > + "aclk_rga_niu", > > > > "hclk_peri", > > > > + "hclk_vio_niu", > > + "pclk_alive_niu", > > > > "pclk_pd_pmu", > > > > + "pclk_pmu_niu", > > > > }; > > > > static void __iomem *rk3288_cru_base; > > > > -- > > 2.7.4 > > I just got an another bug that caused by closed niu clock. > Making niu clock always enabled is really useful, it could save me a > lot of time..... > > I just wonder why we don't do that before. Would it have great impact > on power consumption? The niu clocks so far seemed to rely on the CLK_IGNORE_UNUSED flag. So all was well as long as nothing changed in the clock tree above those and I guess with more supported peripherals, some now make changes to the more common clocks and thus disable the nui clocks by accident. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/3] clk: rockchip: add rk3288 vip_out clock ids 2017-01-18 5:42 [PATCH v2 1/3] clk: rockchip: add rk3288 vip_out clock ids Jacob Chen [not found] ` <1484718161-27702-1-git-send-email-jacob-chen-fyOeoxGR3m/QT0dZR+AlfA@public.gmane.org> @ 2017-01-23 0:26 ` Heiko Stuebner 1 sibling, 0 replies; 6+ messages in thread From: Heiko Stuebner @ 2017-01-23 0:26 UTC (permalink / raw) To: Jacob Chen Cc: mturquette, sboyd, linux-rockchip, linux-kernel, linux-arm-kernel, linux-clk, zhangqing, zhengxing Am Mittwoch, 18. Januar 2017, 13:42:38 CET schrieb Jacob Chen: > Add clock-ids for the vip block of the rk3288 > > Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com> applied all 3 for 4.11 . I've fixed the indentation below (missing one additional tab) and adapted patch3 to also remove the CLK_IGNORE_UNUSED flags for the clocks we now moved to the critical clocks. Heiko ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-01-23 0:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-18 5:42 [PATCH v2 1/3] clk: rockchip: add rk3288 vip_out clock ids Jacob Chen
[not found] ` <1484718161-27702-1-git-send-email-jacob-chen-fyOeoxGR3m/QT0dZR+AlfA@public.gmane.org>
2017-01-18 5:42 ` [PATCH v2 2/3] clk: rockchip: use " Jacob Chen
2017-01-18 5:42 ` [PATCH v2 3/3] clk: rockchip: rk3288: make all niu clocks critical Jacob Chen
2017-01-22 9:02 ` Jacob Chen
2017-01-22 12:07 ` Heiko Stuebner
2017-01-23 0:26 ` [PATCH v2 1/3] clk: rockchip: add rk3288 vip_out clock ids Heiko Stuebner
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox