Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2252341rwl; Thu, 30 Mar 2023 08:00:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZDwYEZAqD/uCChqIayCUTlDmDlXZKcQbA83ydOEUxZbMmvT13h8CiB4UqsCphvzCRYwRrD X-Received: by 2002:a17:90a:448a:b0:240:c4e6:2b2f with SMTP id t10-20020a17090a448a00b00240c4e62b2fmr2318851pjg.0.1680188405709; Thu, 30 Mar 2023 08:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680188405; cv=none; d=google.com; s=arc-20160816; b=voRntJFzlt3SelJb/J4glwKB596sp3+gayBsDdOD77ooVA2N8ClSU6UEQdKeIo+BuN UvCk/07ErSuQj2WlxlP9UaYwbP4KIhPDaBNRKLAzFKEEovX95IGoeA7RhPF1t6uO3tr9 au1k31Y0EAxCGUSoPrW12vbOnsaC7WD9i9XPkeKm440vGjFZri0+b3CMobseZ3JF53Zr 5mgAvjscAPBxtwQtcMEl0ZKC0mzQCCTbw0k7BX6x33OPfYgTB3G6K6+QQBYbWjgw878/ 96WKPrk7eK5cCE2fufX7yLL8myO7o2bphj6iA3Icdyihrae0NVP4j+l+pcESB/euVDgl YdGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=FHEfLnOGnOORrms71L0mJQRc3S0uhMl8wakh7BNG13g=; b=FOAPXnhgkRKeXh34+gZvoYbawl5jrQXfPmoPTrB+mQzDCpwNZ9XG5gSN8jN380u/cW XWwa38bUku1X2xIbACTKRvNM/mGH2xC94Crbn2GUqCK1/imAWYsiBwh/CQsjhGwSifKj I8KocnBPWt+kMTTSXGZ5255ksz2X3iws+/Sk/6GoFwA8un6pJjdkFwoAzQbCwI3vbkRz 3SiSG0bHrwl8K0v6XAPLLsYAPLR6dLXV+ptjNodUk3fL7wJ/CBHSjzirpnzrotG+SDUH oZNwfndKSRQBvEWkKV2YDSl0pApLh2zub68nLtJfs/pQSYr/FqkoybhjoYFIYGvkMmn4 X58Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=D4MlvVra; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=dJq+ZYPm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a63f708000000b0050bfbac1186si34801461pgh.544.2023.03.30.07.59.22; Thu, 30 Mar 2023 08:00:05 -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=@cerno.tech header.s=fm3 header.b=D4MlvVra; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=dJq+ZYPm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232642AbjC3O7B (ORCPT + 99 others); Thu, 30 Mar 2023 10:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232657AbjC3O6z (ORCPT ); Thu, 30 Mar 2023 10:58:55 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03C64CC0F; Thu, 30 Mar 2023 07:58:39 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id C278F32002B6; Thu, 30 Mar 2023 10:58:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 30 Mar 2023 10:58:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1680188295; x=1680274695; bh=FHEfLnOGnOORrms71L0mJQRc3S0uhMl8wak h7BNG13g=; b=D4MlvVrayE9fCoxy0co2+h6ulYDMFKOp9bATtF1I+jOFKlsffd7 7QZzq3apC4mvgGsTUGVzRKMREyAESqRmF7/PpQAtzlGIacod+rVmkaR5nbusnetu znECsD074YDx8Q9Lud2R4/CBPzPj47ZNXNDbGStBJPbBXVqNg1PMvdyQ8FLivcxZ RpJ79Ebt9LkNGhLxfVHR2mTLJ8b4JC34gywKofOrfFogHcf5tAZONwdbCpqOjGak IK+HyslBdUW3FC9bYT/GC/OH36mYusPmglXSPmFeENF0Mipy9+H2wqS5FKefE1tY d5MDut2PQgyjB87AxFd9nRgNaWOCb20Iu7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1680188295; x=1680274695; bh=FHEfLnOGnOORrms71L0mJQRc3S0uhMl8wak h7BNG13g=; b=dJq+ZYPmwpwjhaTsoZwi5PEJm2C4BqrtWwlJqn9NJX9s3zVSxnn 8GcUp00HtCB8jrAFPlPUX2TGmcGN0AGT7fJp7QONus0KPbtHW2a+qNhO7Dsywq6I bpv/DoKdIT+0SIeMGKuRPw190w9+8zQPlC++mY4uDJbssFlwvUd8x10n+9J4/99i MU5/NV35JoeURbvCRiMleDAqFTiHvkx8akL4VMu0By1pMp7Yve1xodQOJ6H7PmA1 Tc4sN1Nqvi4BaxTczDCFiDr3+unMBc4mXu7vO4E34H2wWLeoB7aTkI/KxUD8nbXc GFqnLGkpf8xZsMicEqnrzs7MbQlQvAMp9nA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdehkedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggugfgjsehtqhertddttddvnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnheptefgleeggfegkeekgffgleduieduffejffegveevkeejudektdduueet feetfefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Mar 2023 10:58:13 -0400 (EDT) Date: Thu, 30 Mar 2023 16:58:11 +0200 From: Maxime Ripard To: Michael Riesch Cc: Rob Herring , Gerald Loacker , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Krzysztof Kozlowski Subject: Re: [PATCH 7/7] dt-bindings: display: add panel-timing property to sitronix,st7789v Message-ID: <20230330145811.asot2cvux4ebbeqy@penduick> References: <20230314115644.3775169-1-gerald.loacker@wolfvision.net> <20230314115644.3775169-8-gerald.loacker@wolfvision.net> <20230316215735.GA3940832-robh@kernel.org> <20230329091636.mu6ml3gvw5mvkhm4@penduick> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Wed, Mar 29, 2023 at 12:08:50PM +0200, Michael Riesch wrote: > On 3/29/23 11:16, Maxime Ripard wrote: > > On Thu, Mar 16, 2023 at 11:29:53PM +0100, Michael Riesch wrote: > >> Hi Rob, > >> > >> On 3/16/23 22:57, Rob Herring wrote: > >>> On Tue, Mar 14, 2023 at 12:56:44PM +0100, Gerald Loacker wrote: > >>>> The sitronix-st7789v driver now considers the panel-timing property. > >>> > >>> I read the patch for that and still don't know 'why'. Commit messages= =20 > >>> should answer why. > >>> > >>>> Add the property to the documentation. > >>> > >>> We generally don't put timings in DT for panels. Why is this one=20 > >>> special? > >> > >> For now, having the timings in the device tree allows for setting the > >> hsync/vsync/de polarity. > >> > >> As a next step, we aim to implement the partial mode feature of this > >> panel. It is possible to use only a certain region of the panel, which > >> is helpful e.g., when a part of the panel is occluded and should not be > >> considered by DRM. We thought that this could be specified as timing i= n DT. > >> > >> (The hactive and vactive properties serve as dimensions of this certain > >> region, of course. We still need to specify somehow the position of the > >> region. Maybe with additional properties hactive-start and vactive-sta= rt?) > >> > >> What do you think about that? > >=20 > > I don't see why we would need the device tree to support that. What you > > described is essentially what overscan is for HDMI/analog output, and we > > already have everything to deal with overscan properly in KMS. >=20 > Thanks for your response, but I am afraid I don't quite follow. >=20 > How are we supposed to expose control over the hsync/vsync/data enable > polarity? I only know that the display controller and the panel need to > agree on a setting that works for both. What is the canonical way to do > this? So typically, it would come from the panel datasheet and would thus be exposed by the panel driver. st7789v is not a panel itself but a (pretty flexible) panel controller so it's not fixed and I don't think we have a good answer to that (yet). > A different question is the partial mode, for which (IIUC) you suggest > the overscan feature. As I have never heard of this before, it would be > very nice if you could point me to some examples. Where would the > effective resolution be set in this case? So, back when CRT were a thing the edges of the tube were masked by the plastic case. HDMI inherited from that and that's why you still have some UI on some devices (like consoles) to setup the active area of the display. The underlying issue is exactly what you describe: the active area is larger than what the plastic case allows to see. I don't think anyone ever had the usecase you have, but it would be the right solution to me to solve essentially the same issue the same way we do on other output types. Maxime