From patchwork Fri Dec 4 12:11:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 337751 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp349187jai; Fri, 4 Dec 2020 04:12:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqbzVEuEbKxQ++6SkZ9G/V8WvpH0qwpTnoqQAfR/m6TMpwjuHH7CggS10D9E5R1lz3iIMB X-Received: by 2002:a17:906:7f13:: with SMTP id d19mr7066301ejr.54.1607083963372; Fri, 04 Dec 2020 04:12:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607083963; cv=none; d=google.com; s=arc-20160816; b=yAvd8TBDzFsMTr/Q6FTynQxXBY2nKrb0Pzc0v/8kWJXmP1oHwv2pVBxpJ6lbitPiuQ 3H9nD271a0ffVSXBXraOgcGZRu/Pzo+QX7k1bBYQSCI4c8mAu35NM9ioZWsfWYelehrc 22QrrtHbHOwO+rrjYvYYUUs88Ky4cfkHLdwJzqC59W4IarAWg+CQCXGB1Ys9Abb/tsX5 bXp4evbNuPHC8qW7HxtmdG6xlTuIYGWrelU+ZI15GHVGNb21ESO9jPyla/B7m8HmbvSW pMxYkzOPscPnCl37oDknUZwou67WXw2MMWbNS0FWjpgE1iVyAUoiA5ggbt5+X0DaGHlT /sOg== 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=vtKJPcRk0AwrID4oxj+y21/DtZJ/QxAQEtv13EV+9xo=; b=pGqfBX3RPiGPfWXsdIMqJy1Fe/HWTIWwkgNdC91LR1nm5EVl4veIFJhjmhOYCuO2HJ EWwogyyTOCv/OLWykraAu0Ms0lMifYJX6Qr6vxq4VKkO1xavYGIpvrcXJRBfyjMcM7+f 36uCj/b8+Uy5bhyQyIGUMOctaFyuSMIL0pm+t6k+4fg9wso2i6PQ4meC21Loou5/nkbs FliLPux3vITiF2Sig8QbKoHsZ00vmNpNCBMNCxesc816IRH37y0YVf4IfovfsoQc73w7 +CN6O+U6DkgnS40IZ4RguHlsxJH0H+WI7es5LcTgmN5RoAfSo6Nsxia5xtwEKKRew7Rd R8FA== 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 j7si1378099ejm.185.2020.12.04.04.12.43; Fri, 04 Dec 2020 04:12:43 -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 S1730207AbgLDMMd (ORCPT + 6 others); Fri, 4 Dec 2020 07:12:33 -0500 Received: from foss.arm.com ([217.140.110.172]:33076 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730204AbgLDMMc (ORCPT ); Fri, 4 Dec 2020 07:12:32 -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 4A76F142F; Fri, 4 Dec 2020 04:11:46 -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 E7A1E3F575; Fri, 4 Dec 2020 04:11:44 -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 Subject: [PATCH v3 1/7] dt-bindings: Arm: Add Firmware Framework for Armv8-A (FF-A) binding Date: Fri, 4 Dec 2020 12:11:31 +0000 Message-Id: <20201204121137.2966778-2-sudeep.holla@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201204121137.2966778-1-sudeep.holla@arm.com> References: <20201204121137.2966778-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 -- 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"; + }; + };