Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3495794rwd; Sat, 10 Jun 2023 08:40:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5RIxMRYaMYOxHgDOleMKdUM+L4MEVH9TG2LQVZ6AV9uitnzf58x7ByQIj2vu+JnaRkBJk5 X-Received: by 2002:a05:6a00:b46:b0:64b:f03b:2642 with SMTP id p6-20020a056a000b4600b0064bf03b2642mr6784921pfo.23.1686411637840; Sat, 10 Jun 2023 08:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686411637; cv=none; d=google.com; s=arc-20160816; b=Rw2Fy81NIaZCygRIydQtsFArJYvtveE15pfEWD7wliZc2CyzMIx5iNZ72vmMAH4Fab cDyE0iT5KE8RrXP32oSP0rnylz2aZODhsY7NEQg6SLW4sFx+51+kH9NQwfNfBRNm9pst U3pqpwg7BU9BiIU+Ayo3HeJ1chxbGWVKjkdK6ucjaKOWmjkIyuru72IsjAmJYmiowon4 +HwD69FHM0wiZEb+QFe21+mIFE2T9bELMZAftX3WbJWpbGkLkHk6zN3Qa1RWnPiTeI/M /IcctDvVH622RQOmZmMfrsiB0MuesE2JE6JVES44mtXCHEOpR48g3TtvH2xM2aSW5HQo OLwQ== 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:dkim-signature; bh=uyU3OKA22Zr/LHssx2PXETNrpVmwCteWUwZ4orDC6TE=; b=bhqQiNM1/6M/iLC2HzFu4CDTMve3EcUaOtX5HCstR7j/IhYkOi1Yx8T0LbrYpj0I2q NOwN4o9qFppjt7z2uK0rW/WUUtHjWU6w8EU+WH66BS9A4vNDCLqBeye29dF/qfhgjcqd GV1jNNQqtd4y8H7zv/+fSsHZ1il0RI6dlj8RrNI/dX+N9FYYA5YVkmeB2vlpCvmaOahj iITY+P4ifBhDALQOjSj15v+7SfGiwDeJQaBEqjlBuPYbER1E4MpEYYuvUFjYf2OXeNU6 2dH+R+I/JwSn6/LckTxCLKPCb5xxHfRI4eevggDVCPXEL8qi6YKzRLHG3mDsX+7axna+ rLvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JKB91dYa; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020aa79f0d000000b00643970acd01si4067504pfr.319.2023.06.10.08.40.23; Sat, 10 Jun 2023 08:40:37 -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=@kernel.org header.s=k20201202 header.b=JKB91dYa; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233392AbjFJPKX (ORCPT + 99 others); Sat, 10 Jun 2023 11:10:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbjFJPKV (ORCPT ); Sat, 10 Jun 2023 11:10:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 301FC30E3; Sat, 10 Jun 2023 08:10:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BE52E60C44; Sat, 10 Jun 2023 15:10:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0E19C433EF; Sat, 10 Jun 2023 15:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686409819; bh=Udl3gpTsbEFhzWm2UKL/yfURVDjduN41OaBF5GROL08=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JKB91dYaT4t2C8zflPEtdoyH8GAJjJmvteJEDovThYih7rG8wCuOt5QwUgYwceg3l gIfpC/jmajAexLT8FUEnNCKUt8M/chF3/dRmAdJoara+nfY2ASrmv7ERFqHmhcw/Mn XuqegBRCyd6N8ugVrjtPj4dC5DNCReEEkhSkR5ldBGMe+ydFjMq9Kq8PBYGnphIErb R4QOOjrcay2nbJ+AAtLEG99IdcEzH9Wq17xQ9s8d7YK972THov9auqGxKlHA0z0Gho zeX/N3ULuS3nVKM2xtIVAvoUn35XPwidqk75YTxXJK329txbi4qEcbFn2lobUnMn53 3Xe66yGU7YWFA== Date: Sat, 10 Jun 2023 16:10:14 +0100 From: Conor Dooley To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven , Thomas Zimmermann , Maxime Ripard , Conor Dooley , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 2/5] dt-bindings: display: ssd1307fb: Remove default width and height values Message-ID: <20230610-opposite-quality-81d4a1561c88@spud> References: <20230609170941.1150941-1-javierm@redhat.com> <20230609170941.1150941-3-javierm@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3cqXYw9khEbW+8jc" Content-Disposition: inline In-Reply-To: <20230609170941.1150941-3-javierm@redhat.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --3cqXYw9khEbW+8jc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 09, 2023 at 07:09:37PM +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. Did that change to the driver not break backwards compatibility with existing devicetrees that relied on the default values to get 96x16? Cheers, Conor. >=20 > The datasheets for the chips describes the following display resolutions: >=20 > - SH1106: 132 x 64 Dot Matrix OLED/PLED > - SSD1305: 132 x 64 Dot Matrix OLED/PLED > - SSD1306: 128 x 64 Dot Matrix OLED/PLED > - SSD1307: 128 x 39 Dot Matrix OLED/PLED > - SSD1309: 128 x 64 Dot Matrix OLED/PLED >=20 > Update DT schema to reflect what the driver does and make its users aware. >=20 > Signed-off-by: Javier Martinez Canillas > Reviewed-by: Thomas Zimmermann > --- >=20 > Changes in v2: > - List per controller default width/height values in DT schema (Maxime Ri= pard). >=20 > .../bindings/display/solomon,ssd1307fb.yaml | 28 ++++++++++++++++--- > 1 file changed, 24 insertions(+), 4 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.= yaml b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > index 94bb5ef567c6..20e2bd15d4d2 100644 > --- a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > +++ b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > @@ -49,15 +49,15 @@ properties: > =20 > 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. > =20 > 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. > =20 > solomon,page-offset: > $ref: /schemas/types.yaml#/definitions/uint32 > @@ -157,6 +157,10 @@ allOf: > const: sinowealth,sh1106 > then: > properties: > + width: > + default: 132 > + height: > + default: 64 > solomon,dclk-div: > default: 1 > solomon,dclk-frq: > @@ -171,6 +175,10 @@ allOf: > - solomon,ssd1305 > then: > properties: > + width: > + default: 132 > + height: > + default: 64 > solomon,dclk-div: > default: 1 > solomon,dclk-frq: > @@ -185,6 +193,10 @@ allOf: > - solomon,ssd1306 > then: > properties: > + width: > + default: 128 > + height: > + default: 64 > solomon,dclk-div: > default: 1 > solomon,dclk-frq: > @@ -199,6 +211,10 @@ allOf: > - solomon,ssd1307 > then: > properties: > + width: > + default: 128 > + height: > + default: 39 > solomon,dclk-div: > default: 2 > solomon,dclk-frq: > @@ -215,6 +231,10 @@ allOf: > - solomon,ssd1309 > then: > properties: > + width: > + default: 128 > + height: > + default: 64 > solomon,dclk-div: > default: 1 > solomon,dclk-frq: > --=20 > 2.40.1 >=20 --3cqXYw9khEbW+8jc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZISSVgAKCRB4tDGHoIJi 0kHiAQCxzr20tUj6HolI6PerGWfwn14qZ8aiwPjBoCGR8H1eKgEA/9VvzM6t4Lxp ck/8Ct5TBUcK6DlRBTm57sSc1tb96wM= =ECGe -----END PGP SIGNATURE----- --3cqXYw9khEbW+8jc--