linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: imx51: propagate rate across ipu_di*_sel
@ 2017-08-18 16:30 Lucas Stach
  2017-08-21 14:17 ` Fabio Estevam
  2017-08-31 18:31 ` Stephen Boyd
  0 siblings, 2 replies; 8+ messages in thread
From: Lucas Stach @ 2017-08-18 16:30 UTC (permalink / raw)
  To: Shawn Guo, Michael Turquette, Stephen Boyd
  Cc: Fabio Estevam, linux-arm-kernel, linux-clk, kernel, patchwork-lst,
	Chris Healy, Nikita Yushchenko, Wladimir J . van der Laan,
	Ilia Mirkin

This propagates rate requests from the display interface to the divider
or PLL output, allowing to hit the required display rate in many more
cases.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/clk/imx/clk-imx51-imx53.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/clk/imx/clk-imx51-imx53.c b/drivers/clk/imx/clk-imx51-imx53.c
index 1e3c9ea5f9dc..7bcaf270db11 100644
--- a/drivers/clk/imx/clk-imx51-imx53.c
+++ b/drivers/clk/imx/clk-imx51-imx53.c
@@ -416,10 +416,10 @@ static void __init mx51_clocks_init(struct device_node *np)
 
 	clk[IMX5_CLK_LP_APM]		= imx_clk_mux("lp_apm", MXC_CCM_CCSR, 9, 1,
 						lp_apm_sel, ARRAY_SIZE(lp_apm_sel));
