Message ID | 20230605074753.562332-3-javierm@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2516580vqr; Mon, 5 Jun 2023 00:53:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7EJbscNHyUQialB7/n2tZjPz6b9eXzSrhAS8Ulip7+XU/HM0mxWFtprGmkCLMhNl6ywX4g X-Received: by 2002:a9d:7857:0:b0:6af:e87e:aa5e with SMTP id c23-20020a9d7857000000b006afe87eaa5emr9348546otm.12.1685951602187; Mon, 05 Jun 2023 00:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685951602; cv=none; d=google.com; s=arc-20160816; b=yEM0VFfiA82XaRJjyPNkt1YTKRvFD+bKNOILnR8qJvoK9lWSJ8+eJ26tQYYWVEULT2 rAGV+4ue5xEcoE02a5P3LUrW5mYxMYRxCeahLTFE9S5nMS0bFh7OtlIuTItEnly0k0KR gXGG4qjyHHIXvqCWv3hTw6n5/X+qfd3mHnovl0PCZAcwQ5F8x0Pc9qic9wzJOcXIjeV7 /Ln9Egbkm0l1KM5JkJjmoANowgem59gwd7FbM3yzUXThRRn9wACeqS8C3rK48OgI0M8a 45o4hclJJoJH/JiqvHzFPE+1XPK/eptdmgOpxK2XoJtnoiR2pE2rf61CirRl2UNP1HpA vj9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Wy1ybExd+DdkhzJijCZf2robb5n3TSjvDJzl2U7VfoI=; b=pmKi6E/YHle78MrseI4H/dYIXnhi9iJVcKvLdSBiDwTI1Cj0Yt0qsJOW0Yh3UHwe9I JXEB4p+DokRF8PiQT97ph4y8BF1msdmPGbpb3hlLd9KQnyGSPwTGX5G7xnP4ldNZxvuK aiAClVj6KLNLcaxHDP+VuQBEjx1YhZKbrEGZmFm2uOcV1003PD+4waCXGIG59d128pCa zAt0QEENuTamozOlkf3CfHWrESrWaIrTsaSs/5rpodrQRHYJiWU/tXjlx+MSltogxHUB CL72o472EBG3qOKxE2CrWQxLf9LDa6AadN+AqhnvEF/eybwBFqGVYEfaJzuGXOkIJAru H41A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PYX875p5; 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=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a637704000000b0053481e4c743si5169293pgc.171.2023.06.05.00.53.10; Mon, 05 Jun 2023 00:53: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=@redhat.com header.s=mimecast20190719 header.b=PYX875p5; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229701AbjFEHs7 (ORCPT <rfc822;pavtiger@gmail.com> + 99 others); Mon, 5 Jun 2023 03:48:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbjFEHs4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Jun 2023 03:48:56 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB64DBD for <linux-kernel@vger.kernel.org>; Mon, 5 Jun 2023 00:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685951293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wy1ybExd+DdkhzJijCZf2robb5n3TSjvDJzl2U7VfoI=; b=PYX875p5wvgKtdJ0W/yTj6t/L1xkAsS3rr8MN3XVuZuuZR3cpnkXG822hFuGZ1hWo4ShUO TY8gGAhSoqwCyVyoI4bbFsfMhi62sZD4j1DiwEbWE4BNyACzaXfupQlJl920a+4bsVAHy/ wInI64khk1vgEj02TYYv7fwp/n54YJM= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-630-bUgdjMMOO_6PRGkE9T9ikQ-1; Mon, 05 Jun 2023 03:48:11 -0400 X-MC-Unique: bUgdjMMOO_6PRGkE9T9ikQ-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-3f613f5d290so79094415e9.2 for <linux-kernel@vger.kernel.org>; Mon, 05 Jun 2023 00:48:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685951290; x=1688543290; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wy1ybExd+DdkhzJijCZf2robb5n3TSjvDJzl2U7VfoI=; b=VmjvtyS/NptDYkQcwMnVrtL8GDslBx/Y0l7oO6s5MydcywHeXFA1TNi40v8RORI9fm tSyLLAQWvRzsUTOBeFOTvTIlH95GidLdBar8VI3VVZ0h9Ws5KY/cS9Az7Ocq2EIgWMif 7P3XCxFNP9iUU54MHxoSoskI9ZJ+3FF+BYKu9CMOh3MXPxEFaASrPe8jG6oKJnjbO243 tZd/V8H/hAZZFES7l+l43mv42itx+N0Zv+2xTaIQ/G5fP8/V/cR0g8xwKE27Mr66z2xO QJghQNsHuUnRqi/D8/uy+petcYQ6k5jQIvRbARjK6ZMVWbRXA/FG5AoUuAdvif4OZ78L cC9w== X-Gm-Message-State: AC+VfDzwY5aoER0WRMG5L3BXdRJw3SgVRY97z7BtLdobPxljW8MSGCPP 4zBBJrA9BIpBsl4WuUZIxaat7ZTUC/HSYiMxvWACsrwsPPyGfsEhaR+ZoNHcxn0dEZyCcAVTAVa qgCnFPXvOdHToVacuI+Er4SvhlcdQRG6WbKYjgNj1i8RfKVEtHLSyPe/RTAKE2lM8IUt168bfmb 1+rxVl8Vw= X-Received: by 2002:a05:600c:246:b0:3f6:a66:a36d with SMTP id 6-20020a05600c024600b003f60a66a36dmr6957929wmj.10.1685951290443; Mon, 05 Jun 2023 00:48:10 -0700 (PDT) X-Received: by 2002:a05:600c:246:b0:3f6:a66:a36d with SMTP id 6-20020a05600c024600b003f60a66a36dmr6957906wmj.10.1685951290089; Mon, 05 Jun 2023 00:48:10 -0700 (PDT) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id q21-20020a1ce915000000b003f4fb5532a1sm9715192wmc.43.2023.06.05.00.48.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jun 2023 00:48:09 -0700 (PDT) From: Javier Martinez Canillas <javierm@redhat.com> To: linux-kernel@vger.kernel.org Cc: Thomas Zimmermann <tzimmermann@suse.de>, Geert Uytterhoeven <geert@linux-m68k.org>, Maxime Ripard <mripard@kernel.org>, Javier Martinez Canillas <javierm@redhat.com>, Conor Dooley <conor+dt@kernel.org>, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Rob Herring <robh+dt@kernel.org>, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH 2/5] dt-bindings: display: ssd1307fb: Remove default width and height values Date: Mon, 5 Jun 2023 09:47:50 +0200 Message-Id: <20230605074753.562332-3-javierm@redhat.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230605074753.562332-1-javierm@redhat.com> References: <20230605074753.562332-1-javierm@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767848387054715611?= X-GMAIL-MSGID: =?utf-8?q?1767848387054715611?= |
Series |
drm/ssd130x: A few enhancements and cleanups
|
|
Commit Message
Javier Martinez Canillas
June 5, 2023, 7:47 a.m. UTC
A default resolution in the ssd130x driver isn't set to an arbitrary 96x16
anymore. Instead is set to a width and height that's controller dependent.
Update DT schema to reflect what the driver does and make its users aware.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
---
.../devicetree/bindings/display/solomon,ssd1307fb.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Comments
Hi, On Mon, Jun 05, 2023 at 09:47:50AM +0200, Javier Martinez Canillas wrote: > A default resolution in the ssd130x driver isn't set to an arbitrary 96x16 > anymore. Instead is set to a width and height that's controller dependent. > > Update DT schema to reflect what the driver does and make its users aware. > > Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> > --- > > .../devicetree/bindings/display/solomon,ssd1307fb.yaml | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > index 94bb5ef567c6..e8ed642dc144 100644 > --- a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > +++ b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > @@ -49,15 +49,15 @@ properties: > > solomon,height: > $ref: /schemas/types.yaml#/definitions/uint32 > - default: 16 > description: > - Height in pixel of the screen driven by the controller > + Height in pixel of the screen driven by the controller. > + The default value is controller-dependent. > > solomon,width: > $ref: /schemas/types.yaml#/definitions/uint32 > - default: 96 > description: > - Width in pixel of the screen driven by the controller > + Width in pixel of the screen driven by the controller. > + The default value is controller-dependent. I think we should document it still, either in the comment itself, or through a conditional and different default values based on the compatible. Maxime
Maxime Ripard <mripard@kernel.org> writes: Hello Maxime, Thanks for your feedback. > Hi, > > On Mon, Jun 05, 2023 at 09:47:50AM +0200, Javier Martinez Canillas wrote: [...] >> solomon,width: >> $ref: /schemas/types.yaml#/definitions/uint32 >> - default: 96 >> description: >> - Width in pixel of the screen driven by the controller >> + Width in pixel of the screen driven by the controller. >> + The default value is controller-dependent. > > I think we should document it still, either in the comment itself, or > through a conditional and different default values based on the > compatible. > Makes sense. I'll add that in v2.
diff --git a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml index 94bb5ef567c6..e8ed642dc144 100644 --- a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml +++ b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml @@ -49,15 +49,15 @@ properties: solomon,height: $ref: /schemas/types.yaml#/definitions/uint32 - default: 16 description: - Height in pixel of the screen driven by the controller + Height in pixel of the screen driven by the controller. + The default value is controller-dependent. solomon,width: $ref: /schemas/types.yaml#/definitions/uint32 - default: 96 description: - Width in pixel of the screen driven by the controller + Width in pixel of the screen driven by the controller. + The default value is controller-dependent. solomon,page-offset: $ref: /schemas/types.yaml#/definitions/uint32