From patchwork Tue Jan 24 22:41:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayyan Ansari X-Patchwork-Id: 4481 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2407754wrn; Tue, 24 Jan 2023 14:42:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXsPOlTF//H2x1s4ZrkKCLLvf3Wtq8AhbXeJ2ZmVnrrXyZxCl0nmC77t/ip6Lt3JIygD9z/1 X-Received: by 2002:a17:906:b215:b0:871:2060:c4c4 with SMTP id p21-20020a170906b21500b008712060c4c4mr31845296ejz.68.1674600160325; Tue, 24 Jan 2023 14:42:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674600160; cv=none; d=google.com; s=arc-20160816; b=E02XW2ZG3eZr8nbtPgB3bOH2+p1S8fNCOWoslH1i1nkwuFtEDWwEbFdMlOTscGsQ0r Hwvl58iaJG+VD1WJSWYQ7vY3rtKdr2L1NV3Qg+CdYuZhNfu8M+XLlOsD6/dZSq0oTfrj oCSm6WFT3TAUofUTOVODXqmF/aequgjTug32nuV7RcvU0ApZjeJwz76xf/gEG/UwnvsO Rs3aONhWBKhWtEKISDmkxkcvjjR9AJjOgDJjyDvjQ0Z/UlvqBjttdsBQJmygyv/WI62b 4cruMVn7KrMdUqjr22ySjgZnviHxdv6D6903damN42OJXT13prh2b4y6uKdrnrw8HP2v cYmQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=oAapRs/RO6y9QOzK9GfRl6P67ERhquKIA38gdlc10UE=; b=Hqh+OBjKi/8QVf0YsqQPwPyVAl72+ZVP0j+V5yl9yhXcJ7+C9S0Hy9JMPNlnQsUJSS 0R8WRQJI8p/Xrfc3T9wiAUmxZWc0e1n+E0JF5gJEgXKOpLszCR+wl/D/4cXAVREvTqxX 4amyka371JIlnNm4T4IRH+T2CLU+0dVa7DzA59RiuIt7biJHIjk8NqSoYLwylM9YA7jy GJvOZ4KI1D7pjHajqtwSyoktNHZVyzERp7XdARLVfiAoDQIAIDDHZBiAuKHSyLH+hwkf 2txn1Ahe1oiuQh5IOtWcZMAXtSGxOzVXhXz8JzA4W7QjR5EXxcj/FPSkbEjlnrjljFmJ n2FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=key1 header.b=F9hZW2m6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p22-20020a170907911600b0086e9d7696ecsi3198636ejq.760.2023.01.24.14.42.15; Tue, 24 Jan 2023 14:42:40 -0800 (PST) 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=@ansari.sh header.s=key1 header.b=F9hZW2m6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233983AbjAXWmG (ORCPT + 99 others); Tue, 24 Jan 2023 17:42:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235066AbjAXWmF (ORCPT ); Tue, 24 Jan 2023 17:42:05 -0500 Received: from out-212.mta0.migadu.com (out-212.mta0.migadu.com [91.218.175.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57AAC59DE for ; Tue, 24 Jan 2023 14:42:03 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=key1; t=1674600121; 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; bh=oAapRs/RO6y9QOzK9GfRl6P67ERhquKIA38gdlc10UE=; b=F9hZW2m6lNyDvtRi0AzaKisYqewyHLR/1ADPdWh9FhsKqTvl8q/VaU1PJCfMsfSO+w6IEi tmbTPlUrATcShnkvCa3+ReiVF8V3IWzypuX0RdOvvjlr89FUZ9mK+lsSCBFTuC3NkUns5p fPnXDh78TFNKytnOHgLrCjkhIAcbAPY= From: Rayyan Ansari To: dri-devel@lists.freedesktop.org Cc: ~postmarketos/upstreaming@lists.sr.ht, asahi@lists.linux.dev, janne@jannau.net, Rayyan Ansari , 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, Rob Herring , Thomas Zimmermann Subject: [PATCH v3 0/2] SimpleDRM: allow configuring physical width and height Date: Tue, 24 Jan 2023 22:41:40 +0000 Message-Id: <20230124224142.7133-1-rayyan@ansari.sh> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755945537642841160?= X-GMAIL-MSGID: =?utf-8?q?1755945537642841160?= Hello, The following patches: - Add support for configuring the width-mm and height-mm DRM mode properties in the SimpleDRM driver via Device Tree - Document these two new Device Tree properties This is useful for allowing interfaces such as Phosh to calculate proper scaling values and for early boot code knowing if hi-dpi rendering is necessary. Changes since v2: - Remove $ref property (because it is an SI unit) - Extend commit messages Rayyan Ansari (2): drm/simpledrm: Allow physical width and height configuration via DT dt-bindings: display: simple-framebuffer: Document physical width and height properties .../bindings/display/simple-framebuffer.yaml | 6 ++ drivers/gpu/drm/tiny/simpledrm.c | 60 ++++++++++++++++--- 2 files changed, 57 insertions(+), 9 deletions(-)