Received: by 2002:a05:7412:361b:b0:f9:2edb:3e4d with SMTP id ie27csp49439rdb; Sun, 17 Dec 2023 14:00:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2ZweGiONa0H3Fklq6z+3vF0+tIwOlWCbWc5w10ENEw1QmOFxy9Sd0Rr0qQK4Va91Rlba4 X-Received: by 2002:ae9:f105:0:b0:780:dd1b:5524 with SMTP id k5-20020ae9f105000000b00780dd1b5524mr2753370qkg.100.1702850422191; Sun, 17 Dec 2023 14:00:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702850422; cv=none; d=google.com; s=arc-20160816; b=e+GyOm1DbE7HvC6DXBLeiefJlQDYqR0wQ7J/EXcJaouDBPcxDt10eWhvFs1YZNH18p 5/eCTPrnWQCt+Jc5j21utKEEchw3pEfkJ2EK+dHwewMpieU4a9xrKt+JB1lzuhuWnW10 oalxEVMLUwKjVoPeUAHFNB8MKxkngKln8sfi6TCzUf26z3WERIrl6f0RkmK5UohBVo4l GdpWkkZs11Cpcs7jw2DdWB4pBTFglkFQ9CPV0qPXd9TYkUEA4jDtSSxeJfhWCNWtriVg l65+yTFEKZx0JuKhbezSKi0pyBTc/DRvxYyGJVno1lh7HUy5mese8wq7iFKPFXxiYzFJ k6Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=K/1scTb9pZ8OxgoYLobA+aJoXS1Kz//UW2qp4P8sctU=; fh=qpuzgF90QolVATuwX5W3gp+OXo112REo85CzD3QUW7g=; b=c6zKYTHlhMz4Pk3O8KiF8eKqV6HNKWeeNxxZQdIbNEQ9HJjPd9Es+PwHLPAacZLGVH 65z2iaQ3ZH5w79uoP7prN63b9JAeEGAjTSijlHBSgAao45oVTpibQMSei07P4zwZlC1a dlveLUMYDl+KyVYk06kf+cO4GqHrdt9S/1Wkby/lGRT9UFXEn6bd944BBCyom7LkTDKI Vk4WS1LCUUJTdBJnCCX5YzrvMEjsPH/XzljWL9Yo98UPfjcO+mhiOh7siyP3mE/YzYsj RtkCzg0K0UiArh/IZiuF5pFxACpdH0fWLOUHufCJ7mGk0SMC5Bshisjr1cGM0DuH02Ok 0TmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YsfvmtW7; spf=pass (google.com: domain of linux-kernel+bounces-2841-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n2-20020a05620a294200b0077f2dde6a59si23139193qkp.558.2023.12.17.14.00.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 14:00:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2841-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YsfvmtW7; spf=pass (google.com: domain of linux-kernel+bounces-2841-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DE1051C21469 for ; Sun, 17 Dec 2023 22:00:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C3EB49F77; Sun, 17 Dec 2023 22:00:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="YsfvmtW7" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 E3DD1495CC for ; Sun, 17 Dec 2023 22:00:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702850411; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K/1scTb9pZ8OxgoYLobA+aJoXS1Kz//UW2qp4P8sctU=; b=YsfvmtW7HB6ubtbDCrer3r/DHdDseG1sGsQZ7FmQqX7vvyWZHS2Q5elcepNwj+A8SNvSvY FyVOg3GwDt6+qQB9bwvRcyae75vlfFKPQgvzgyPlOB4HcL0ahWVRdkfhbHoNqFDu1+X+np xA6UqjKSyTk1RfYa1NkTOnElwrMMxOk= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-67-QSq9WBuDN8eQZqjzxvaxxQ-1; Sun, 17 Dec 2023 17:00:10 -0500 X-MC-Unique: QSq9WBuDN8eQZqjzxvaxxQ-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-3334e56554bso2221593f8f.0 for ; Sun, 17 Dec 2023 14:00:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702850409; x=1703455209; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=K/1scTb9pZ8OxgoYLobA+aJoXS1Kz//UW2qp4P8sctU=; b=bIVTg6TZaLiLzoNAysnxSdB7lvY1HkHC4rHcjV1b19VLW+R0FfJXKGzAqlZjQaYGsA svsE0JMYsr9HUOvzH+ChydaDzuX3YozjhrLQONirqOhyKxDWw79cjiV8RhfFhPBLkXNW zIQXQ5PKYwu+kJhXikaS+PS6vFb3Njkr9MWXZkWOJsOmy3a+0V7ZeQ+BIl0qvWgTFzWB tJgDb3ea5XlPcn96/jBEV0hRghkuCSptrwarc/2P3LYGG9xWUH1KJNcHYUa6dxVSMX8I kWEb6b2ASTHgQGDtrprFcCcykJ0JXhxRKiPoPXMbGJX4FsKL/FnbND60T5rVxlGon0L+ BrKQ== X-Gm-Message-State: AOJu0YypzK/lzHEqopiM8eetnYMpciKZexky/uk4Ra+xBdowt2B7KCMC xZPOOVURC0cUTAxrseo7qSmB0rYcqlkUUM58aMz2/C6xgb1EnquLlUE+hOUW07q669c8Vd8T1ta 3H1+YFxnuA0MI950S8G5awvLj X-Received: by 2002:a5d:540a:0:b0:336:63f8:f22b with SMTP id g10-20020a5d540a000000b0033663f8f22bmr771702wrv.0.1702850409151; Sun, 17 Dec 2023 14:00:09 -0800 (PST) X-Received: by 2002:a5d:540a:0:b0:336:63f8:f22b with SMTP id g10-20020a5d540a000000b0033663f8f22bmr771697wrv.0.1702850408843; Sun, 17 Dec 2023 14:00:08 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id l1-20020a5d5601000000b00336630c31b5sm2853900wrv.9.2023.12.17.14.00.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 14:00:08 -0800 (PST) From: Javier Martinez Canillas To: Conor Dooley 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 In-Reply-To: <20231217-hunk-cross-4bf51740957c@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> Date: Sun, 17 Dec 2023 23:00:07 +0100 Message-ID: <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: text/plain Conor Dooley writes: Hello Conor, > On Sun, Dec 17, 2023 at 10:33:24PM +0100, Javier Martinez Canillas wrote: [...] >> >> + 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? >> > >> >> Because these are only for the default width and height, there can be >> panels using the same controller but that have a different resolution. >> >> 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. > 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. 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). 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 ? 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. [0]: https://lists.freedesktop.org/archives/dri-devel/2023-November/431150.html >> 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. > 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. 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. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat