From patchwork Thu Nov 17 18:40:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 13047191 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0227C433FE for ; Thu, 17 Nov 2022 18:42:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED6A410E677; Thu, 17 Nov 2022 18:42:07 +0000 (UTC) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by gabe.freedesktop.org (Postfix) with ESMTPS id 61AAA10E66F for ; Thu, 17 Nov 2022 18:40:51 +0000 (UTC) Received: by mail-ed1-x535.google.com with SMTP id x2so3889003edd.2 for ; Thu, 17 Nov 2022 10:40:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oWVJf0S9kqs87h9L8NvjpGJOac1XzRow1tUHd0R/FGA=; b=A71LMLctjhFiGB+nzlkmn8+VI54b2dfeC6yJdUT/jMVgQ9Bhm3+spI29djFRnYJG+t Jrs0YL7rFykG6AsiuJLGbVz0MCUVGrvxsgqH2CphFUZm1rzNZss7Fy6IrCK1749DnPhP cGD0aU4PCo0oYeMThSZw3FMjv3gQrIlSBEE2ehNkGJ3SDOcNW6EZqSepWQRi/lYlSxWW YviuzuzCw9pDq48d9B3bLNfLX6Q6+LsTAIKBYqi3D5Zy/1mxNJqIdqg3hcmh6ohpRL0X gdp1MXvzqoIhiY2i3GjweP6APYPTXVnQUuk+vopyhfIqSvoCNYRfrlq1FgNOddTjlaWD Oebg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oWVJf0S9kqs87h9L8NvjpGJOac1XzRow1tUHd0R/FGA=; b=vCaBGA17PGaeLEUVXAz3NdX4Skg414Hhsd9CoGxo0TSMjZi5Iizl6rEH8B9ZaFAiA4 GNZwaN/1i8KNMjmo6fExwdUgPHhYL3gIe3G5YJisnVYwYpewOma3fZq+kJE5mPSHdQ38 Oi/eYUgQEJub7EFL2MxAvvH3UFZVFTg9qCX0a3ZMYa8tLVdyeC0kS0QDWs9HUANI3hB1 smIzm6Cj9nObVG1LuH2fC96E1TW/47cR9dxuFO21tF6u0VDCZskd05Oay1dHpcv1QcGB eGXDZTBzJ2CtFuxvpr5fTDpZtRkQLjtjIBLRjwnlHntZIRqUn852uHMmn3RAa5PTY5qN VbUQ== X-Gm-Message-State: ANoB5pluBovL3ky+spWwPoRpF+0/AIbUDtgdqwornKcYFhZKfFPzLuiu k+fU2cxWN545laDng0X8RNY= X-Google-Smtp-Source: AA0mqf4ZN5qTTfZsCmLUrTJuTNa2VWaQn9Ue2FfHJHLlMaOUGDKOLjB1jb8zyRCSe523ljqglGha9w== X-Received: by 2002:aa7:dd45:0:b0:45a:3c66:b0e4 with SMTP id o5-20020aa7dd45000000b0045a3c66b0e4mr3373267edw.33.1668710449770; Thu, 17 Nov 2022 10:40:49 -0800 (PST) Received: from localhost (p200300e41f201d00f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f20:1d00:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id u22-20020aa7d896000000b00459f4974128sm874496edq.50.2022.11.17.10.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 10:40:49 -0800 (PST) From: Thierry Reding To: David Airlie , Daniel Vetter , Thomas Zimmermann Subject: [PATCH v3 3/8] dt-bindings: reserved-memory: Support framebuffer reserved memory Date: Thu, 17 Nov 2022 19:40:34 +0100 Message-Id: <20221117184039.2291937-4-thierry.reding@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221117184039.2291937-1-thierry.reding@gmail.com> References: <20221117184039.2291937-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Jon Hunter , linux-tegra@vger.kernel.org, Robin Murphy Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Thierry Reding Document the "framebuffer" compatible string for reserved memory nodes to annotate reserved memory regions used for framebuffer carveouts. Reviewed-by: Rob Herring Signed-off-by: Thierry Reding --- Changes in v2: - use four spaces for indentation in example (as recommended elsewhere) - add explicit root node - drop unneeded quotes .../bindings/reserved-memory/framebuffer.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/reserved-memory/framebuffer.yaml diff --git a/Documentation/devicetree/bindings/reserved-memory/framebuffer.yaml b/Documentation/devicetree/bindings/reserved-memory/framebuffer.yaml new file mode 100644 index 000000000000..05b6648b3458 --- /dev/null +++ b/Documentation/devicetree/bindings/reserved-memory/framebuffer.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reserved-memory/framebuffer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: /reserved-memory framebuffer node bindings + +maintainers: + - devicetree-spec@vger.kernel.org + +allOf: + - $ref: reserved-memory.yaml + +properties: + compatible: + const: framebuffer + description: > + This indicates a region of memory meant to be used as a framebuffer for + a set of display devices. It can be used by an operating system to keep + the framebuffer from being overwritten and use it as the backing memory + for a display device (such as simple-framebuffer). + +unevaluatedProperties: false + +examples: + - | + / { + compatible = "foo"; + model = "foo"; + #address-cells = <1>; + #size-cells = <1>; + + chosen { + framebuffer { + compatible = "simple-framebuffer"; + memory-region = <&fb>; + }; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + fb: framebuffer@80000000 { + compatible = "framebuffer"; + reg = <0x80000000 0x007e9000>; + }; + }; + }; +...