Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34376C38142 for ; Sun, 22 Jan 2023 17:25:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230020AbjAVRZp (ORCPT ); Sun, 22 Jan 2023 12:25:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjAVRZo (ORCPT ); Sun, 22 Jan 2023 12:25:44 -0500 Received: from out-244.mta0.migadu.com (out-244.mta0.migadu.com [IPv6:2001:41d0:1004:224b::f4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 273EF61B9 for ; Sun, 22 Jan 2023 09:25:42 -0800 (PST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=key1; t=1674408340; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zNlCaEENnr2E6T9VSpQMskYXTPIwdkrlcdCRQqfBtOM=; b=VOT0GTIZywb4evsNGliJqALCozr69B1bLNkLQ2lQ9PQ4fHmFq6vNx482gV3j6w7xxs/oyv gWZRY2YBa59rob66gqpjXikqbmNlcf1NKvdNsiZokZxnDhlYNJA3zkK/piNkSfit9o51yD NCncQyfn3OYk4fbM9Pc9XGf/ZKJfY8U= Date: Sun, 22 Jan 2023 17:25:38 +0000 MIME-Version: 1.0 Subject: Re: [PATCH v2 2/2] dt-bindings: display: simple-framebuffer: Document physical width and height properties To: Rob Herring Cc: dri-devel@lists.freedesktop.org, ~postmarketos/upstreaming@lists.sr.ht, asahi@lists.linux.dev, janne@jannau.net, Daniel Vetter , David Airlie , devicetree@vger.kernel.org, Hans de Goede , Javier Martinez Canillas , Krzysztof Kozlowski , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Zimmermann References: <20230121153544.467126-1-rayyan@ansari.sh> <20230121153544.467126-3-rayyan@ansari.sh> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Rayyan Ansari In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/01/2023 15:36, Rob Herring wrote: > On Sat, Jan 21, 2023 at 9:36 AM Rayyan Ansari wrote: >> > > Why do you need this change? > > The 'simple-framebuffer' contains data on how the bootloader > configured the display. The bootloader doesn't configure the display > size, so this information doesn't belong here. The information should > already be in the panel node, so also no point in duplicating it here. > >> Signed-off-by: Rayyan Ansari >> --- >> .../devicetree/bindings/display/simple-framebuffer.yaml | 8 ++++++++ >> 1 file changed, 8 insertions(+) Hi Rob, There is the usecase that Hans has mentioned, but I have also mentioned another usecase previously. Adding the width-mm and height-mm properties allows user interfaces such as Phosh (https://puri.sm/posts/phosh-overview/) to scale correctly to the screen. In my case, a panel node is not available and the aforementioned interface is in fact running on the SimpleDRM driver (which binds to the simple-framebuffer device). Here is the device I have tested this patch on, the Lumia 735 phone: https://wiki.postmarketos.org/images/c/c3/Lumia_735_Phosh.png Without this patch, this would appear quite small on the screen. See https://patchwork.freedesktop.org/patch/519107/?series=113053&rev=1 for some background info about this patch. Regards, -- Rayyan Ansari https://ansari.sh