From patchwork Thu Mar 25 14:32:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 408811 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp589973jai; Thu, 25 Mar 2021 07:34:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXwDPI/UIcJSvQp8nUyLEcHO1fbx73ZykwP1eqRO2Rf/shiALCUtPuY+8SNrgrkp3W6X5t X-Received: by 2002:a05:6402:520b:: with SMTP id s11mr9657607edd.212.1616682843574; Thu, 25 Mar 2021 07:34:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616682843; cv=none; d=google.com; s=arc-20160816; b=qIaHOHEEgcYVxQO2034FVQ6RPsrijtF2ew9Uo9zgu7CBwd6hI+3N6C90/c8Dj+VgJu H/LqAbqjiurYBsuFVsdoCCDQCamHiNQcAjoWeImZxHsxM8YLVmCEshoi4pXUUpDZnFhR e2+FZWJKrFihp9JAFSH1J2fDxiilL0n0MzbeZ7pZ4e8Q8jBNKJzhfUsG8HkmrL/R+LcW 14xW8UlInCeQuiQmec7UyY6qOdWq1qGMfvNpStXxeb5WsixMduun4kIacM9ClDE143Pf nXI48EFhYMWCWvaEGk+CB4ZWl9VHWue8sQJYv/+Zp9EGbBsFskEwmE7v2QeFhQqbwdkh d2OA== 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=C1joIPSR7oeniuz4iHLvO2KtelxAOySZNPAUxwuDd80=; b=0jxJDZaqT05bbvEsUsWC0FU+GrbaA311htI/KjaMMAFF+Sgj5e1j+VhXSDE6qamo5t HTlKlQoRYs66EJWDioo6xfWrAOvxT3H1p4ieJF9fX/1YHVdfcEqZscQXylzfsVao+GHd sl//a5Wsg9QVm51xt3asdp0vYNG697Llkn+KNoKCyowc1IH68E6tbnnnI8PKR+N/ypDa cNuPhvLjRYIb8higDtZmT9LRXyDTzklob6I+VKuCZ5Fg7m4pSl+isv3opUsG5R+8gh9h gByYcYq1l3eHG2HH5XhXA2ktIv4uDQ42dwQlou5ivz/3OykmPioXYPZ0pleOI6yr2C7o V4mA== 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 qu2si4448783ejb.373.2021.03.25.07.34.03; Thu, 25 Mar 2021 07:34:03 -0700 (PDT) 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 S229869AbhCYOd2 (ORCPT + 6 others); Thu, 25 Mar 2021 10:33:28 -0400 Received: from foss.arm.com ([217.140.110.172]:50992 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231493AbhCYOdH (ORCPT ); Thu, 25 Mar 2021 10:33:07 -0400 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 38A2C1476; Thu, 25 Mar 2021 07:33:07 -0700 (PDT) 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 BE4633F792; Thu, 25 Mar 2021 07:33:05 -0700 (PDT) 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 v5 1/7] dt-bindings: Arm: Add Firmware Framework for Armv8-A (FF-A) binding Date: Thu, 25 Mar 2021 14:32:49 +0000 Message-Id: <20210325143255.1532452-2-sudeep.holla@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210325143255.1532452-1-sudeep.holla@arm.com> References: <20210325143255.1532452-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 | 57 +++++++++++++++++++ 1 file changed, 57 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..42ed33464ba7 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/arm,ffa.yaml @@ -0,0 +1,57 @@ +# 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: + 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-partition-0 { + compatible = "arm,ffa-1.0-partition"; + uuid = "12345678-9abc-def0-1234-56789abcdef0"; + }; + };