From patchwork Fri Feb 12 15:46:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 381838 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp3040986jah; Fri, 12 Feb 2021 07:48:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJws61Yzy69XESmDks1zWuuyet/l3YSrK5/K+h9qL7Ov2tk0j7VVi3NZWRLNLhT9fYzKGzfI X-Received: by 2002:a05:6402:702:: with SMTP id w2mr4142159edx.78.1613144921664; Fri, 12 Feb 2021 07:48:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613144921; cv=none; d=google.com; s=arc-20160816; b=Cmj2Dnuie06LzKsSeV3cKxBg9lj5jcGzmpQikCYRx9Lfrd7h+OGU79TCLAbiGNf0hz 3tLd++vWqfJtFu4oubXabq3YmJPkmRM/G08JMZ3Z4sY/tD5LN8g6juxr0mx+R0n3Y6Qu FMcM11cLJBcypmOrd2jY5b1tcEz6Vs6/GQiFuScd7w0IbgKY4lxAR9dKRO48Klk/qA6P yQ+9l1tUeGw4BUDyk1q9jEhy6ioQldISb33vfQQFjl36YPgTdsiuVJ7ljwF8k+lBLaDJ Julf3J3q5vxTtol9oD2gqNfk3cvL6XukDUU4hXi2h8M+/XFBl+qLUo3xU5mNxc/TDGHG KexA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=rkevXiXsHPftJOagl4NTxb14vjga+DjmIQ5em6y/eBk=; b=ggAIYhBgTWmaDhsszdTCPyb5RgXHZx52VA2E78zo/hAtPrnmI4wMN1Ka+liqzh+n82 UPJl/pI49HqUiYUmnoORGiOP4Q4gSc8Lls16buyUzepLtzpmfK6KvUxD7igwFoWDmWuu FhWDP8rJh7rQf7GVuvzYBi5FVC321dskh3+spDC7n09uQRw2csT+VdiY9q+9KOenvlcG vJgbglQJmlZwN/ME3V123A/qqn4PaNrU4+0L0PrqlIUTm8sdFZV/t/bQygkvm6LR2Jnt E5WPrUa5gNBung4bkq9a2hJZgxVlG3jhWzRN/zHUXYgdC56TNjTMtna7DbmDSQJ1JlcP B6+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 40si6668662edr.233.2021.02.12.07.48.41; Fri, 12 Feb 2021 07:48:41 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232034AbhBLPrY (ORCPT + 6 others); Fri, 12 Feb 2021 10:47:24 -0500 Received: from foss.arm.com ([217.140.110.172]:38970 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231731AbhBLPrL (ORCPT ); Fri, 12 Feb 2021 10:47:11 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0D24A11B3; Fri, 12 Feb 2021 07:46:26 -0800 (PST) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 896DB3F73B; Fri, 12 Feb 2021 07:46:24 -0800 (PST) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Sudeep Holla , Trilok Soni , arve@android.com, Andrew Walbran , David Hartley , Achin Gupta , Jens Wiklander , Arunachalam Ganapathy , Marc Bonnici Subject: [PATCH v4 1/7] dt-bindings: Arm: Add Firmware Framework for Armv8-A (FF-A) binding Date: Fri, 12 Feb 2021 15:46:08 +0000 Message-Id: <20210212154614.38604-2-sudeep.holla@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210212154614.38604-1-sudeep.holla@arm.com> References: <20210212154614.38604-1-sudeep.holla@arm.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Since the FF-A v1.0 specification doesn't list the UUID of all the partitions in the discovery API, we need to specify the UUID of the partitions that need to be accessed by drivers within the kernel. This binding to provide the list of partitions that kernel drivers may need to access. Signed-off-by: Sudeep Holla --- .../devicetree/bindings/arm/arm,ffa.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/arm,ffa.yaml Hi Rob, Sorry to send the same version again just to keep the driver review progress. I am still exploring on how to add "format: uuid" support in the dt-schemas. I am seeing errors as format is used in some of the audio/video DT bindings. I get errors for all those files, may be I need to use $format, initial trial to do that also failed. Regarding other comment, I had replied earlier[1] as why we need to keep separate DT nodes for each partitions. [1] https://lore.kernel.org/linux-arm-kernel/20210113100011.bnn75jogx22cgkk4@bogus/ Regards, Sudeep -- 2.25.1 diff --git a/Documentation/devicetree/bindings/arm/arm,ffa.yaml b/Documentation/devicetree/bindings/arm/arm,ffa.yaml new file mode 100644 index 000000000000..a014a5801c34 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/arm,ffa.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/arm,ffa.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Arm Firmware Framework for Arm v8-A (in-kernel users) + +maintainers: + - Sudeep Holla + +description: | + Firmware frameworks implementing partition according to the FF-A + specification defined by ARM document number ARM DEN 0077A ("Arm Firmware + Framework for Arm v8-A") [0], providing services to be used by other + partitions. + + [0] https://developer.arm.com/docs/den0077/latest + +properties: + $nodename: + const: ffa + + compatible: + oneOf: + - const: arm,ffa-1.0 + +patternProperties: + "^ffa_partition[0-9]+$": + type: object + description: One or more child nodes, each describing an FFA partition. + properties: + $nodename: + const: ffa_partition + + compatible: + oneOf: + - const: arm,ffa-1.0-partition + + uuid: + $ref: '/schemas/types.yaml#definitions/string' + description: | + The 128-bit UUID [2] of the service implemented by this partition. + + [2] https://tools.ietf.org/html/rfc4122 + +additionalProperties: false + +examples: + - | + ffa { + compatible = "arm,ffa-1.0"; + + ffa_partition0 { + compatible = "arm,ffa-1.0-partition"; + uuid = "12345678-9abc-def0-1234-56789abcdef0"; + }; + };