From patchwork Tue Nov 3 17:43:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 320439 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp4779546ilc; Tue, 3 Nov 2020 09:44:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzupRWfXOFW1Ne4qCQ/DfsqnSNeS2ZP+i1CgCA/fAMoljDoQ7ValdeDn8lj4JtdmIYIc8SG X-Received: by 2002:a05:6402:553:: with SMTP id i19mr4699599edx.194.1604425443187; Tue, 03 Nov 2020 09:44:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604425443; cv=none; d=google.com; s=arc-20160816; b=qlwl1rvCyw/pcTF+NWddqRV5oA9UXMgtwJa5O7TJaqTd0v6sHGJy162iQujC9X6oIF mH8Rnrkgp4kg/xhT6hNL0Oco1jFzJCW5h+YwoHxKiebPH9JL1edQLK4E6+ivIVbh7J8r DzqoT4+Oj22QUfgmUhiGDROoDo5Bsls9KgloaxYlrI8ysBfhwzFjpjzGVDYYUKz8Glii pgAeEA/krLw3Fm052alc6C0uex/7ceQXypMq/yDmC70HU1QPl0CECZb7wW6qJP66Hcbv VlXCsFjtWHPTr62xZ4GYfKlxxMzQ4PNgyoixX6MoUlTzbKkKc52DECC4TBKxcjzOYA4j FNZA== 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=SwbUfelIQzTEubt8UFnSbvOlelPNqtNUh85th9TO9HA=; b=dacpnKxPE79knuoOVg5MC5xmVN4yMEh5R1YZl/E0iw5Ea8RmbkaQjtHkwtVPnWtUHE msuBOaozlfxU1WaL3qWxWLwSC+qxAA2O1H6krvLTP9SkZuJAzcf+djhkKcpGUQkpFEDe 4FD2C09bBKZ+cQO3zWnjiECmn8ClLY5H4eGSQNrKtHaMmbhLGeiXwAwmnK2Nu7qITpfJ TwQaaB5+FUPEWRhVliGHTVuh6xsqYUPc5t9GyxJdMnFY7VlXj3SW8q1gs4kR9VaIocgP JYpgkJwuAAKDEn3I0Cqfjtj8NeNfk9AulYYR2scbSfQznhHLGUWjuYhSSY467G5siMT1 KLdg== 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 n13si13469090eda.416.2020.11.03.09.44.03; Tue, 03 Nov 2020 09:44:03 -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 S1729073AbgKCRoC (ORCPT + 6 others); Tue, 3 Nov 2020 12:44:02 -0500 Received: from foss.arm.com ([217.140.110.172]:53048 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727901AbgKCRoC (ORCPT ); Tue, 3 Nov 2020 12:44:02 -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 A12301474; Tue, 3 Nov 2020 09:44:01 -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 1C1783F718; Tue, 3 Nov 2020 09:44:00 -0800 (PST) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Sudeep Holla , Trilok Soni , Trilok Soni , arve@android.com, Andrew Walbran , David Hartley , Achin Gupta , Android Kernel Team , Fuad Tabba , Rob Herring Subject: [PATCH v2 2/9] dt-bindings: Arm: Extend FF-A binding to support in-kernel usage of partitions Date: Tue, 3 Nov 2020 17:43:43 +0000 Message-Id: <20201103174350.991593-3-sudeep.holla@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201103174350.991593-1-sudeep.holla@arm.com> References: <20201103174350.991593-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 extends the binding to provide the list of partitions that kernel drivers may need to access and are not part of the partitions managed by the hypervisor. Cc: Rob Herring 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, I struggled to keep both these(arm,ffa and arm,ffa-hyp) in the single yaml file. I couldn't understand the errors and couldn't find an example that has something similar. I will continue to explore, just posting as separate for now to continue discussions. 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"; + }; + };