Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp220229imn; Thu, 4 Aug 2022 03:19:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR5wKD6lOoNGNOolg921fFlS94pVkJo9TOvJt4VUHyur82OvyVpbCs/saNl+5KWL3pd29hZL X-Received: by 2002:a17:907:2723:b0:72b:5a8a:f983 with SMTP id d3-20020a170907272300b0072b5a8af983mr870214ejl.635.1659608377618; Thu, 04 Aug 2022 03:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659608377; cv=none; d=google.com; s=arc-20160816; b=RVrP8mbQVT22vp5Y3igu1yb83rhUkzu4DOs/S4QcfApKMaaclDabKK7G2Z+QLo2h0o tjTlYmxdqvmtJgwYjZIBKk1EUMWwH/kG2249xuu/m0qDDIQBTlyXGTP3H/uwGAjMowxM Xg52fjlyK57j3XI9+ZPQHhZbarzL/V3pAhrUSwFQ1hcrjbjo196/ufkocv52tRWE56bJ 5F2jyk02WnTxW5eaMP3Eq0Vex+8bH/suLQRflF5kv1O4iaVW930EO6tndV9zreaXF1jW DAA+9WBSCHT3dqEhR+PW6KOQSQtf+iT8kgw3TwTL70tgJVfsvostV7EX5MlTaT2+W4oi yVIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=5FqVQ5oCXZuESznTBhohiHH5rUQr+dQ/Hoqif2DCfsk=; b=DuR2o3g2MAml7LE/cbW6Je61ZI5Ta6zvjRH5EawO6PtPw2EiVL5JMATv+JuabEisNh 4y1xzlUOu4cJavzJUZfqDh22sSK4Zcopkj3XX7v7AdnDuf+B3uM2Z9atn44K/+Yliokd sOId25lM/WBo3q419qBmSGOQmUmHQE/D9VwyXEwT+medu0u6RWNPMlxGt8NG4Vh3O/gh YLBpXIKcwLn1MCiCFRYaALc4pOSaAjr7IVusMQBT2aP3PqnhyY0mKwcTWXn1SyRKANA0 scpW5FgWjMBwUcTKjVYi+PT8+FZXMuaBFIhQtMe5Ns+/0gHwb0qRXq40Hn7OX5Mq8qXp wkjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg5-20020a1709072cc500b0072ab62adfe9si502010ejc.237.2022.08.04.03.19.12; Thu, 04 Aug 2022 03:19:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238750AbiHDJ5f (ORCPT + 99 others); Thu, 4 Aug 2022 05:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231982AbiHDJ5d (ORCPT ); Thu, 4 Aug 2022 05:57:33 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51EA66610F for ; Thu, 4 Aug 2022 02:57:31 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJXbR-000870-GW; Thu, 04 Aug 2022 11:57:17 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1oJXbP-0007zS-7a; Thu, 04 Aug 2022 11:57:15 +0200 Date: Thu, 4 Aug 2022 11:57:15 +0200 From: Marco Felsch To: Adam Ford Cc: Dave Stevenson , Neil Armstrong , David Airlie , dri-devel , Laurent Pinchart , Andrzej Hajda , Marek Szyprowski , Marek Vasut , Jernej Skrabec , Jagan Teki , robert.chiras@nxp.com, laurentiu.palcu@nxp.com, NXP Linux Team , Jonas Karlman , Sascha Hauer , arm-soc , Linux Kernel Mailing List , Robert Foss , Pengutronix Kernel Team , Shawn Guo Subject: Re: imx8mm lcdif->dsi->adv7535 no video, no errors Message-ID: <20220804095715.d3ay7yvn2adxdo4x@pengutronix.de> References: <20220802080820.jyf3tfpgcj3pvbtp@pengutronix.de> <20220803062024.vn7awasmifkp5xow@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22-08-03, Adam Ford wrote: > On Wed, Aug 3, 2022 at 7:17 AM Dave Stevenson ... > > Not meaning to butt in, but I have datasheets for ADV7533 and 7535 > > from previously looking at these chips. > > Thanks for the feedback. > > > Mine fairly plainly states: > > "The DSI receiver input supports DSI video mode operation only, and > > specifically, only supports nonburst mode with sync pulses". > > Non-burst mode meaning that the DSI pixel rate MUST be the same as the > > HDMI pixel rate. > > Mine also states the DSI source needs to provide correct video timing > with start and stop sync packets. > > If I remember correctly, it seemed like Marek V wanted the hard coded > samsung,burst-clock-frequency to go away so the clock frequency could > be set dynamically. As previously said, this is something on our TODO list too :) but needs a bit more infrastructure work. > I have attempted to do some of this work based on what I am seeing in > the NXP kernel, and I get get my monitor to sync at some resolutions, > but the screen is usually all green or all blue, so it's not really a > success. The clock part appears to be good enough to make the monitor > see some sort of signal, so I am going to investigate the calculation > of the rest of the video timings to see if I can fix the color issue. Please don't pay to much attention to the NXP kernel. No one have a glue where those porches came from. If I specify the burst-clock-freq. to 445.5 and set the lane number to 4 and hack in the porches values from NXP, than I get a 720P output too. But this isn't the way to go instead we should calc the porches settings and the burst-clock-frequency dynamiclly to provide more than just a few resolutions. But for that we need a clear understanding of how the ADV is working. I will prepare a repo to day and will send you a link with the hack patches in it, so you can test it :) Regards, Marco