From patchwork Tue Dec 7 12:36:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Brazdil X-Patchwork-Id: 1564679 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20210112 header.b=PMtuEE4T; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4J7ftd1vdYz9sXS for ; Tue, 7 Dec 2021 23:36:41 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236505AbhLGMkJ (ORCPT ); Tue, 7 Dec 2021 07:40:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236375AbhLGMkJ (ORCPT ); Tue, 7 Dec 2021 07:40:09 -0500 Received: from mail-wr1-x44a.google.com (mail-wr1-x44a.google.com [IPv6:2a00:1450:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9E0AC061574 for ; Tue, 7 Dec 2021 04:36:38 -0800 (PST) Received: by mail-wr1-x44a.google.com with SMTP id q5-20020a5d5745000000b00178abb72486so2903717wrw.9 for ; Tue, 07 Dec 2021 04:36:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=V5TQSSfxTa71RwkCaeGqnETGpTQ6ccmNH8CkGmdFAlk=; b=PMtuEE4TfUGHV84xmTqyydArIh+8dprhcfHgaMP0eL77EbycH4dp8ZeZjE+30ELPJB djWQ5+krmIs5qyMcP3weMdmbVqr1HDC3B1D+WUzgeFPg+e29pB0jqR3Ggj9RdJqH7blT C641ouMa1W6ke5Zy+TXKt82VFyioJPBqGtVRLVAuyS2H798Nbt4q2jT/l87wvscHrd2h EtW3Kv6Bej6R2FIkgCK5fAuKOqDmeHVOp+/kL9BCf2G7bhpq6B5lvQAqP1ocjLRkMOPE JokADhbNxZDFbucLOSOv8TmjL0eqc4hlxZPWiGXUrUSf7uXNQP5ArjtmXAxZiobqK9jV 1x2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=V5TQSSfxTa71RwkCaeGqnETGpTQ6ccmNH8CkGmdFAlk=; b=CDg4YhpYOJA+ayDmucPa+OlhJ3XxAs8usXZTrIx17aBXQF8Q8w5hagvk/+CRGbFrhS Vjmn1RcX1Edr8ZFkIEvWu6qX2TqeLNkMyPFM/NJgwDpjYsgOz1uczXrOd8J+FJJbX6ez n2Td+weYk6/2V7ElxlBHDtP/2lf+t/2uR6DYTEG48HlHqpkq73w01Hy8sGLal8F0YhS4 7ZkYiIsDPeefo0Q3afLD0WRmnotUucN8z3FF1SR0bLONHMo0NLJSeJRjYzp1NFDMXsXP akVHtJ0N/y8QrUsCJpQqfhN0lzRzAveHYpP5wwaFNDu1QoCGf1k8dDCShkKZFKwGIok1 ys1Q== X-Gm-Message-State: AOAM533cdSV4DOuU+cefFM1l4spZ9eeegVJz4gBWZqahCCy0+eoFIa4a V3bLcjUvAje8TN4CeIeszN8W+husc9a7Tw== X-Google-Smtp-Source: ABdhPJz+YCLP0rmJUTIZN5kb4ip0Jif4ekYB0O1pRz7ulk2vgT9TqTD76f2D96IDfS9UI5lxsKto2JIocGMXlA== X-Received: from dbrazdil.lon.corp.google.com ([2a00:79e0:d:209:cb8b:b013:316d:b2f1]) (user=dbrazdil job=sendgmr) by 2002:a05:600c:34c2:: with SMTP id d2mr6701396wmq.142.1638880597438; Tue, 07 Dec 2021 04:36:37 -0800 (PST) Date: Tue, 7 Dec 2021 12:36:16 +0000 In-Reply-To: <20211207123617.3040177-1-dbrazdil@google.com> Message-Id: <20211207123617.3040177-2-dbrazdil@google.com> Mime-Version: 1.0 References: <20211207123617.3040177-1-dbrazdil@google.com> X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog Subject: [PATCH 1/2] dt-bindings: firmware: Add Open Profile for DICE From: David Brazdil To: Greg Kroah-Hartman Cc: Rob Herring , Jonathan Corbet , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , David Brazdil , Hans de Goede , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Andrew Scull , Will Deacon Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DeviceTree bindings for Open Profile for DICE. DICE is a protocol for deriving Compound Device Identifier (CDI) certificates. These are generated by the firmware/bootloader and stored in memory. Location of the buffer is described as a reserved memory region referenced by a compatible DICE device node. See https://pigweed.googlesource.com/open-dice Signed-off-by: David Brazdil --- .../devicetree/bindings/firmware/dice.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/dice.yaml diff --git a/Documentation/devicetree/bindings/firmware/dice.yaml b/Documentation/devicetree/bindings/firmware/dice.yaml new file mode 100644 index 000000000000..c0726109e73d --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/dice.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/dice.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Open Profile for DICE Device Tree Bindings + +description: | + This binding represents a reserved memory region containing secrets derived + derived following the Open Profile for DICE. + + See https://pigweed.googlesource.com/open-dice/ + +maintainers: + - David Brazdil + +properties: + compatible: + enum: + - google,dice + + memory-region: + maxItems: 1 + description: | + phandle to the reserved memory node to be associated with the device + The reserved memory node should be defined as per the bindings, + Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml + +required: + - compatible + - memory-region + +additionalProperties: false + +examples: + - | + reserved-memory { + #address-cells = <2>; + #size-cells = <1>; + + dice_reserved: dice@12340000 { + reg = <0x00 0x12340000 0x2000>; + no-map; + }; + }; + + dice { + compatible = "google,dice"; + memory-region = <&dice_reserved>; + };