From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10A2FC4361B for ; Mon, 14 Dec 2020 22:02:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B0FB3229C5 for ; Mon, 14 Dec 2020 22:02:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0FB3229C5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/COHQ93LsfMU2KQ2zRbPBVr0tgux2VPes3hXxWpQD+M=; b=xa774IumxWclpcyc+iB4os0MX b5Gj+EQVotZLFjoTPNx8kGewRzEFS8yP3YTIxgT/Jkrf04kdermhg4vgHNkEPPS83FOvXG3Zf//r9 zVfNNcbGAm+DEsTRcJpSjAxQdR3B5VmFOGHMYxTV2L7uURJifp9kEg5lQZNbS61XyX1z8K7vfadw7 Wv+z0z2ZpPaFPGVDtpIF1I9twQ8a+JfanAoDsdOp3d4DZNhAm/bzbv5nS4vUiT0uHc6z3DQIjC9FU maTfl49j8O4YiK1lLH0KM7zWB55ZTNWKl1FgFBkPKNep5d6mtuoYPcecG1n+TPYTDnM4rbRU9ArWL TZHFs+Bmg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kovu7-0004Gy-SW; Mon, 14 Dec 2020 22:01:15 +0000 Received: from mail-ot1-f65.google.com ([209.85.210.65]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kovu3-0004GX-IS for linux-arm-kernel@lists.infradead.org; Mon, 14 Dec 2020 22:01:13 +0000 Received: by mail-ot1-f65.google.com with SMTP id o11so17346721ote.4 for ; Mon, 14 Dec 2020 14:01:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=CLg81VCw7WUSOyJHczxiTOaiCI7Ub7ICfiX/XqBfJbU=; b=IJHi2Nh7vd+a/LsB0WcJZ/8gcvwDTivWfO32JBEz7AG76gPTylA2ogZ2ULdPXIhjob uYsK+6w9fSvDey6ILc1u2HLfcyE3lzKhjERW21Rs2y9/+2H0lDolEju3ealO212uSdTo 3aeb0WND1HVDO5kD5gdJExefiNCZ3SC3tqtMH2wqE2vr6C7Gff5fPN3B7FsgebTvQ8LS RDD6hn22yWJT5XhDmfelPJqcPjJ3JgukS+SirmpWwGj+7Pyh6kRyYrTXwoCPc++81/GA thEJdh5zapBX+A6lr0jVpf3q/rx+2mEzBGztP7mhLR6tn+/bEdp01sRaJU0I7AMmRBau xZhQ== X-Gm-Message-State: AOAM533JRTLpYmEjKFa2YPb5yIYXZgLpLKlPnbBOLjqWmNZ98VQSm7D8 qtGaPxdCevYYdvhHw5bjBw== X-Google-Smtp-Source: ABdhPJz3VQP125TN/BywgL93zVAHEgHOivyXp4I2SYwnh9E64x+911d9PGe4d6vPeiVlqNFi7A+9cA== X-Received: by 2002:a9d:e91:: with SMTP id 17mr21100998otj.237.1607983269919; Mon, 14 Dec 2020 14:01:09 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id t12sm4216046oot.21.2020.12.14.14.01.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Dec 2020 14:01:09 -0800 (PST) Received: (nullmailer pid 2464252 invoked by uid 1000); Mon, 14 Dec 2020 22:01:07 -0000 Date: Mon, 14 Dec 2020 16:01:07 -0600 From: Rob Herring To: Sudeep Holla Subject: Re: [PATCH v3 1/7] dt-bindings: Arm: Add Firmware Framework for Armv8-A (FF-A) binding Message-ID: <20201214220107.GA2430387@robh.at.kernel.org> References: <20201204121137.2966778-1-sudeep.holla@arm.com> <20201204121137.2966778-2-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201204121137.2966778-2-sudeep.holla@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201214_170111_863200_4E45B443 X-CRM114-Status: GOOD ( 22.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Trilok Soni , devicetree@vger.kernel.org, David Hartley , Andrew Walbran , Achin Gupta , arve@android.com, Arunachalam Ganapathy , Jens Wiklander , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Dec 04, 2020 at 12:11:31PM +0000, Sudeep Holla wrote: > 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 > > 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 UUIDs are actually a known thing in json-schema with 'format: uuid'. The meta-schema will probably reject that, so we'll need to add support to dtschema. Maybe it should be a new definition to reference. > + > +additionalProperties: false > + > +examples: > + - | > + ffa { > + compatible = "arm,ffa-1.0"; > + > + ffa_partition0 { > + compatible = "arm,ffa-1.0-partition"; > + uuid = "12345678-9abc-def0-1234-56789abcdef0"; > + }; > + }; This could all be simplified down to just a single property: arm,ffa-partitions = "12345678-9abc-def0-1234-56789abcdef0", "12345678-9abc-def0-1234-56789abcdef1" "12345678-9abc-def0-1234-56789abcdef2"; Obviously, that's not extensible, but do we need it to be? Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel