Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4648189rwe; Mon, 17 Apr 2023 16:31:53 -0700 (PDT) X-Google-Smtp-Source: AKy350Zq1lTqTlcBi5toDWnYn+edENMYw+nps1Oa/idHqg7euhTgXkRcr9qeJlsuy/+6JymsBK/C X-Received: by 2002:a05:6a00:22d4:b0:63d:3595:26db with SMTP id f20-20020a056a0022d400b0063d359526dbmr1433389pfj.23.1681774313685; Mon, 17 Apr 2023 16:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681774313; cv=none; d=google.com; s=arc-20160816; b=nGBsuINWSfbh9vraecaFXfuRY+E7TVql+II13/zBL1GsY+9+aXjiSUQYDXXFgG7/Z1 NqiAD3NCCZlLVdGnCPqZfVTx19kgZtq1Gm8m7fWAqiw2XffPkJ7350TrUknbTL4x5bPJ Oh9llsPIRVjv8EjhiEzXC3AJbUWywXq/x05hoDqQ9Zbx1XoMYHLoLeQ7KSG7X5V1P7D0 0p0+VQOin15vXq6IjP5LPKWdcUwRG6I0aEHom53QIvoBftPuZAJM1kYJoWqiKPGlcdzg s+HxiR2j43CD80TGTjLoV2Xzu/7zv+0y3I012hSlj3lmiE3BUCxGbiaZ2jLROG162oBc mubQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LCsMthDhyYWENEbRzaTVRwOHdppq61Ge4OVid4ZaLlI=; b=raC9f3YTy3p1EA2YH38cXgdi8r29zQhX/Uje6hpPmQnD2OU/mlw2uISYKt8X7i0P16 yB7oiL36Yzm6Djr3GSwBkVGE/8kl57HfjWrbGO8qq5AGj0NNo+GIpOlzllwI8urf75fP UfxPliwCIImLdsnS9PeW0bJ3m3V3ryHeTHKDQSko//cnInHqviCMVYi+QlsNEmGuicP5 QMWzk5C2MYwb2+G/J1LFfT41RQG4RRDLC/j+3luH7KXWzDE8Ae60liXcXbIZxD2q1mKg OHX8thsT7jPyCAjfudcm2RWjtHN4SkGr+ECyK+ajZBEda61Lb2d6xG/6Qz3B59Pl3P67 72Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=iRcBAgqD; 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 i4-20020a056a00004400b0063b6e3e5a12si9141860pfk.169.2023.04.17.16.31.40; Mon, 17 Apr 2023 16:31:53 -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; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=iRcBAgqD; 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 S229792AbjDQXXi (ORCPT + 99 others); Mon, 17 Apr 2023 19:23:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbjDQXXg (ORCPT ); Mon, 17 Apr 2023 19:23:36 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3288E44B5; Mon, 17 Apr 2023 16:23:33 -0700 (PDT) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 5C81E837A7; Tue, 18 Apr 2023 01:23:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1681773811; bh=LCsMthDhyYWENEbRzaTVRwOHdppq61Ge4OVid4ZaLlI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=iRcBAgqDR7ASOkNCOU0CGVqDFJ7sFNxfc4dJpCCCU5GiSIrdIo81xx+pPu5CDSOqR 4I3fDEAEFFNQRdVczCU+gm8/hWq5znEw6EtIDvNM0zpsIvQLze9ENOtuCzT2+pCLe5 RAMJCVel32BYkKsbHtqB6jXE2xP5y1M8YL/lEde9krZrTGQaP+YKPezcaIdXiozfLT XfCGt9lz2Tz21wVexKVvM4n+tmaOXnaUZCeoGdQB6emwrRk4bbSoOLQTnX6ggPq01Z A1mqH973Q8At89rskp7UmIsGw2/oyTJ8y09mFKn68VMfyFh+BfndwVBX34JH44s3GS vAuIq4hkKlXEw== Message-ID: Date: Tue, 18 Apr 2023 01:23:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 5/6] drm: bridge: samsung-dsim: Support non-burst mode To: Adam Ford Cc: dri-devel@lists.freedesktop.org, m.szyprowski@samsung.com, aford@beaconembedded.com, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Inki Dae , Jagan Teki , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Frieder Schrempf , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lucas Stach References: <20230415104104.5537-1-aford173@gmail.com> <20230415104104.5537-5-aford173@gmail.com> <807aa6c6-bbea-abcc-172d-17e22d1a3988@denx.de> <88e53197-2819-c068-eba6-a218a19d8d15@denx.de> Content-Language: en-US From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 4/18/23 00:24, Adam Ford wrote: > On Mon, Apr 17, 2023 at 3:08 PM Marek Vasut wrote: >> >> On 4/17/23 13:57, Adam Ford wrote: >>> On Sun, Apr 16, 2023 at 5:13 PM Marek Vasut wrote: >>>> >>>> On 4/15/23 12:41, Adam Ford wrote: >>>>> The high-speed clock is hard-coded to the burst-clock >>>>> frequency specified in the device tree. However, when >>>>> using devices like certain bridge chips without burst mode >>>>> and varying resolutions and refresh rates, it may be >>>>> necessary to set the high-speed clock dynamically based >>>>> on the desired pixel clock for the connected device. >>>> >>>> The link rate negotiation should happen internally between the nearest >>>> bridge and DSIM, so please add that to DRM core instead of hacking >>>> around it by tweaking the HS clock again. >>> >>> I thought you tried to add something like this before and had some resistance. >> >> Yes, all my attempts were rejected by a single reviewer. I suspended my >> efforts in that area for now. >> >>> The Pixel clock is set by the bridge already without any new code >>> added to the DRM core.. I am just reading that value that's there, >>> and setting the clock accordingly. I don't see how this is a hack. >> >> Assume you have a DSI-to-HDMI bridge attached to your DSIM bridge, it >> operates in non-burst mode, like ADV7533 . How would you configure the > > I have an ADV7535 > >> HS clock rate for such a bridge in DT ? (hint: you cannot, because the >> required clock comes from the EDID, which may not be available just yet) > > The whole idea is that you wouldn't want to or need to configure the > clock speed in the device tree because it comes from the > EDID->bridge->DSI. > > I've tested this configuration on imx8mm, imx8mn, and imx8mp and I can > change the resolution and refresh rate on the fly and the DSI will > automatically readjust accordingly. If you fixed the clock in the > device tree, you wouldn't be able to do that, and that was the point > of this patch. Uh, I retract my comment, I was clearly confused here and we're talking about the same thing.