From patchwork Mon Jun 21 06:27:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Esaki Tomohito X-Patchwork-Id: 12333857 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7221C49EA6 for ; Mon, 21 Jun 2021 06:29:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CDDCC6115A for ; Mon, 21 Jun 2021 06:29:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229890AbhFUGb7 (ORCPT ); Mon, 21 Jun 2021 02:31:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbhFUGb5 (ORCPT ); Mon, 21 Jun 2021 02:31:57 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CFA3C061766 for ; Sun, 20 Jun 2021 23:29:44 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id c5so191647pfv.8 for ; Sun, 20 Jun 2021 23:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MngqRxxEHl2ppcxz+/r0UlSDgAGtoX4UkbK2llRyjcc=; b=oSxSHYT+eynqd9qy7H1VRE5S8rO7PDdIGyCkbpZ7qZu0nWRHBcVr+NE3o3eQT5F3cL MpS2CjKCO7Dd7PSDsxpnZPTbeBQAc/qAlZM5hSnkVVp26Sr8XFXTvpGNWjjCYRmoxFkQ qndU79LzzhFyDmyHklDcRxAdadOTvcbCs4F3UlnpguJB9x4dzPBQO1yUNGEmCk4B9ed2 7IXJ5VyfBJhKu2cNXkhnUhn91Cs1kkQmkqpn6zV082No9EoXSaWTMLo9nXlGh7rctoqu vAE/qLk9m5jQ1u2KbR2zmQRlU7me3tPr65wDVQiVxpv2GQT20zIrQ0FhhpR5LkIC/Ecq mzuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MngqRxxEHl2ppcxz+/r0UlSDgAGtoX4UkbK2llRyjcc=; b=oqjNIGOd1NYXT20F2G+wVRTy1h6AqRAfLKbwh4lQewxiG+KoM9oipo+WLv5eHs3ev1 9OQm2zsYDPXJTyS/heQsYNugURMAwdJu3J1y/DoAQjn0dLlGz4iMV0T9mvmvvycJ92a+ UiMaWc3tgQNp6aV0MUugbLvP56BqXAkecmcvkDYmcqAYOph2sNK+OfW5TseLxiMclpHV G0dAPujeZWueSTlc5FlIPzRxIVaoT7W0u3p8cCTylH08OzIi9oiVmtVwXXve3UPZe0Em h97l/JuaN0LBZ0Hh0gOUvADzOL23+RzVGm+jAQrd0h1wjydeu24/16TsooBef4O/cHtR 9JGw== X-Gm-Message-State: AOAM5337o6zZMCCqeK8jgUUXfuzXKZlQYGOiNxnGXtC1xP/NWDTb4Y6g OMMoB9csgUKSH00J/OjVt5DwEw== X-Google-Smtp-Source: ABdhPJwHuFs9pzSz4JS1faFxRvnZ6FD31/YEEBp/+vMDIFATaE0H/VU3lriAI4/3wgnQkW2aXdyh8Q== X-Received: by 2002:a62:7885:0:b029:300:9a33:1720 with SMTP id t127-20020a6278850000b02903009a331720mr14193118pfc.68.1624256983750; Sun, 20 Jun 2021 23:29:43 -0700 (PDT) Received: from localhost.localdomain ([240b:10:c9a0:ca00:61b8:26ec:dc30:8823]) by smtp.gmail.com with ESMTPSA id j19sm15266018pgm.44.2021.06.20.23.29.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 23:29:43 -0700 (PDT) From: Tomohito Esaki To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Laurent Pinchart , Kieran Bingham Cc: dri-devlel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, Tomohito Esaki Subject: [PATH 3/4] dt-bindings: display: Add virtual DRM Date: Mon, 21 Jun 2021 15:27:41 +0900 Message-Id: <20210621062742.26073-4-etom@igel.co.jp> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621062742.26073-1-etom@igel.co.jp> References: <20210621062742.26073-1-etom@igel.co.jp> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Add device tree bindings documentation for virtual DRM. Signed-off-by: Tomohito Esaki --- .../devicetree/bindings/display/vdrm.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/vdrm.yaml diff --git a/Documentation/devicetree/bindings/display/vdrm.yaml b/Documentation/devicetree/bindings/display/vdrm.yaml new file mode 100644 index 000000000000..6493bb0fc09f --- /dev/null +++ b/Documentation/devicetree/bindings/display/vdrm.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/vdrm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Virtual DRM Device Tree Bindings + +description: + This document defines device tree properties virtual DRM. The initial + position, size and z-position of the plane used in the virtual DRM is + specified. + The current limitation is that these settings are applied to all crtc. + +properties: + compatible: + const: virt-drm + +patternProperties: + "^plane(@.*)?$": + description: Information of the planes used in virtual DRM + type: object + + properties: + x: + type: int + description: x-coordinate of the left-top of the plane in pixels + + y: + type: int + description: y-coordinate of the left-top of the plane in pixels + + width: + type: int + description: width of the plane in pixels + + height: + type: int + description: height of the plane in pixels + + zpos: + type: int + description: z-position of the plane + + required: + - x + - y + - width + - height + - zpos + +required: + - compatible + - "^plane(@.*)?$" + +examples: + - | + vdrm@0 { + compatible = "virt-drm"; + plane@0 { + x = <200>; + y = <100>; + width = <800>; + height = <600>; + zpos = <1>; + }; + };