* [RFC PATCH 0/2] clk: rockchip: leave npll for DCLK_VOP0(HDMI) only
@ 2014-11-17 14:55 Kever Yang
2014-11-17 14:55 ` [RFC PATCH 2/2] arm: dts: rockchip: select npll as parent of DCLK_VOP0 Kever Yang
[not found] ` <1416236138-11010-1-git-send-email-kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
0 siblings, 2 replies; 4+ messages in thread
From: Kever Yang @ 2014-11-17 14:55 UTC (permalink / raw)
To: Mike Turquette, Heiko Stuebner
Cc: dianders-F7+t8E8rja9g9hUCZPvPmw, sonnyrao-F7+t8E8rja9g9hUCZPvPmw,
addy.ke-TNX95d0MmH7DzftRWevZcw, cf-TNX95d0MmH7DzftRWevZcw,
dkl-TNX95d0MmH7DzftRWevZcw, huangtao-TNX95d0MmH7DzftRWevZcw,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ, sboyd-sgV2jX0FEOL9JmXXK+q4OQ,
Kever Yang, Ian Campbell, devicetree-u79uwXL29TY76Z2rM5mHXA,
Dmitry Torokhov, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Kumar Gala,
Jianqun, Rob Herring, Pawel Moll, Chris Zhong, Mark Rutland,
Russell King, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
To support all kinds of frequency requirement for HDMI on rk3288,
we need a PLL that can change rate at run time.
There are some discussion before at [0], I think we can just leave
the npll for HDMI(DCLK_VOP0) used to make it simple.
Comments are welcome.
[0] https://lkml.org/lkml/2014/11/4/58
Kever Yang (2):
clk: rockchip: leave npll for VOP0 only
arm: dts: rockchip: select npll as parent of DCLK_VOP0
arch/arm/boot/dts/rk3288.dtsi | 2 ++
drivers/clk/rockchip/clk-rk3288.c | 24 ++++++++++++------------
2 files changed, 14 insertions(+), 12 deletions(-)
--
1.9.1
--
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] 4+ messages in thread* [RFC PATCH 2/2] arm: dts: rockchip: select npll as parent of DCLK_VOP0
2014-11-17 14:55 [RFC PATCH 0/2] clk: rockchip: leave npll for DCLK_VOP0(HDMI) only Kever Yang
@ 2014-11-17 14:55 ` Kever Yang
[not found] ` <1416236138-11010-1-git-send-email-kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
1 sibling, 0 replies; 4+ messages in thread
From: Kever Yang @ 2014-11-17 14:55 UTC (permalink / raw)
To: Mike Turquette, Heiko Stuebner
Cc: dianders, sonnyrao, addy.ke, cf, dkl, huangtao, linux-rockchip,
tomeu.vizoso, sboyd, Kever Yang, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala, Russell King, devicetree,
linux-arm-kernel, linux-kernel
The DCLK_VOP0 will change the parent clock's rate, we don't want
to change the PLLs rate other than npll. So we select the npll
as parent directly.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---
arch/arm/boot/dts/rk3288.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index c3190f7..6ea6125 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -573,6 +573,8 @@
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>;
clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
+ assigned-clocks = <&cru DCLK_VOP0>;
+ assigned-clock-parents = <3>;
resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
reset-names = "axi", "ahb", "dclk";
iommus = <&vopb_mmu>;
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <1416236138-11010-1-git-send-email-kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [RFC PATCH 0/2] clk: rockchip: leave npll for DCLK_VOP0(HDMI) only
[not found] ` <1416236138-11010-1-git-send-email-kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2015-01-08 22:30 ` Heiko Stübner
2015-01-14 22:16 ` Mike Turquette
0 siblings, 1 reply; 4+ messages in thread
From: Heiko Stübner @ 2015-01-08 22:30 UTC (permalink / raw)
To: Kever Yang, dianders-F7+t8E8rja9g9hUCZPvPmw
Cc: Mike Turquette, sonnyrao-F7+t8E8rja9g9hUCZPvPmw,
addy.ke-TNX95d0MmH7DzftRWevZcw, cf-TNX95d0MmH7DzftRWevZcw,
dkl-TNX95d0MmH7DzftRWevZcw, huangtao-TNX95d0MmH7DzftRWevZcw,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ, sboyd-sgV2jX0FEOL9JmXXK+q4OQ,
Ian Campbell, devicetree-u79uwXL29TY76Z2rM5mHXA, Dmitry Torokhov,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Kumar Gala, Jianqun,
Rob Herring, Pawel Moll, Chris Zhong, Mark Rutland, Russell King,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Hi Kever,
Am Montag, 17. November 2014, 22:55:36 schrieb Kever Yang:
> To support all kinds of frequency requirement for HDMI on rk3288,
> we need a PLL that can change rate at run time.
>
> There are some discussion before at [0], I think we can just leave
> the npll for HDMI(DCLK_VOP0) used to make it simple.
>
> Comments are welcome.
I think I said it in private somewhere already, but just so it's also
available publically:
I don't think customizing/limiting the clock usage like this will fly,
especially as this would require each and every rk3288 board to use vop0 for
hdmi and vop1 for other stuff.
With the new rk3288 Firefly devboard this concern already becomes reality.
There a vga converter is connected to VOP0, which leaves only vop1 for hdmi if
one wants to support the vga connection.
>From our discussion about this problem I remember that the missing clock
frequencies only affected more esotheric screen resolutions, so personally I'm
not this much concerned an would like to wait till we find a better solution to
the problem.
Heiko
--
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] 4+ messages in thread* Re: [RFC PATCH 0/2] clk: rockchip: leave npll for DCLK_VOP0(HDMI) only
2015-01-08 22:30 ` [RFC PATCH 0/2] clk: rockchip: leave npll for DCLK_VOP0(HDMI) only Heiko Stübner
@ 2015-01-14 22:16 ` Mike Turquette
0 siblings, 0 replies; 4+ messages in thread
From: Mike Turquette @ 2015-01-14 22:16 UTC (permalink / raw)
To: Heiko Stübner, Kever Yang, dianders-F7+t8E8rja9g9hUCZPvPmw
Cc: sonnyrao-F7+t8E8rja9g9hUCZPvPmw, addy.ke-TNX95d0MmH7DzftRWevZcw,
cf-TNX95d0MmH7DzftRWevZcw, dkl-TNX95d0MmH7DzftRWevZcw,
huangtao-TNX95d0MmH7DzftRWevZcw,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ, sboyd-sgV2jX0FEOL9JmXXK+q4OQ,
Ian Campbell, devicetree-u79uwXL29TY76Z2rM5mHXA, Dmitry Torokhov,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Kumar Gala, Jianqun,
Rob Herring, Pawel Moll, Chris Zhong, Mark Rutland, Russell King,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Quoting Heiko Stübner (2015-01-08 14:30:01)
> Hi Kever,
>
> Am Montag, 17. November 2014, 22:55:36 schrieb Kever Yang:
> > To support all kinds of frequency requirement for HDMI on rk3288,
> > we need a PLL that can change rate at run time.
> >
> > There are some discussion before at [0], I think we can just leave
> > the npll for HDMI(DCLK_VOP0) used to make it simple.
> >
> > Comments are welcome.
>
> I think I said it in private somewhere already, but just so it's also
> available publically:
>
> I don't think customizing/limiting the clock usage like this will fly,
> especially as this would require each and every rk3288 board to use vop0 for
> hdmi and vop1 for other stuff.
>
> With the new rk3288 Firefly devboard this concern already becomes reality.
> There a vga converter is connected to VOP0, which leaves only vop1 for hdmi if
> one wants to support the vga connection.
>
>
> From our discussion about this problem I remember that the missing clock
> frequencies only affected more esotheric screen resolutions, so personally I'm
> not this much concerned an would like to wait till we find a better solution to
> the problem.
Ack. We shouldn't have to limit the possible hardware configurations in
software just to keep things simple. This points to a deficiency in the
clock framework. This is a common concern: how to change a clock
frequency for one user without exploding all of the other users.
Do you think Tomeu's constraints API[0] might be a step in the right
direction for you?
[0] http://lkml.kernel.org/r/<1421071809-17402-3-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
Regards,
Mike
>
>
> Heiko
--
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] 4+ messages in thread
end of thread, other threads:[~2015-01-14 22:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-17 14:55 [RFC PATCH 0/2] clk: rockchip: leave npll for DCLK_VOP0(HDMI) only Kever Yang
2014-11-17 14:55 ` [RFC PATCH 2/2] arm: dts: rockchip: select npll as parent of DCLK_VOP0 Kever Yang
[not found] ` <1416236138-11010-1-git-send-email-kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2015-01-08 22:30 ` [RFC PATCH 0/2] clk: rockchip: leave npll for DCLK_VOP0(HDMI) only Heiko Stübner
2015-01-14 22:16 ` Mike Turquette
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).