Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4297335rwb; Sat, 21 Jan 2023 09:06:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXu9IKjPA3LT2ELQQrz4yKOJRD6Heoqs/28zV5oDVHhVaP8hPY2HdpSYmPk+FXp1wl8n0EMc X-Received: by 2002:a17:902:f305:b0:192:7447:adfe with SMTP id c5-20020a170902f30500b001927447adfemr16772789ple.36.1674320808764; Sat, 21 Jan 2023 09:06:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674320808; cv=none; d=google.com; s=arc-20160816; b=M7hjKR/HhntU1fKhEg6NZy7vdMCfkgW9OAP8sI1VXLlShc40RAYDP9mmmxPgfYVjuX weWpbYNltb+emalIA2ZiXlds+pQejJijkCMcateBkRLKCuPw2ZSO9yBvVQ1bnWv19K/t boW39q57e/iVkyZKerQNwAJkISj48ru/qki95t0PAIa1dKhtuG3CRoMQ+PVznWyvFy/w yeur/XIDLprTM8JTphu//wjW2g1qxW4xdqpOkwqPm23JVnhVceTssxERb5kgcNbJhUos 3q9bN6s1eooC6199FdCUT7lZrYcxYRzJRA/7KxvPo00dn+X50STTAo8hkPcBkkeReUG2 AfSQ== 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=/TK50vANIeT0VcQuhI0R9JP1NtC98hHehgAPETS4Aik=; b=kGAOAsIJweLlA+Z2pwdZt67iuILYPhsPvjVXTgj04rEKBUfzR4kwha3I1Nimg5DgoB aGRI4EIuL5CQ61R3Bd84fz8YbrcEuspoPHljQsfqufg+pxfsqeFve3+2dlIRCdVUKHlF iuDvfJdNKNjxvrthOe5XGuXMuOINwmHkGBy23iThaj5ovzj+k9KUcVnzcQn0OXBzpP4H 3JhKiyjSsFdHaAjXvdQoiUDaZiH9I9KcHX3CFGliPO9KA+pENqmZIVrvO+7WaqJyuoDQ wRYsENgq3LniHJhyyfTMMX3IWgkMLKKXLQeR+YnVDJWJ3XtiKUQPbd7SFV/7612pvAZZ ELPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=key1 header.b=d48CK7Gs; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a170902b68b00b0019269c72094si678805pls.504.2023.01.21.09.06.42; Sat, 21 Jan 2023 09:06:48 -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=d48CK7Gs; 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 S229645AbjAUPg1 (ORCPT + 50 others); Sat, 21 Jan 2023 10:36:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjAUPgZ (ORCPT ); Sat, 21 Jan 2023 10:36:25 -0500 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BBC62A9A8; Sat, 21 Jan 2023 07:36:23 -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=1674315380; 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=/TK50vANIeT0VcQuhI0R9JP1NtC98hHehgAPETS4Aik=; b=d48CK7Gsqlk9f29ouxtCo7pGt6AhCFUrJtA+xsJUBwULn6foz7n3xEMGka43KJZbYtRD+g RhHqONZJ7iV8V0j+SnzZzZelkFE+v2+9XEd6qQDPw/e7V+MHp7v+199CTyIWlfOSzIrwgU 0iyX8vYaZczdM2cTPA8c43qWA9xpo2M= 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 v2 0/2] SimpleDRM: allow configuring physical width and height Date: Sat, 21 Jan 2023 15:35:42 +0000 Message-Id: <20230121153544.467126-1-rayyan@ansari.sh> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED 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 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. Changes since RFC: - Switch to using 32-bit DT property - Report errors for return values of of_property_read_u32 except -EINVAL - Calculate default value during probe - Add documentation 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 | 8 +++ drivers/gpu/drm/tiny/simpledrm.c | 60 ++++++++++++++++--- 2 files changed, 59 insertions(+), 9 deletions(-) -- 2.39.0