Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2316475rdb; Mon, 20 Nov 2023 07:54:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEl8hpdJmXiMwVdBnmPusVbPnCC/ZmM3Konx0EtTeZ1KLwf4PW/ByKm3oHdUTvVOwKQ0a1I X-Received: by 2002:a05:6830:90b:b0:6d7:d49c:51a2 with SMTP id v11-20020a056830090b00b006d7d49c51a2mr4428357ott.10.1700495645185; Mon, 20 Nov 2023 07:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700495645; cv=none; d=google.com; s=arc-20160816; b=Je4S/2F4esRJBqR1NR5JGb+sd1BKduX1SCIPXMeuapz/d5R6TXG38brQ/0hFsOPM2M q9WbJ78lmvBKxI2xKEQHazqOEpupLRSYlgCQsgV1LCgzMK0WTJh/V/tW9MtCXS8NFnaz qhAEwa1rs2mIT/jrosJo0Jnm5q9BSQ2PUgPPYHpjxGd4dfvJ0s9C/Wicb7W/KtfDNI0m YWg9gYn2rtAJpQutwlVASUk3zmzgduccKdvKVUUDgiYSHWPAQ1PImEh3ye13hqut7c9u ljAdp2e9BP6nx+lk5zIQ7YdKzgM9MOdDm+jqmOOhXzXbQVeyon5f1GB1OdlpsMh1s4xg +N/A== 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=ZIepCnYHCsZHnYH+Iw/OtYeFvPP7DVXiCcTDUPGL2J8=; fh=pVQR6mD3uIaXEkfMj8y3LqJR+qL9qWVM6GFZnYyDh10=; b=0hpNp5RwUp1QA5s0KRIU08aQb41b5K8xcG4gcTlatuhPJfCQC/PpgYKHWYzBAzmZ9r OZ7eGvtSyS8YGNMkmRrJpt7sfTLj7bepTBaR2mOaGhaC6UYGR89r6JKF9uN5eFkyJIyz WG5CLoTc3HYjkn1J0uFu4yNNTHoWP4WBinqABnyvF4f4NDPzM+o2xizEBKKUmIXMBbO+ X2gg3OwHFycSoG34SPS8pFOSmvdo+AVzy2yN607CwFW749w2sgs6Ts8JhqM2Qp2vkDok dQ8oteg9B8OIXeO0hQSiIgl/zCXn/OHVyNvA6dMvNiR42WTWxPN8W/yjAglvuoFm9yPJ ygWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OuakXYfH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id o18-20020a63e352000000b005bf77518dc6si8195215pgj.286.2023.11.20.07.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 07:54:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OuakXYfH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C411280873C2; Mon, 20 Nov 2023 07:50:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233451AbjKTPua (ORCPT + 99 others); Mon, 20 Nov 2023 10:50:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232138AbjKTPu3 (ORCPT ); Mon, 20 Nov 2023 10:50:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B922A0 for ; Mon, 20 Nov 2023 07:50:26 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A91EC433C7; Mon, 20 Nov 2023 15:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700495425; bh=hwGdvTC30e2lqKVVWjBXy5T6ES/s37IXoRVGMd2+0pQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OuakXYfH2B3OCYrq02ImXPaLKHHgv1XoOxq2euxeIQWC0Crhms/GQfyHAERvfK69s DF1RBMamEUYPuaOfpnaQp1j+CNzucEdp1EpNAPN+hWMv57j1T/49wvYAu20TggHUvr 9h9mFblafUh5Qh+JN7xv4j9enLyvvjGgt/YK2XvQvOmhX4pbud5Uo9wJI5ysIkZrNw BPWdpOl8U5S3cdCW/wUONBUm0CW8H5dyUUZJsDljmdbgfcn5XTMVRFnoX/B5WCXJTP PyXPoKPqTJYSNuJDOUBMqvy72xpUWxgQ/NsRdT6CL/dMnTLhYok/ymvlzSQA5CyIvF LZZLM4LJ/KWzQ== Date: Mon, 20 Nov 2023 15:50:20 +0000 From: Conor Dooley To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Sahaj Sarup , Conor Dooley , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Maarten Lankhorst , Maxime Ripard , Rob Herring , Thomas Zimmermann , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 1/3] dt-bindings: display: ssd1307fb: Change "solomon,page-offset" default value Message-ID: <20231120-granola-sturdy-83d054f1b6fa@spud> References: <20231116180743.2763021-1-javierm@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4bFoAD9+noYJcHZh" Content-Disposition: inline In-Reply-To: <20231116180743.2763021-1-javierm@redhat.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 07:50:41 -0800 (PST) --4bFoAD9+noYJcHZh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 16, 2023 at 07:07:37PM +0100, Javier Martinez Canillas wrote: > This is used to specify the page start address offset of the display RAM. >=20 > The value is used as offset when setting the page start address with the > SSD130X_SET_PAGE_RANGE command, and the driver currently sets its value to > 1 if the property is not present in the Device Tree. >=20 > But the datasheet mentions that the value on reset for the page start is a > 0, so it makes more sense to also have 0 as the default value for the page > offset if the property is not present. >=20 > In fact, using a default value of 1 leads to the display not working when > the fbdev is attached to the framebuffer console. >=20 > Reported-by: Sahaj Sarup > Signed-off-by: Javier Martinez Canillas > --- >=20 > .../devicetree/bindings/display/solomon,ssd1307fb.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.= yaml b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > index 3afbb52d1b7f..badd81459aaa 100644 > --- a/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > +++ b/Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml > @@ -35,7 +35,7 @@ properties: > =20 > solomon,page-offset: > $ref: /schemas/types.yaml#/definitions/uint32 > - default: 1 > + default: 0 I think I saw it pointed out by Maxime elsewhere that this breaks the ABI. It would be nice if DT defaults matched the hardware's, but I don't really think it is worth breaking the ABI here. Expanding the property description to explain the impact of the particular values might help with incorrect usage. Thanks, Conor. > description: > Offset of pages (band of 8 pixels) that the screen is mapped to > =20 > --=20 > 2.41.0 >=20 --4bFoAD9+noYJcHZh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZVuAPAAKCRB4tDGHoIJi 0rwwAQDwlz5bsqGXaRqTo+gxHO6qWygSskpfqHWje4LOQ/STSAEAjptBSDLIi9s1 DjGRyqKsN280gvpMTdz7FUpAEO1gZwg= =pjLO -----END PGP SIGNATURE----- --4bFoAD9+noYJcHZh--