-	clk[IMX5_CLK_IPU_DI0_SEL]	= imx_clk_mux("ipu_di0_sel", MXC_CCM_CSCMR2, 26, 3,
-						mx51_ipu_di0_sel, ARRAY_SIZE(mx51_ipu_di0_sel));
-	clk[IMX5_CLK_IPU_DI1_SEL]	= imx_clk_mux("ipu_di1_sel", MXC_CCM_CSCMR2, 29, 3,
-						mx51_ipu_di1_sel, ARRAY_SIZE(mx51_ipu_di1_sel));
+	clk[IMX5_CLK_IPU_DI0_SEL]	= imx_clk_mux_flags("ipu_di0_sel", MXC_CCM_CSCMR2, 26, 3,
+						mx51_ipu_di0_sel, ARRAY_SIZE(mx51_ipu_di0_sel), CLK_SET_RATE_PARENT);
+	clk[IMX5_CLK_IPU_DI1_SEL]	= imx_clk_mux_flags("ipu_di1_sel", MXC_CCM_CSCMR2, 29, 3,
+						mx51_ipu_di1_sel, ARRAY_SIZE(mx51_ipu_di1_sel), CLK_SET_RATE_PARENT);
 	clk[IMX5_CLK_TVE_EXT_SEL]	= imx_clk_mux_flags("tve_ext_sel", MXC_CCM_CSCMR1, 6, 1,
 						mx51_tve_ext_sel, ARRAY_SIZE(mx51_tve_ext_sel), CLK_SET_RATE_PARENT);
 	clk[IMX5_CLK_TVE_SEL]		= imx_clk_mux("tve_sel", MXC_CCM_CSCMR1, 7, 1,
-- 
2.11.0

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

* Re: [PATCH] clk: imx51: propagate rate across ipu_di*_sel
  2017-08-18 16:30 [PATCH] clk: imx51: propagate rate across ipu_di*_sel Lucas Stach
@ 2017-08-21 14:17 ` Fabio Estevam
  2017-08-21 15:54   ` Wladimir J. van der Laan
  2017-08-31 18:31 ` Stephen Boyd
  1 sibling, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2017-08-21 14:17 UTC (permalink / raw)
  To: Lucas Stach, Wladimir J . van der Laan
  Cc: Shawn Guo, Michael Turquette, Stephen Boyd, Nikita Yushchenko,
	patchwork-lst, linux-arm-kernel@lists.infradead.org, Sascha Hauer,
	Fabio Estevam, Ilia Mirkin, linux-clk, Chris Healy

On Fri, Aug 18, 2017 at 1:30 PM, Lucas Stach <l.stach@pengutronix.de> wrote:
> This propagates rate requests from the display interface to the divider
> or PLL output, allowing to hit the required display rate in many more
> cases.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

Looks good:

Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>

> ---
>  drivers/clk/imx/clk-imx51-imx53.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/clk/imx/clk-imx51-imx53.c b/drivers/clk/imx/clk-imx51-imx53.c
> index 1e3c9ea5f9dc..7bcaf270db11 100644
> --- a/drivers/clk/imx/clk-imx51-imx53.c
> +++ b/drivers/clk/imx/clk-imx51-imx53.c
> @@ -416,10 +416,10 @@ static void __init mx51_clocks_init(struct device_node *np)
>
>         clk[IMX5_CLK_LP_APM]            = imx_clk_mux("lp_apm", MXC_CCM_CCSR, 9, 1,
>                                                 lp_apm_sel, ARRAY_SIZE(lp_apm_sel));
> -       clk[IMX5_CLK_IPU_DI0_SEL]       = imx_clk_mux("ipu_di0_sel", MXC_CCM_CSCMR2, 26, 3,
> -                                               mx51_ipu_di0_sel, ARRAY_SIZE(mx51_ipu_di0_sel));
> -       clk[IMX5_CLK_IPU_DI1_SEL]       = imx_clk_mux("ipu_di1_sel", MXC_CCM_CSCMR2, 29, 3,
> -                                               mx51_ipu_di1_sel, ARRAY_SIZE(mx51_ipu_di1_sel));
> +       clk[IMX5_CLK_IPU_DI0_SEL]       = imx_clk_mux_flags("ipu_di0_sel", MXC_CCM_CSCMR2, 26, 3,
> +                                               mx51_ipu_di0_sel, ARRAY_SIZE(mx51_ipu_di0_sel), CLK_SET_RATE_PARENT);
> +       clk[IMX5_CLK_IPU_DI1_SEL]       = imx_clk_mux_flags("ipu_di1_sel", MXC_CCM_CSCMR2, 29, 3,
> +                                               mx51_ipu_di1_sel, ARRAY_SIZE(mx51_ipu_di1_sel), CLK_SET_RATE_PARENT);
>         clk[IMX5_CLK_TVE_EXT_SEL]       = imx_clk_mux_flags("tve_ext_sel", MXC_CCM_CSCMR1, 6, 1,
>                                                 mx51_tve_ext_sel, ARRAY_SIZE(mx51_tve_ext_sel), CLK_SET_RATE_PARENT);
>         clk[IMX5_CLK_TVE_SEL]           = imx_clk_mux("tve_sel", MXC_CCM_CSCMR1, 7, 1,

Wladimir,

Could you please test it and see if it fixes the DVI output issue you
reported earlier?
https://lists.freedesktop.org/archives/dri-devel/2017-April/138155.html

Thanks

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

* Re: [PATCH] clk: imx51: propagate rate across ipu_di*_sel
  2017-08-21 14:17 ` Fabio Estevam
@ 2017-08-21 15:54   ` Wladimir J. van der Laan
  2017-08-21 15:58     ` Nikita Yushchenko
  0 siblings, 1 reply; 8+ messages in thread
From: Wladimir J. van der Laan @ 2017-08-21 15:54 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Lucas Stach, Shawn Guo, Michael Turquette, Stephen Boyd,
	Nikita Yushchenko, patchwork-lst,
	linux-arm-kernel@lists.infradead.org, Sascha Hauer, Fabio Estevam,
	Ilia Mirkin, linux-clk, Chris Healy

Hello Fabio,

On Mon, Aug 21, 2017 at 11:17:01AM -0300, Fabio Estevam wrote:
> On Fri, Aug 18, 2017 at 1:30 PM, Lucas Stach <l.stach@pengutronix.de> wrote:
> Wladimir,
> 
> Could you please test it and see if it fixes the DVI output issue you
> reported earlier?
> https://lists.freedesktop.org/archives/dri-devel/2017-April/138155.html

I'm trying to, but getting a non-clock-related problem on the i.mx51 babbage board
with current kernel preventing the display from coming up at all:

    [    0.824712] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    0.831411] [drm] No driver support for vblank timestamp query.
    [    0.837632] imx-drm display-subsystem: bound imx-ipuv3-crtc.0 (ops ipu_crtc_ops)
    [    0.845214] imx-drm display-subsystem: bound imx-ipuv3-crtc.1 (ops ipu_crtc_ops)
    [    0.852720] imx-drm display-subsystem: failed to bind display@di0 (ops imx_pd_ops): -19
    [    0.860994] imx-drm display-subsystem: master bind failed: -19

