Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6199828rwl; Tue, 4 Apr 2023 09:07:22 -0700 (PDT) X-Google-Smtp-Source: AKy350b4RmqFNGS8d7dCch08Cu23Jx88gUQsZsKmVsRUr+X5BfeC5yKJk8+ahNb/i77NSeiXgMKv X-Received: by 2002:a17:902:f693:b0:19c:e6c8:db16 with SMTP id l19-20020a170902f69300b0019ce6c8db16mr4111183plg.27.1680624442324; Tue, 04 Apr 2023 09:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680624442; cv=none; d=google.com; s=arc-20160816; b=jw5l5Or2hOspHeP27D+gud++3NIfTeUh5vCRgoj41aWF71oSSE0LymNN3V/i6KN4T6 Vsjykl0Ke9lowqWER7k9hW1fRova0MpiB1aJw0PsDpuCjPvcNrV3rrqoK3PBynYuGLVO kx0Reo7p5yTjz/fryIE0XciEztgsVNckW+/Na05noJx70FWBXsZBxQ/AWh+wJIqj2GNz VZwjKhmQHNlEcl6uo5gc95bXQv5MByirx+K1QQSDJI5XwfbcDP/CV7/EiVDG8G72y6Gv A2a9G/UiyBVBNisJKHsGk0c1cjvtLnc2haNOqxkIDXiCx27H4xWlFUpQmFp6NnoI1AAv UYpw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=B7/5AIBnfIH/2s6wMTpXdZQPThBIIGqSpAmW70gcxJ8=; b=Yc2BnXTdijp8tVlN07hKn7EXAO6kR3Q1FG4Rnkv9Fp8GBmkK0QR0zuiWMS5ZdJwHdG n+ep+xcbl06r9u8hp0RGEVJ6bsSRYmwkBaCEgbuAMHn+HtsHaRSxnWrAM17fhoAKzQHL em+yhzXGCb/q9TudnIZcR9SEFOs5oOWcDnBWhibOrWzdERcX07ULPDdDQcJelF67PiA4 7R4EiRZHcMY8Li07+esHnfMiPLQGygJH7SV6KZ2+lyoGRYw1XZxJDkCz+wBe2D+won/P V4L9kljR7DhPI/TIjKIx69q/NW34/r3O3Jwc5pTitHdJTcGURHVqfJY+fQlrGSdspJHG VsKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=SUYHFB99; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=vZBInLoR; 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 kz4-20020a170902f9c400b001a1e0419e4dsi10363371plb.171.2023.04.04.09.07.02; Tue, 04 Apr 2023 09:07:22 -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=SUYHFB99; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=vZBInLoR; 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 S235543AbjDDQEY (ORCPT + 99 others); Tue, 4 Apr 2023 12:04:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235241AbjDDQEX (ORCPT ); Tue, 4 Apr 2023 12:04:23 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 097063AB5; Tue, 4 Apr 2023 09:04:22 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 75E1D5C006A; Tue, 4 Apr 2023 12:04:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 04 Apr 2023 12:04:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc: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=1680624261; x=1680710661; bh=B7 /5AIBnfIH/2s6wMTpXdZQPThBIIGqSpAmW70gcxJ8=; b=SUYHFB99wp5EVSYI4A gEXfk4DR2sIW53SKv/sK8mQ40h9uHeZar2fOLogWctRXeyONjcRP5mkOyj43e20q 44m/5PqF9aAGQ0H6jYWa0EMDMo1k0AEYvZSylvUEiEJO0KL5m24acn6OocLRekEw My46wpqs4Ug+IxaK7MtBwRQFiKV5afdHzg95mVg6idRaOaSZ2EhS4N5w2ywV6oM8 SVEpKF67XSH/o8uayDtAZZb7mrm0CKULLwYjV5S4fIWgTCC2otNNEA3wPcyeGr2l QDqPst680TbS1zQz8M3lz8O2jfjC2txXhLwHcGEIx6ahePX1hRuAdZ7noQzjJDQQ 0Ebg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=1680624261; x=1680710661; bh=B7/5AIBnfIH/2 s6wMTpXdZQPThBIIGqSpAmW70gcxJ8=; b=vZBInLoRUKTwFqkSv7Om1qQpT0X9Q NcFP90yaX0kv2V8raXfljaw0C0qKHuB+wmZQ2A74HefTdA+0wJvziBERC/2gwlD2 K+adDuhmGi25+PR/UJ05w+Q/D7qsVueSsn0TLpV3dH4guPg8lSJaEEJBcuDiM8Oi hksBILaaknSQ4z8MqV6fNeO8lj9m1Dpu3acfAcCLRPvy1fsmMeW3cJL8WwdfSank l7hr4UX4wL0O1gsomnV3KQNDy1eprXCxHoj3tPYZVMKB9RZpMp8HcSiRc+ygcKpY 613ebUUXdtNV5QE+8VkZ8Hp5EkZ/zUSq7rMQoBrLEfYZ+QeRetARqZB4A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeiledgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpedtleekjeeiudefvdfhieffteelhfeivdeliefgieeugffhvdelieffjeei geetjeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Apr 2023 12:04:20 -0400 (EDT) Date: Tue, 4 Apr 2023 18:04:19 +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 , Sebastian Reichel Subject: Re: [PATCH 7/7] dt-bindings: display: add panel-timing property to sitronix,st7789v Message-ID: <20230404160419.xlnlxq7sbsqopfwo@houat> References: <20230314115644.3775169-1-gerald.loacker@wolfvision.net> <20230314115644.3775169-8-gerald.loacker@wolfvision.net> <20230316215735.GA3940832-robh@kernel.org> <20230329091636.mu6ml3gvw5mvkhm4@penduick> <20230330145811.asot2cvux4ebbeqy@penduick> <5f1f90e2-eee8-d941-e4b0-7f2411a9d415@wolfvision.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="v7utqc2px55llm33" Content-Disposition: inline In-Reply-To: <5f1f90e2-eee8-d941-e4b0-7f2411a9d415@wolfvision.net> 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,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 --v7utqc2px55llm33 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 31, 2023 at 11:36:43AM +0200, Michael Riesch wrote: > On 3/30/23 16:58, Maxime Ripard wrote: > > 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 propert= y. > >>>>> > >>>>> I read the patch for that and still don't know 'why'. Commit messag= es=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, whi= ch > >>>> 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= in DT. > >>>> > >>>> (The hactive and vactive properties serve as dimensions of this cert= ain > >>>> region, of course. We still need to specify somehow the position of = the > >>>> region. Maybe with additional properties hactive-start and vactive-s= tart?) > >>>> > >>>> What do you think about that? > >>> > >>> I don't see why we would need the device tree to support that. What y= ou > >>> described is essentially what overscan is for HDMI/analog output, and= we > >>> already have everything to deal with overscan properly in KMS. > >> > >> Thanks for your response, but I am afraid I don't quite follow. > >> > >> 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? > >=20 > > 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). >=20 > Then it seems to me that creating a panel driver (=3D st8879v panel > controller driver with a new compatible) would make sense. I don't see why? The entire controller is the same except (maybe) for some initialization data. Doing a new driver for it seems like taking the easy way out? > By coincidence Sebastian Reichel has come up with this approach > recently, see > https://lore.kernel.org/dri-devel/20230317232355.1554980-1-sre@kernel.org/ > We just need a way to resolve the conflicts between the two series. >=20 > Cc: Sebastian That's not a new driver though? That approach looks sane to me. > >> 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? > >=20 > > 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. > >=20 > > 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. >=20 > OK, we'll look into the overscan feature. But still the information > about the active area should come from the driver, right? No, the userspace is in charge there. Maxime --v7utqc2px55llm33 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZCxKgwAKCRDj7w1vZxhR xVipAP9Iuopj25k9qKGAx0RxPd382YqPkKlLJHe75NBMZWCIEgEA+Yk5S6h0cLuD lqjyBNtPVjpd1r1ePFYCbs/04ufdNwQ= =tyEC -----END PGP SIGNATURE----- --v7utqc2px55llm33--