From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD4D1C77B73 for ; Wed, 24 May 2023 10:24:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WhLpFxlYY/gSTfqmU/u+7ymCKS2OI3pzcIP2x6gtm2g=; b=FK/4UL+v1NW/P9 OMWEn/PVs2jdkXNeiMxVn3aqWi8b8g19XFSr+e2qtfOtqGr3qeMi6hjCyh5Dy5h5JK++FTBDZ5X0P 7dMI+HnP31AZl8h1DV3a9LBxo0Q+gOpcpI/rIyN7pkkx9FYcUSVh/CSAZaXDDAxDG9wf9OmUNVyCe NhF0SeQx2QiBdhan7RVwBOfB/Naxzz2MuMopYOeXBIlpXu4JDquf8rXuh/rQVtRGRhb8UojPCph+d 6bfusl8Z4tPhVF38G/SoPeWv0cI6c2cYPZaJXcLwg4eFacYIDtTWy8kBIbv5cvZrqx6gR4zzTF2yZ lMm5EJVuxMORnGkU95nA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1lfL-00D5Vh-1b; Wed, 24 May 2023 10:24:23 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1lfI-00D5Ur-0K for linux-arm-kernel@lists.infradead.org; Wed, 24 May 2023 10:24:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1684923860; x=1716459860; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Rc84ojW4hQevoGDBaVtQpGYulSFqn5AVEQWxry54pw8=; b=E/PoekyDvWiA13zNaDH8zPWIYvQ4UvfyE98NxsCSXOxCVra7QEV+B37S NaE2sijg9jRAD10epF0keqAWKXMsHjlvcCrp8NtIS1C0X5SZYsTV6s5sw lqxLZTTUQd0zpFyfRPYO+rCJyNAlgdO4N2n0+ljGIGNCbFtSG4+UAwAc+ hlx+LI2Vd0w1HmNiemm0Bmo9X6q+3AUhIZZ/bxjqmi5mozHAcPcjIx2Lx +RxtsEThhwB3uWFyJ88CbozaCb9/g32Y5ijIKYCB9wJZMAbM92OQW4W+k 3GDPgPy5PUP7s27W6kprnq/fyDpPA1RjIOG86asA/rra+DYDa+72cStWp Q==; X-IronPort-AV: E=Sophos;i="6.00,188,1681164000"; d="scan'208";a="31070880" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 24 May 2023 12:24:15 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 24 May 2023 12:24:15 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 24 May 2023 12:24:15 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1684923855; x=1716459855; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Rc84ojW4hQevoGDBaVtQpGYulSFqn5AVEQWxry54pw8=; b=TbwkFSuyg12aLMwWfqOESPB83e1nNXtLc5e0Wzfj11CM1KF/oQ+ssksg sEzBX25WKCVCnTDZpAXMFEkdPIkGEUY3IWUUOw8ekX+bYA49hsfewt4KU lE5yegq/kjZeWpB64WllguU35By7oaf11q7mQo3fHZWTu7ImMJwz5akoY 6puHxFZ5acLwdmEp++XFeZ1zfu+7Pgowh2JzoctPNJT2+WcL3uvKZytrC M1u2uGT3+SjL7HU4a5jZK+SMXnIsCZbcEExwKmVIphUDmhcRUgoZ+Mjij EpOPCrQa2TiE0LShVssVM3LKriHlYqRUWgnUG2cj2F/SK9OF8JiCSivAl Q==; X-IronPort-AV: E=Sophos;i="6.00,188,1681164000"; d="scan'208";a="31070879" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 24 May 2023 12:24:15 +0200 Received: from steina-w.localnet (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 80EA0280082; Wed, 24 May 2023 12:24:15 +0200 (CEST) From: Alexander Stein To: Marek Vasut Cc: linux-arm-kernel@lists.infradead.org, Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , 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 12:24:14 +0200 Message-ID: <1953702.usQuhbGJ8B@steina-w> Organization: TQ-Systems GmbH In-Reply-To: References: <20230515162424.67597-1-marex@denx.de> <3741758.kQq0lBPeGt@steina-w> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230524_032420_524565_6EA226C6 X-CRM114-Status: GOOD ( 32.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Marek, Am Mittwoch, 24. Mai 2023, 11:28:32 CEST schrieb Marek Vasut: > 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 > >>> = > >>> Were you actually able to access the display? E.g. reading DPCD via A= UX > >>> 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. I assume you were able to successfully use the bridge on both boards, no? > > 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. It's already connected to an Xtal, according to schematic it's 26MHz. This = is = also what I configured in DT. So far I think this looks correct. > > 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. bad clock in the sense of badly configured or bad xtal hardware? As the bri= dge = and the xtal is on the same mainboard, for now, I ignore wirings. Best regards, Alexander -- = TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht M=FCnchen, HRB 105018 Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider http://www.tq-group.com/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel