All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Ford <aford173@gmail.com>
To: Marco Felsch <m.felsch@pengutronix.de>
Cc: Marek Vasut <marex@denx.de>,
	Jagan Teki <jagan@amarulasolutions.com>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	Jonas Karlman <jonas@kwiboo.se>, David Airlie <airlied@linux.ie>,
	Robert Foss <robert.foss@linaro.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Neil Armstrong <narmstrong@baylibre.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	dri-devel <dri-devel@lists.freedesktop.org>,
	Shawn Guo <shawnguo@kernel.org>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	arm-soc <linux-arm-kernel@lists.infradead.org>,
	NXP Linux Team <linux-imx@nxp.com>
Subject: Re: imx8mm lcdif->dsi->adv7535 no video, no errors
Date: Mon, 1 Aug 2022 07:15:07 -0500	[thread overview]
Message-ID: <CAHCN7xJ3deUnYMN5-NVmdknHZeFc-YOePVsGKNPb_XKqAFYLOQ@mail.gmail.com> (raw)
In-Reply-To: <CAHCN7xLSqyGHZwo=brm4xrj0jVi6R43wE8EJmWrYF72qDtYV0g@mail.gmail.com>

On Mon, Aug 1, 2022 at 5:54 AM Adam Ford <aford173@gmail.com> wrote:
>
> On Mon, Aug 1, 2022 at 1:20 AM Marco Felsch <m.felsch@pengutronix.de> wrote:
> >
> > Hi Adam,
> >
> > On 22-07-30, Adam Ford wrote:
> > > Hey all,
> > >
> > > I am trying to test Jagan's patch series [1] to add support for the
> > > samsung dsim bridge which is used on the imx8mm to output DSI video.
> > > The DSIM gets the video from the mxsfb, and in my case, the DSI is
> > > sent to the adv7535 for connecting to HDMI.
> >
> > So you're using the NXP recommended evalboard setup :)
>
> Yes and no.  Our design also adds audio to theADV7535 in addition to
> the video signal.
> For the 8M Plus design, we're looking to see if there are any 4K
> DSI->HDMI bridge chips available.
>
> >
> > > I have been able to get the device tree setup and I don't get any
> > > errors.  The Linux system appears to think the video is connected as
> > > determined by modetest:
> >
> > ...
> >
> > > Unfortunately, there is no video in my monitor, and my monitor states
> > > there is no signal.
> >
> > This is pretty much known, at least on our side. We also have a few more
> > patches on top of the series [1] for fixing the horizontal porches.  Our
> > current status is that we can get only one mode out of the ADV7535 which
> > is 1080P. Our assumption is that the ADV7535 needs some attentions
> > (fixes) but we can't verify that since the documentation is under NDA.
>
> I am glad I am not alone.   Thanks for the tip.  That gives me
> something to investigate.
> >
> > > If I use NXP's downstream kernel, this same hardware configuration
> > > works fine and I can see the video.
> >
> > This is because of the NXP downstream kernel porch 'calculation' and
> > workarounds. The values they are using for calculation don't take any
> > mode values into account and instead they are using a table. We don't
> > know where those values come from.
>
> I would think the VESA group would have something like these published.
> >
> > > I have checked the clk_summary, and the working and non-working
> > > conditions both have clock rates that are the same for DSI, LCDIF and
> > > related items.  The power domains connected to the lcdif and the dsi
> > > show they are active.
> > >
> > > Since I go no errors, and  Linux looks like it's happy, I was hoping
> > > someone from who better understands the interconnections between all
> > > these bridge layers might be able to offer a suggestion of something
> > > to investigate and/or try.
> > >
> > > The kernel repo I am using is from Jagan located here:
> > >
> > > [1] - https://github.com/openedev/kernel
> > >
> > > I am not convinced it's a device tree issue since I get no errors when
> > > the drivers enumerate, but I can provide my device tree updates if
> > > that helps.
> >
> > Please see above. Our debugging showed that there is a strange behaviour
> > of the ADV7535 but we don't have any documentation.
> Thanks for the comments.
>
> I'll look to see what I have for documentation.  I know my company
> signed a bunch of NDA stuff and we have an HDMI license.  I'll go
> through NXP's patches to their kernel and compare with whatever
> documentation I can find to see if I can make any improvements.