Will try to debug this later.

Regards,
Wladimir

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

* Re: [PATCH] clk: imx51: propagate rate across ipu_di*_sel
  2017-08-21 15:54   ` Wladimir J. van der Laan
@ 2017-08-21 15:58     ` Nikita Yushchenko
  2017-08-21 16:38       ` Wladimir J. van der Laan
  0 siblings, 1 reply; 8+ messages in thread
From: Nikita Yushchenko @ 2017-08-21 15:58 UTC (permalink / raw)
  To: Wladimir J. van der Laan, Fabio Estevam
  Cc: Lucas Stach, Shawn Guo, Michael Turquette, Stephen Boyd,
	patchwork-lst, linux-arm-kernel@lists.infradead.org, Sascha Hauer,
	Fabio Estevam, Ilia Mirkin, linux-clk, Chris Healy

> I'm trying to, but getting a non-clock-related problem on the i.mx51 babbage board
> with current kernel preventing the display from coming up at all:
> 
>     [    0.824712] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
>     [    0.831411] [drm] No driver support for vblank timestamp query.
>     [    0.837632] imx-drm display-subsystem: bound imx-ipuv3-crtc.0 (ops ipu_crtc_ops)
>     [    0.845214] imx-drm display-subsystem: bound imx-ipuv3-crtc.1 (ops ipu_crtc_ops)
>     [    0.852720] imx-drm display-subsystem: failed to bind display@di0 (ops imx_pd_ops): -19
>     [    0.860994] imx-drm display-subsystem: master bind failed: -19

I believe this should be fixed by

commit 799ee2970485dc206c3bf347d6e6827c04d5e4f9
Author: Philipp Zabel <p.zabel@pengutronix.de>
Date:   Mon Jun 12 17:54:29 2017 +0200

  drm/imx: parallel-display: Accept drm_of_find_panel_or_bridge failure


Nikita

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

* Re: [PATCH] clk: imx51: propagate rate across ipu_di*_sel
  2017-08-21 15:58     ` Nikita Yushchenko
@ 2017-08-21 16:38       ` Wladimir J. van der Laan
  2017-08-21 16:39         ` Fabio Estevam
  0 siblings, 1 reply; 8+ messages in thread
From: Wladimir J. van der Laan @ 2017-08-21 16:38 UTC (permalink / raw)
  To: Nikita Yushchenko, Fabio Estevam
  Cc: Lucas Stach, Shawn Guo, Michael Turquette, Stephen Boyd,
	patchwork-lst, linux-arm-kernel@lists.infradead.org, Sascha Hauer,
	Fabio Estevam, Ilia Mirkin, linux-clk, Chris Healy

Hello Nikita, Fabio,

On Mon, Aug 21, 2017 at 06:58:19PM +0300, Nikita Yushchenko wrote:
> > I'm trying to, but getting a non-clock-related problem on the i.mx51 babbage board
> > with current kernel preventing the display from coming up at all:
> > 
> >     [    0.824712] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> >     [    0.831411] [drm] No driver support for vblank timestamp query.
> >     [    0.837632] imx-drm display-subsystem: bound imx-ipuv3-crtc.0 (ops ipu_crtc_ops)
> >     [    0.845214] imx-drm display-subsystem: bound imx-ipuv3-crtc.1 (ops ipu_crtc_ops)
> >     [    0.852720] imx-drm display-subsystem: failed to bind display@di0 (ops imx_pd_ops): -19
> >     [    0.860994] imx-drm display-subsystem: master bind failed: -19
> 
> I believe this should be fixed by
> 
> commit 799ee2970485dc206c3bf347d6e6827c04d5e4f9
> Author: Philipp Zabel <p.zabel@pengutronix.de>
> Date:   Mon Jun 12 17:54:29 2017 +0200
> 
>   drm/imx: parallel-display: Accept drm_of_find_panel_or_bridge failure

