Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-16 Thread Russell King - ARM Linux
On Mon, Jun 16, 2014 at 11:13:02AM -0300, Fabio Estevam wrote: > On Wed, Jun 11, 2014 at 5:17 AM, Russell King - ARM Linux > wrote: > > > The problem here is that we need more inteligence from CCF in order to > > do that - we need it to be able to reprogram the dividers so that the > > IPU DI0 cl

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-16 Thread Fabio Estevam
On Wed, Jun 11, 2014 at 5:17 AM, Russell King - ARM Linux wrote: > The problem here is that we need more inteligence from CCF in order to > do that - we need it to be able to reprogram the dividers so that the > IPU DI0 clock remains at 148.5MHz while increasing the output of > pll5_video_div thr

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-11 Thread Philipp Zabel
Hi Russell, Am Mittwoch, den 11.06.2014, 09:17 +0100 schrieb Russell King - ARM Linux: > On Tue, Jun 10, 2014 at 10:32:25AM -0300, Fabio Estevam wrote: > > On Tue, Jun 10, 2014 at 9:58 AM, Fabio Estevam wrote: > > > On Mon, Jun 9, 2014 at 5:09 PM, Russell King - ARM Linux > > > wrote: > > > > >

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-11 Thread Russell King - ARM Linux
On Tue, Jun 10, 2014 at 10:32:25AM -0300, Fabio Estevam wrote: > On Tue, Jun 10, 2014 at 9:58 AM, Fabio Estevam wrote: > > On Mon, Jun 9, 2014 at 5:09 PM, Russell King - ARM Linux > > wrote: > > > >> Right, so the problem isn't at the HDMI level, but at the DI level... so > >> that's where we nee

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-10 Thread Fabio Estevam
Hi Tim, On Tue, Jun 10, 2014 at 3:54 PM, Tim Harvey wrote: > Fabio, > > I'm following along with this thread as I see the same thing you do on > our Ventana boards that support both LVDS and HDMI: without > hot-plugging the HDMI connector I get not HDMI out simply by having > the LVDS node popul

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-10 Thread Tim Harvey
On Mon, Jun 9, 2014 at 7:29 AM, Fabio Estevam wrote: > On Mon, Jun 9, 2014 at 11:06 AM, Russell King - ARM Linux > wrote: > >> Please check the status in /sys/class/drm/card0-HDMI-A-1/status. This >> should report the current state of the hotplug detection. > > /sys/class/drm/card0-HDMI-A-1/stat

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-10 Thread Fabio Estevam
On Tue, Jun 10, 2014 at 2:04 PM, Russell King - ARM Linux wrote: > This diagram is drawn from the code in clk-imx6.c, and it does not > agree with what is in the SoC manuals - this is the representation > redrawn from the manuals: > The difference is, there is no clock gate between the LDB

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-10 Thread Russell King - ARM Linux
On Tue, Jun 10, 2014 at 05:14:21PM +0100, Russell King - ARM Linux wrote: > On Tue, Jun 10, 2014 at 04:13:06PM +0100, Russell King - ARM Linux wrote: > > where 'M' is the IPU DI clock muxer. However, we're currently setting > > this up as: > > > > LM --+ LDB serial > > `- /7

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-10 Thread Russell King - ARM Linux
On Tue, Jun 10, 2014 at 04:13:06PM +0100, Russell King - ARM Linux wrote: > where 'M' is the IPU DI clock muxer. However, we're currently setting > this up as: > > LM --+ LDB serial > `- /7 -+ LDB DI clock > IPM --- /N IM --- IPU DI clock > > and hoping that th

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-10 Thread Russell King - ARM Linux
On Tue, Jun 10, 2014 at 09:58:54AM -0300, Fabio Estevam wrote: > Booting the kernel with the HDMI cable connected (no image is seen on > HDMI, only on LVDS): Reformatting a bit: > disp 0: panel size = 1920 x 1080 > Clocks: IPU 26400Hz DI 2400Hz Needed 13850Hz > IPU clock can give 13

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-10 Thread Fabio Estevam
On Tue, Jun 10, 2014 at 9:58 AM, Fabio Estevam wrote: > On Mon, Jun 9, 2014 at 5:09 PM, Russell King - ARM Linux > wrote: > >> Right, so the problem isn't at the HDMI level, but at the DI level... so >> that's where we need to debug what's being setup. I left some debugging >> in ipu-di.c - coul

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-10 Thread Fabio Estevam
On Mon, Jun 9, 2014 at 5:09 PM, Russell King - ARM Linux wrote: > Right, so the problem isn't at the HDMI level, but at the DI level... so > that's where we need to debug what's being setup. I left some debugging > in ipu-di.c - could you try enabling that please? Booting the kernel with the HD

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Fabio Estevam
On Mon, Jun 9, 2014 at 5:09 PM, Russell King - ARM Linux wrote: > Right, so the problem isn't at the HDMI level, but at the DI level... so > that's where we need to debug what's being setup. I left some debugging > in ipu-di.c - could you try enabling that please? Sure, will capture the logs to

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Russell King - ARM Linux
On Mon, Jun 09, 2014 at 03:47:46PM -0300, Fabio Estevam wrote: > Also tested keeping LVDS parent as PLL5 and reverted this commit: > > commit 17b9b3b9e88ac6564689283a08034faf2c048fdb > Author: Sascha Hauer > Date: Mon Apr 14 16:20:39 2014 +0200 > > ARM: imx6q: clk: Parent DI clocks to vide

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Russell King - ARM Linux
On Mon, Jun 09, 2014 at 03:38:55PM -0300, Fabio Estevam wrote: > On Mon, Jun 9, 2014 at 3:15 PM, Fabio Estevam wrote: > >> I wonder if the problem is that HDMI and LVDS are interfering with each > >> other wrt the required pixel clock, and LVDS is winning. If we have > >> HDMI enabled, many HDMI

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Russell King - ARM Linux
On Mon, Jun 09, 2014 at 03:15:16PM -0300, Fabio Estevam wrote: > With HDMI cable connected (no image is seen on HDMI, only on lvds cable): > > imx-drm display-subsystem.11: bound 12.hdmi (ops hdmi_ops) > imx-hdmi 12.hdmi: EVENT=plugin > imx-hdmi 12.hdmi: Non-CEA mode used in HDMI > imx

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Fabio Estevam
On Mon, Jun 9, 2014 at 3:38 PM, Fabio Estevam wrote: > On Mon, Jun 9, 2014 at 3:15 PM, Fabio Estevam wrote: >>> I wonder if the problem is that HDMI and LVDS are interfering with each >>> other wrt the required pixel clock, and LVDS is winning. If we have >>> HDMI enabled, many HDMI sinks will o

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Fabio Estevam
On Mon, Jun 9, 2014 at 3:15 PM, Fabio Estevam wrote: >> I wonder if the problem is that HDMI and LVDS are interfering with each >> other wrt the required pixel clock, and LVDS is winning. If we have >> HDMI enabled, many HDMI sinks will only work if we set one of their >> supported modes (with th

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Fabio Estevam
On Mon, Jun 9, 2014 at 2:49 PM, Russell King - ARM Linux wrote: > On Mon, Jun 09, 2014 at 11:29:28AM -0300, Fabio Estevam wrote: >> On Mon, Jun 9, 2014 at 11:06 AM, Russell King - ARM Linux >> wrote: >> >> > Please check the status in /sys/class/drm/card0-HDMI-A-1/status. This >> > should report

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Russell King - ARM Linux
On Mon, Jun 09, 2014 at 11:29:28AM -0300, Fabio Estevam wrote: > On Mon, Jun 9, 2014 at 11:06 AM, Russell King - ARM Linux > wrote: > > > Please check the status in /sys/class/drm/card0-HDMI-A-1/status. This > > should report the current state of the hotplug detection. > > /sys/class/drm/card0-

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Fabio Estevam
On Mon, Jun 9, 2014 at 11:33 AM, Shawn Guo wrote: > On Mon, Jun 09, 2014 at 11:29:28AM -0300, Fabio Estevam wrote: >> On Mon, Jun 9, 2014 at 11:06 AM, Russell King - ARM Linux >> wrote: >> >> > Please check the status in /sys/class/drm/card0-HDMI-A-1/status. This >> > should report the current s

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Shawn Guo
On Mon, Jun 09, 2014 at 11:29:28AM -0300, Fabio Estevam wrote: > On Mon, Jun 9, 2014 at 11:06 AM, Russell King - ARM Linux > wrote: > > > Please check the status in /sys/class/drm/card0-HDMI-A-1/status. This > > should report the current state of the hotplug detection. > > /sys/class/drm/card0-

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Fabio Estevam
On Mon, Jun 9, 2014 at 11:06 AM, Russell King - ARM Linux wrote: > Please check the status in /sys/class/drm/card0-HDMI-A-1/status. This > should report the current state of the hotplug detection. /sys/class/drm/card0-HDMI-A-1/status returns the correct state for HDMI cable connection. > Remem

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Russell King - ARM Linux
On Mon, Jun 09, 2014 at 10:44:14AM -0300, Fabio Estevam wrote: > Russell, > > On Fri, Jun 6, 2014 at 10:56 AM, Russell King > wrote: > > The initial state at boot is assumed to be disconnected, and we hope > > to receive an interrupt to update the status. Let's be more explicit > > about the cur

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-09 Thread Fabio Estevam
Russell, On Fri, Jun 6, 2014 at 10:56 AM, Russell King wrote: > The initial state at boot is assumed to be disconnected, and we hope > to receive an interrupt to update the status. Let's be more explicit > about the current state - reading the PHY status register tells us > the current level of

[PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-06 Thread Russell King
The initial state at boot is assumed to be disconnected, and we hope to receive an interrupt to update the status. Let's be more explicit about the current state - reading the PHY status register tells us the current level of the hotplug signal, which we can report back in the _detect() method. S

Re: [PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-06 Thread Greg Kroah-Hartman
On Fri, Jun 06, 2014 at 02:56:43PM +0100, Russell King wrote: > The initial state at boot is assumed to be disconnected, and we hope > to receive an interrupt to update the status. Let's be more explicit > about the current state - reading the PHY status register tells us > the current level of th