I checked our datasheet vault and I found no programming guide for the
ADV7535.  :-(
I've put in a request to see if we can get one.

I found one for the adv7511 on Analog Device's web site:
https://www.analog.com/media/en/technical-documentation/user-guides/ADV7511_Programming_Guide.pdf

They have a table of values for the different resolutions.  I am
guessing they might be the same or similar for 7535.
I'm going to look into NXP's alterations to this driver when I have more time.

adam
>
> adam
> >
> > Regards,
> >   Marco

WARNING: multiple messages have this Message-ID (diff)
From: Adam Ford <aford173@gmail.com>
To: Marco Felsch <m.felsch@pengutronix.de>
Cc: dri-devel <dri-devel@lists.freedesktop.org>,
	Marek Vasut <marex@denx.de>,  Stefan Agner <stefan@agner.ch>,
	Fabio Estevam <festevam@gmail.com>,
	Daniel Vetter <daniel@ffwll.ch>,  Jonas Karlman <jonas@kwiboo.se>,
	David Airlie <airlied@linux.ie>,
	Robert Foss <robert.foss@linaro.org>,
	 Sascha Hauer <s.hauer@pengutronix.de>,
	Neil Armstrong <narmstrong@baylibre.com>,
	 NXP Linux Team <linux-imx@nxp.com>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	 Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	 Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	 Marek Szyprowski <m.szyprowski@samsung.com>,
	Shawn Guo <shawnguo@kernel.org>,
	 Pengutronix Kernel Team <kernel@pengutronix.de>,
	arm-soc <linux-arm-kernel@lists.infradead.org>,
	 Jagan Teki <jagan@amarulasolutions.com>
Subject: Re: imx8mm lcdif->dsi->adv7535 no video, no errors
Date: Mon, 1 Aug 2022 07:15:07 -0500	[thread overview]
Message-ID: <CAHCN7xJ3deUnYMN5-NVmdknHZeFc-YOePVsGKNPb_XKqAFYLOQ@mail.gmail.com> (raw)
In-Reply-To: <CAHCN7xLSqyGHZwo=brm4xrj0jVi6R43wE8EJmWrYF72qDtYV0g@mail.gmail.com>

On Mon, Aug 1, 2022 at 5:54 AM Adam Ford <aford173@gmail.com> wrote:
>
> On Mon, Aug 1, 2022 at 1:20 AM Marco Felsch <m.felsch@pengutronix.de> wrote:
> >
> > Hi Adam,
> >
> > On 22-07-30, Adam Ford wrote:
> > > Hey all,
> > >
> > > I am trying to test Jagan's patch series [1] to add support for the
> > > samsung dsim bridge which is used on the imx8mm to output DSI video.
> > > The DSIM gets the video from the mxsfb, and in my case, the DSI is
> > > sent to the adv7535 for connecting to HDMI.
> >
> > So you're using the NXP recommended evalboard setup :)
>
> Yes and no.  Our design also adds audio to theADV7535 in addition to
> the video signal.
> For the 8M Plus design, we're looking to see if there are any 4K
> DSI->HDMI bridge chips available.
>
> >
> > > I have been able to get the device tree setup and I don't get any
> > > errors.  The Linux system appears to think the video is connected as
> > > determined by modetest:
> >
> > ...
> >
> > > Unfortunately, there is no video in my monitor, and my monitor states
> > > there is no signal.
> >
> > This is pretty much known, at least on our side. We also have a few more
> > patches on top of the series [1] for fixing the horizontal porches.  Our
> > current status is that we can get only one mode out of the ADV7535 which
> > is 1080P. Our assumption is that the ADV7535 needs some attentions
> > (fixes) but we can't verify that since the documentation is under NDA.
>
> I am glad I am not alone.   Thanks for the tip.  That gives me
> something to investigate.
> >
> > > If I use NXP's downstream kernel, this same hardware configuration
> > > works fine and I can see the video.
> >
> > This is because of the NXP downstream kernel porch 'calculation' and
> > workarounds. The values they are using for calculation don't take any
> > mode values into account and instead they are using a table. We don't
> > know where those values come from.
>
> I would think the VESA group would have something like these published.
> >
> > > I have checked the clk_summary, and the working and non-working
> > > conditions both have clock rates that are the same for DSI, LCDIF and
> > > related items.  The power domains connected to the lcdif and the dsi
> > > show they are active.
> > >
> > > Since I go no errors, and  Linux looks like it's happy, I was hoping
> > > someone from who better understands the interconnections between all
> > > these bridge layers might be able to offer a suggestion of something
> > > to investigate and/or try.
> > >
> > > The kernel repo I am using is from Jagan located here:
> > >
> > > [1] - https://github.com/openedev/kernel
> > >
> > > I am not convinced it's a device tree issue since I get no errors when
> > > the drivers enumerate, but I can provide my device tree updates if
> > > that helps.
> >
> > Please see above. Our debugging showed that there is a strange behaviour
> > of the ADV7535 but we don't have any documentation.
> Thanks for the comments.
>
> I'll look to see what I have for documentation.  I know my company
> signed a bunch of NDA stuff and we have an HDMI license.  I'll go
> through NXP's patches to their kernel and compare with whatever
> documentation I can find to see if I can make any improvements.

I checked our datasheet vault and I found no programming guide for the
ADV7535.  :-(
I've put in a request to see if we can get one.

I found one for the adv7511 on Analog Device's web site:
https://www.analog.com/media/en/technical-documentation/user-guides/ADV7511_Programming_Guide.pdf

They have a table of values for the different resolutions.  I am
guessing they might be the same or similar for 7535.
I'm going to look into NXP's alterations to this driver when I have more time.

adam
>
> adam
> >
> > Regards,
> >   Marco

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Adam Ford <aford173@gmail.com>
To: Marco Felsch <m.felsch@pengutronix.de>
Cc: dri-devel <dri-devel@lists.freedesktop.org>,
	Marek Vasut <marex@denx.de>, Stefan Agner <stefan@agner.ch>,
	Fabio Estevam <festevam@gmail.com>,
	Daniel Vetter <daniel@ffwll.ch>, Jonas Karlman <jonas@kwiboo.se>,
	David Airlie <airlied@linux.ie>,
	Robert Foss <robert.foss@linaro.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Neil Armstrong <narmstrong@baylibre.com>,
	NXP Linux Team <linux-imx@nxp.com>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Shawn Guo <shawnguo@kernel.org>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	arm-soc <linux-arm-kernel@lists.infradead.org>,
	Jagan Teki <jagan@amarulasolutions.com>
Subject: Re: imx8mm lcdif->dsi->adv7535 no video, no errors
Date: Mon, 1 Aug 2022 07:15:07 -0500	[thread overview]
Message-ID: <CAHCN7xJ3deUnYMN5-NVmdknHZeFc-YOePVsGKNPb_XKqAFYLOQ@mail.gmail.com> (raw)
In-Reply-To: <CAHCN7xLSqyGHZwo=brm4xrj0jVi6R43wE8EJmWrYF72qDtYV0g@mail.gmail.com>

On Mon, Aug 1, 2022 at 5:54 AM Adam Ford <aford173@gmail.com> wrote:
>
> On Mon, Aug 1, 2022 at 1:20 AM Marco Felsch <m.felsch@pengutronix.de> wrote:
> >
> > Hi Adam,
> >
> > On 22-07-30, Adam Ford wrote:
> > > Hey all,
> > >
> > > I am trying to test Jagan's patch series [1] to add support for the
> > > samsung dsim bridge which is used on the imx8mm to output DSI video.
> > > The DSIM gets the video from the mxsfb, and in my case, the DSI is
> > > sent to the adv7535 for connecting to HDMI.
> >
> > So you're using the NXP recommended evalboard setup :)
>
> Yes and no.  Our design also adds audio to theADV7535 in addition to
> the video signal.
> For the 8M Plus design, we're looking to see if there are any 4K
> DSI->HDMI bridge chips available.
>
> >
> > > I have been able to get the device tree setup and I don't get any
> > > errors.  The Linux system appears to think the video is connected as
> > > determined by modetest:
> >
> > ...
> >
> > > Unfortunately, there is no video in my monitor, and my monitor states
> > > there is no signal.
> >
> > This is pretty much known, at least on our side. We also have a few more
> > patches on top of the series [1] for fixing the horizontal porches.  Our
> > current status is that we can get only one mode out of the ADV7535 which
> > is 1080P. Our assumption is that the ADV7535 needs some attentions
> > (fixes) but we can't verify that since the documentation is under NDA.
>
> I am glad I am not alone.   Thanks for the tip.  That gives me
> something to investigate.
> >
> > > If I use NXP's downstream kernel, this same hardware configuration
> > > works fine and I can see the video.
> >
> > This is because of the NXP downstream kernel porch 'calculation' and
> > workarounds. The values they are using for calculation don't take any
> > mode values into account and instead they are using a table. We don't
> > know where those values come from.
>
> I would think the VESA group would have something like these published.
> >
> > > I have checked the clk_summary, and the working and non-working
> > > conditions both have clock rates that are the same for DSI, LCDIF and
> > > related items.  The power domains connected to the lcdif and the dsi
> > > show they are active.
> > >
> > > Since I go no errors, and  Linux looks like it's happy, I was hoping
> > > someone from who better understands the interconnections between all
> > > these bridge layers might be able to offer a suggestion of something
> > > to investigate and/or try.
> > >
> > > The kernel repo I am using is from Jagan located here:
> > >
> > > [1] - https://github.com/openedev/kernel
> > >
> > > I am not convinced it's a device tree issue since I get no errors when
> > > the drivers enumerate, but I can provide my device tree updates if
> > > that helps.
> >
> > Please see above. Our debugging showed that there is a strange behaviour
> > of the ADV7535 but we don't have any documentation.
> Thanks for the comments.
>
> I'll look to see what I have for documentation.  I know my company
> signed a bunch of NDA stuff and we have an HDMI license.  I'll go
> through NXP's patches to their kernel and compare with whatever
> documentation I can find to see if I can make any improvements.

I checked our datasheet vault and I found no programming guide for the
ADV7535.  :-(
I've put in a request to see if we can get one.

I found one for the adv7511 on Analog Device's web site:
https://www.analog.com/media/en/technical-documentation/user-guides/ADV7511_Programming_Guide.pdf

They have a table of values for the different resolutions.  I am
guessing they might be the same or similar for 7535.
I'm going to look into NXP's alterations to this driver when I have more time.

adam
>
> adam
> >
> > Regards,
> >   Marco

  reply	other threads:[~2022-08-01 12:15 UTC|newest]

Thread overview: 128+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-30 15:15 imx8mm lcdif->dsi->adv7535 no video, no errors Adam Ford
2022-07-30 15:15 ` Adam Ford
2022-07-30 15:15 ` Adam Ford
2022-08-01  6:19 ` Marco Felsch
2022-08-01  6:19   ` Marco Felsch
2022-08-01 10:54   ` Adam Ford
2022-08-01 10:54     ` Adam Ford
2022-08-01 10:54     ` Adam Ford
2022-08-01 12:15     ` Adam Ford [this message]
2022-08-01 12:15       ` Adam Ford
2022-08-01 12:15       ` Adam Ford
2022-08-01 19:33 ` Fabio Estevam
2022-08-01 19:33   ` Fabio Estevam
2022-08-01 19:33   ` Fabio Estevam
2022-08-01 20:07   ` Adam Ford
2022-08-01 20:07     ` Adam Ford
2022-08-01 20:07     ` Adam Ford
2022-08-01 22:57     ` Adam Ford
2022-08-01 22:57       ` Adam Ford
2022-08-01 22:57       ` Adam Ford
2022-08-01 22:55   ` Marco Felsch
2022-08-01 22:55     ` Marco Felsch
2022-08-01 22:55     ` Marco Felsch
2022-08-01 23:11     ` Fabio Estevam
2022-08-01 23:11       ` Fabio Estevam
2022-08-01 23:11       ` Fabio Estevam
2022-08-02  1:39       ` Adam Ford
2022-08-02  1:39         ` Adam Ford
2022-08-02  1:39         ` Adam Ford
2022-08-02  1:53         ` Fabio Estevam
2022-08-02  1:53           ` Fabio Estevam
2022-08-02  1:53           ` Fabio Estevam
2022-08-02  2:29           ` Adam Ford
2022-08-02  2:29             ` Adam Ford
2022-08-02  2:29             ` Adam Ford
2022-08-02  8:08             ` Marco Felsch
2022-08-02  8:08               ` Marco Felsch
2022-08-02  8:08               ` Marco Felsch
2022-08-02 12:13               ` Adam Ford
2022-08-02 12:13                 ` Adam Ford
2022-08-02 12:13                 ` Adam Ford
2022-08-02 13:51                 ` Adam Ford
2022-08-02 13:51                   ` Adam Ford
2022-08-02 13:51                   ` Adam Ford
2022-08-03  2:14                   ` Adam Ford
2022-08-03  2:14                     ` Adam Ford
2022-08-03  2:14                     ` Adam Ford
2022-08-03  6:20                     ` Marco Felsch
2022-08-03  6:20                       ` Marco Felsch
2022-08-03  6:20                       ` Marco Felsch
2022-08-03 11:02                       ` Adam Ford
2022-08-03 11:02                         ` Adam Ford
2022-08-03 11:02                         ` Adam Ford
2022-08-03 12:17                         ` Dave Stevenson
2022-08-03 12:17                           ` Dave Stevenson
2022-08-03 12:17                           ` Dave Stevenson
2022-08-03 12:31                           ` Adam Ford
2022-08-03 12:31                             ` Adam Ford
2022-08-03 12:31                             ` Adam Ford
2022-08-03 13:41                             ` Dave Stevenson
2022-08-03 13:41                               ` Dave Stevenson
2022-08-03 13:41                               ` Dave Stevenson
2022-08-04 10:27                               ` Marco Felsch
2022-08-04 10:27                                 ` Marco Felsch
2022-08-04 10:27                                 ` Marco Felsch
2022-08-04 12:03                                 ` Dave Stevenson
2022-08-04 12:03                                   ` Dave Stevenson
2022-08-04 12:03                                   ` Dave Stevenson
2022-08-04 13:16                                   ` Marco Felsch
2022-08-04 13:16                                     ` Marco Felsch
2022-08-04 13:16                                     ` Marco Felsch
2022-08-04  9:57                             ` Marco Felsch
2022-08-04  9:57                               ` Marco Felsch
2022-08-04  9:57                               ` Marco Felsch
2022-08-04  9:38                           ` Marco Felsch
2022-08-04  9:38                             ` Marco Felsch
2022-08-04  9:38                             ` Marco Felsch
2022-08-04 11:31                             ` Dave Stevenson
2022-08-04 11:31                               ` Dave Stevenson
2022-08-04 11:31                               ` Dave Stevenson
2022-08-04 12:51                               ` Marco Felsch
2022-08-04 12:51                                 ` Marco Felsch
2022-08-04 12:51                                 ` Marco Felsch
2022-08-04 13:12                                 ` Adam Ford
2022-08-04 13:12                                   ` Adam Ford
2022-08-04 13:12                                   ` Adam Ford
2022-08-04 13:23                                   ` Marco Felsch
2022-08-04 13:23                                     ` Marco Felsch
2022-08-04 13:23                                     ` Marco Felsch
2022-08-04 14:43                                   ` Biju Das
2022-08-04 14:43                                     ` Biju Das
2022-08-04 14:43                                     ` Biju Das
2022-08-04 14:51                                 ` Dave Stevenson
2022-08-04 14:51                                   ` Dave Stevenson
2022-08-04 14:51                                   ` Dave Stevenson
2022-08-05  0:05                                   ` Adam Ford
2022-08-05  0:05                                     ` Adam Ford
2022-08-05  0:05                                     ` Adam Ford
2022-08-05  8:44                                     ` Biju Das
2022-08-05  8:44                                       ` Biju Das
2022-08-05  8:44                                       ` Biju Das
2022-08-05 10:55                                       ` Adam Ford
2022-08-05 10:55                                         ` Adam Ford
2022-08-05 10:55                                         ` Adam Ford
2022-08-05 12:56                                         ` Adam Ford
2022-08-05 12:56                                           ` Adam Ford
2022-08-05 12:56                                           ` Adam Ford
2022-08-05 21:05                                           ` Adam Ford
2022-08-05 21:05                                             ` Adam Ford
2022-08-05 21:05                                             ` Adam Ford
2022-08-08  2:49                                             ` Adam Ford
2022-08-08  2:49                                               ` Adam Ford
2022-08-08  2:49                                               ` Adam Ford
2022-08-08  8:54                                               ` Marco Felsch
2022-08-08  8:54                                                 ` Marco Felsch
2022-08-08  8:54                                                 ` Marco Felsch
2022-08-08 10:13                                                 ` Adam Ford
2022-08-08 10:13                                                   ` Adam Ford
2022-08-08 10:13                                                   ` Adam Ford
2022-08-09  3:45                                                   ` Adam Ford
2022-08-09  3:45                                                     ` Adam Ford
2022-08-09  3:45                                                     ` Adam Ford
2022-08-04  8:41                         ` Marco Felsch
2022-08-04  8:41                           ` Marco Felsch
2022-08-04  8:41                           ` Marco Felsch
2022-08-03  5:56                   ` Marco Felsch
2022-08-03  5:56                     ` Marco Felsch
2022-08-03  5:56                     ` Marco Felsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHCN7xJ3deUnYMN5-NVmdknHZeFc-YOePVsGKNPb_XKqAFYLOQ@mail.gmail.com \
    --to=aford173@gmail.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=airlied@linux.ie \
    --cc=andrzej.hajda@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jagan@amarulasolutions.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.felsch@pengutronix.de \
    --cc=m.szyprowski@samsung.com \
    --cc=marex@denx.de \
    --cc=narmstrong@baylibre.com \
    --cc=robert.foss@linaro.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.