Thanks,
With that patch and Lucas' patch series applied, I can confirm to have working a console on DVI!

Regards,
Wladimir

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

* Re: [PATCH] clk: imx51: propagate rate across ipu_di*_sel
  2017-08-21 16:38       ` Wladimir J. van der Laan
@ 2017-08-21 16:39         ` Fabio Estevam
  2017-08-21 16:44           ` Wladimir J. van der Laan
  0 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2017-08-21 16:39 UTC (permalink / raw)
  To: Wladimir J. van der Laan
  Cc: Nikita Yushchenko, Lucas Stach, Shawn Guo, Michael Turquette,
	Stephen Boyd, patchwork-lst, linux-arm-kernel@lists.infradead.org,
	Sascha Hauer, Fabio Estevam, Ilia Mirkin, linux-clk, Chris Healy

Hi Wladimir,

On Mon, Aug 21, 2017 at 1:38 PM, Wladimir J. van der Laan
<laanwj@gmail.com> wrote:

> Thanks,
> With that patch and Lucas' patch series applied, I can confirm to have working a console on DVI!

Excellent! Maybe you could reply with your Tested-by tag then?

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

* Re: [PATCH] clk: imx51: propagate rate across ipu_di*_sel
  2017-08-21 16:39         ` Fabio Estevam
@ 2017-08-21 16:44           ` Wladimir J. van der Laan
  0 siblings, 0 replies; 8+ messages in thread
From: Wladimir J. van der Laan @ 2017-08-21 16:44 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Nikita Yushchenko, Lucas Stach, Shawn Guo, Michael Turquette,
	Stephen Boyd, patchwork-lst, linux-arm-kernel@lists.infradead.org,
	Sascha Hauer, Fabio Estevam, Ilia Mirkin, linux-clk, Chris Healy

On Mon, Aug 21, 2017 at 01:39:44PM -0300, Fabio Estevam wrote:
> Hi Wladimir,
> 
> On Mon, Aug 21, 2017 at 1:38 PM, Wladimir J. van der Laan
> <laanwj@gmail.com> wrote:
> 
> > Thanks,
> > With that patch and Lucas' patch series applied, I can confirm to have working a console on DVI!
> 
> Excellent! Maybe you could reply with your Tested-by tag then?

Sure!

Tested-By: Wladimir J. van der Laan <laanwj@gmail.com>

Regards,
Wladimir

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

* Re: [PATCH] clk: imx51: propagate rate across ipu_di*_sel
  2017-08-18 16:30 [PATCH] clk: imx51: propagate rate across ipu_di*_sel Lucas Stach
  2017-08-21 14:17 ` Fabio Estevam
@ 2017-08-31 18:31 ` Stephen Boyd
  1 sibling, 0 replies; 8+ messages in thread
From: Stephen Boyd @ 2017-08-31 18:31 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Shawn Guo, Michael Turquette, Fabio Estevam, linux-arm-kernel,
	linux-clk, kernel, patchwork-lst, Chris Healy, Nikita Yushchenko,
	Wladimir J . van der Laan, Ilia Mirkin

On 08/18, Lucas Stach wrote:
> This propagates rate requests from the display interface to the divider
> or PLL output, allowing to hit the required display rate in many more
> cases.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

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

end of thread, other threads:[~2017-08-31 18:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-18 16:30 [PATCH] clk: imx51: propagate rate across ipu_di*_sel Lucas Stach
2017-08-21 14:17 ` Fabio Estevam
2017-08-21 15:54   ` Wladimir J. van der Laan
2017-08-21 15:58     ` Nikita Yushchenko
2017-08-21 16:38       ` Wladimir J. van der Laan
2017-08-21 16:39         ` Fabio Estevam
2017-08-21 16:44           ` Wladimir J. van der Laan
2017-08-31 18:31 ` Stephen Boyd

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