Received: by 2002:a05:7412:361b:b0:f9:2edb:3e4d with SMTP id ie27csp59091rdb; Sun, 17 Dec 2023 14:32:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsp5CfC7TbZ8FwVeeFu/MPLWyt6FGsggl1t2q+SHcTAWsF1Yely7j6pG4YMuwE3N0tlx3Y X-Received: by 2002:a05:600c:827:b0:40b:5e59:ea13 with SMTP id k39-20020a05600c082700b0040b5e59ea13mr7467358wmp.178.1702852365282; Sun, 17 Dec 2023 14:32:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702852365; cv=none; d=google.com; s=arc-20160816; b=abLd5+DAsQH6uJMWWY1mz1NdPQOoXXj028oA+ylMLLRVHUGYIceo9DdldPIfLC2J9u cv6CB/66sS0Bi100ojmowwph8TH2sLtfs2FVSTIjM+OoweX2/F7EKhOkIFQPScrQlypT adP0vgMBIO7bsD9t75i2lIslQjglNvuMjSLjgUtUXfUYWq92nYBiCsx5MApmsb2hMRW6 dvdsKrcek7m5dNgYG/Or6H/b2wXVlVeXdq0LJGXcYkCaZxUme2hczOnrgeFpR+6gPd+0 zFG8tCqz3qZdq+wKJOdjVJHFPMDnzqJ71WjWYmRsmn7kGJFP//WrEXNqBh06LwAy8xmW xk9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6tHPTrd0w03JNSm9ydQH4FkBnEpPIN9e6uqbjCMf6tU=; fh=auQQ+rWtzr/gEX92pMPucao8LjJ3yGaxTbdLImuCc3k=; b=qU6C123Rc2X/A2/iXKOchjOZrxXy7lRznSywV8CF4utsMad38ZLy2UMLapruK7qXt8 PebKGKAZX+g6qtYBCWKlymN4VAgdf+sOtX+rFGMTYaOHiEmMSpCHLJu9B6Z5GGOGzJ8F zN4kNbc1gCuaoJIonkZI46uhgA3M9pTlW0P6yhOniCQlvwfbKrc87OPUI9wApF4GkhCY ZIU68A2BZPVggDvSc93QBCdfoYbVZj9zhlxXDqvbDefWXmE/piyr7iWdnD/hrfcgwXpV iWbDF7pWsYoAhWor7BOFK1p1bub5s3R8IixCaMjF3BYrnjwuJyzJnPNbRs36Z6rtx0D6 yDKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GfKaHtAp; spf=pass (google.com: domain of linux-kernel+bounces-2853-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e17-20020a1709067e1100b00a235671220fsi461296ejr.742.2023.12.17.14.32.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 14:32:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2853-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GfKaHtAp; spf=pass (google.com: domain of linux-kernel+bounces-2853-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0BABD1F21B08 for ; Sun, 17 Dec 2023 22:32:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC9C744C9B; Sun, 17 Dec 2023 22:32:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GfKaHtAp" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7DCD1E49D; Sun, 17 Dec 2023 22:32:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43FC0C433C7; Sun, 17 Dec 2023 22:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702852356; bh=N3sSswueORYzvAOU+uyz4bjbbUS1XZg7OxyIMbEBeiQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GfKaHtApHCxP6V6JQqphAN0TMo7tzLbkXADzl0G1lO+c1cALVDk++1HfXdKjRI0zw rwiacjVKaP4wRPHE0INCBxFEw10zFvvYHqutW99JUkSqISd0yajsqDFSqWe3jwivSN gRdmFT/tK15KuKtdKwa95hARjELWAfbnq9yoiGOcpzsUO5HjYzS4CbFX5zf5hfvMSj UpN6gjrHtJmtf5t+rIASIFzupBi+HaKGa0EgfWO8EhY0x/r3Kvrkco44vWhQCMciy0 iFtED/2gdJXF/8s7Hf/XNyEIyXvUwY3GiSV+xjFQdxfQAMqEiKLcxnqQdVxbQGT5/h arY5fm+i3RzmA== Date: Sun, 17 Dec 2023 22:32:30 +0000 From: Conor Dooley To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Maxime Ripard , Thomas Zimmermann , Rob Herring , Peter Robinson , Geert Uytterhoeven , Conor Dooley , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Maarten Lankhorst , Rob Herring , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 1/2] dt-bindings: display: Add SSD133x OLED controllers Message-ID: <20231217-catcall-turbulent-0a4072eaba43@spud> References: <20231217100741.1943932-1-javierm@redhat.com> <20231217100741.1943932-2-javierm@redhat.com> <20231217-bacteria-amusable-77efb05770a4@spud> <87fs00ms4b.fsf@minerva.mail-host-address-is-not-set> <20231217-hunk-cross-4bf51740957c@spud> <87cyv4mqvs.fsf@minerva.mail-host-address-is-not-set> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TC9NmRtTLpYSAbHx" Content-Disposition: inline In-Reply-To: <87cyv4mqvs.fsf@minerva.mail-host-address-is-not-set> --TC9NmRtTLpYSAbHx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 17, 2023 at 11:00:07PM +0100, Javier Martinez Canillas wrote: > Conor Dooley writes: >=20 > Hello Conor, >=20 > > On Sun, Dec 17, 2023 at 10:33:24PM +0100, Javier Martinez Canillas wrot= e: >=20 > [...] >=20 > >> >> + then: > >> >> + properties: > >> >> + width: > >> >> + default: 96 > >> >> + height: > >> >> + default: 64 > >> > > >> > Do you envisage a rake of devices that are going to end up in this > >> > binding? Otherwise, why not unconditionally set the constraints? > >> > > >>=20 > >> Because these are only for the default width and height, there can be > >> panels using the same controller but that have a different resolution. > >>=20 > >> For example, there are panels using the SSD1306 controller that have > >> 128x32 [0], 64x32 [1] or 128x64 [2] resolutions. > > > > This, as you know, does not matter here. > > >=20 > Are you sure? What I tried to say is that the SSD133x are just OLED > controllers and manufacturers use those chips to attach a panel that > has a certain resolution. >=20 > While it makes sense to use all the supported width and height, some > manufacturers chose to have a smaller panel instead (I used SSD1306 > as an example because I knew about these but the same might be true > for let's say SSD1331). >=20 > Or saying another way, are you sure that every manufacturer selling > RGB OLED panels using the SSD1331 chip will use the default resolution > and users won't have to set a custom width and height ? That's not at all what I was saying. I just meant unconditionally set the constraints on the property (in this case the default) since you only have one compatible. Not unconditionally set the height and width. Apologies if if that was unclear. Thanks, Conor. > I have already chosen to make the DT binding as simple as possible to > prevent what happened with the SSD1306 "solomon,page-offset" property > that has a broken default [0] but I think that not allowing to set the > resolution is already too restrictive and would make it unusable for > any panel that doesn't have the default width and height. >=20 > [0]: https://lists.freedesktop.org/archives/dri-devel/2023-November/43115= 0.html >=20 > >> But answering your question, yes I think that more devices for this > >> SSD133x family are going to be added later. Looking at [3], there is > >> at least SSD1333 that has a different default resolutions (176x176). > > > > That's fair enough though. I'd probably err on the side of introducing > > this complexity when the other users actually show up though. > > >=20 > Agree and the reason why I did not include entries for the SSD1332 and > SSD1333. I was planning to add those only if there were users since it > seems that the SSD1331 is the most popular controller from this family. >=20 > But as explained, even for the SSD1331 it may be needed to set a width > and height that is different than the default of this panel controller. >=20 > --=20 > Best regards, >=20 > Javier Martinez Canillas > Core Platforms > Red Hat >=20 --TC9NmRtTLpYSAbHx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZX92/gAKCRB4tDGHoIJi 0husAQDSENwV0d8UhOR0UCiNhQ00elCy87Ks6qVzuFEWEtgTqgD/bnXfe9j54Ohl QqQwm807NwnbgesrXBS+xxH/Czb4Vww= =BghX -----END PGP SIGNATURE----- --TC9NmRtTLpYSAbHx--