devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Alexander Stein <alexander.stein@ew.tq-group.com>
Cc: linux-arm-kernel@lists.infradead.org,
	Conor Dooley <conor+dt@kernel.org>,
	Fabio Estevam <festevam@gmail.com>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	NXP Linux Team <linux-imx@nxp.com>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Rob Herring <robh+dt@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Shawn Guo <shawnguo@kernel.org>,
	devicetree@vger.kernel.org
Subject: Re: [PATCH] arm64: dts: imx8mp: Add TC9595 bridge on DH electronics i.MX8M Plus DHCOM
Date: Wed, 24 May 2023 11:28:32 +0200	[thread overview]
Message-ID: <a8306df6-3b30-19d1-6153-b30a425c7ed0@denx.de> (raw)
In-Reply-To: <3741758.kQq0lBPeGt@steina-w>

On 5/24/23 08:49, Alexander Stein wrote:
> Hi Marek,

Hi,

> Am Dienstag, 23. Mai 2023, 15:10:05 CEST schrieb Marek Vasut:
>> On 5/23/23 13:17, Alexander Stein wrote:
>>> Hello Marek,
>>
>> Hi,
>>
>>> Am Montag, 15. Mai 2023, 18:24:24 CEST schrieb Marek Vasut:
>>>> Add TC9595 DSI-to-DPI and DSI-to-(e)DP bridge to
>>>> DH electronics i.MX8M Plus DHCOM SoM . The bridge
>>>> is populated on the SoM, but disabled by default
>>>> unless used for display output.
>>>>
>>>> Signed-off-by: Marek Vasut <marex@denx.de>
>>>
>>> Were you actually able to access the display? E.g. reading DPCD via AUX
>>> channel?
>>
>> I only tried the full display port (the one with large plug) on the TC
>> evaluation kit, there I could use the aux channel. Are you testing this
>> bridge and running into issues ? Details please ?
> 
> Which SoC is this evaluation kit based on?

There is no SoC attached to it, it's just a breakout board for the 
bridge chip. You can attach it via DSI to whichever SoC you want. So far 
I tried STM32MP15xx and i.MX8MP.

> Yes, I'm trying to test this bridge on imx8mp based board.
> 
> AFAICS I run into a timeout during drm connector .get_modes call, see kernel
> log below.
> 
>> samsung-dsim 32e60000.dsi: [drm:samsung_dsim_host_attach [samsung_dsim]]
> Attached tc358767 device
>> tc358767 1-000f: failed to read DPCD: -110
>> tc358767 1-000f: failed to read display props: -110

How are you supplying clock to the TC358767 (or newer) ?
Do you supply clock from DSI or from Xtal ?
If DSI and if possible, switch to Xtal and see whether that helps.
Also check the Xtal frequency and make sure you define that correctly in DT.

> Looking at the AUX_CH+/- signals, I can see the native aux request and the
> (presumable) correct answer (DP_DPCD_REV register) from the display. But for
> some reason the bridge runs into a aux timeout.
> I can see in the DP0_AUXSTATUS register the bus gets busy (0x1) after starting
> transfer. But after the tc_aux_wait_busy() call DP0_AUXSTATUS his indicating a
> timeout and sync error (0x310002).
> When changing the "Aux Bit Period Calculator Threshold" to 5 (register
> AUXCFG1), the sync error is gone, but the timeout still happens.
> 
> The frequency used from the display is ~1MHz, which should be okay. So on the
> electrical side all seems okay, but the native aux transfer don't work.

I recall DPCD read timeouts, but those were usually triggered by either 
bad clock or wiring problems (the devkit wiring I used was horrible at 
the beginning) from what I can recall.

  reply	other threads:[~2023-05-24  9:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-15 16:24 [PATCH] arm64: dts: imx8mp: Add TC9595 bridge on DH electronics i.MX8M Plus DHCOM Marek Vasut
2023-05-23 11:17 ` Alexander Stein
2023-05-23 13:10   ` Marek Vasut
2023-05-24  6:49     ` Alexander Stein
2023-05-24  9:28       ` Marek Vasut [this message]
2023-05-24 10:24         ` Alexander Stein
2023-05-24 10:37           ` Marek Vasut
2023-05-26 12:52             ` Alexander Stein
2023-05-27  8:35 ` Shawn Guo
2023-05-27 10:19   ` Marek Vasut
2023-05-27 10:47 ` Shawn Guo

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=a8306df6-3b30-19d1-6153-b30a425c7ed0@denx.de \
    --to=marex@denx.de \
    --cc=alexander.stein@ew.tq-group.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=robh+dt@kernel.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 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).