Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5E64C433F5 for ; Tue, 7 Dec 2021 12:36:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236509AbhLGMkL (ORCPT ); Tue, 7 Dec 2021 07:40:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236498AbhLGMkJ (ORCPT ); Tue, 7 Dec 2021 07:40:09 -0500 Received: from mail-wm1-x349.google.com (mail-wm1-x349.google.com [IPv6:2a00:1450:4864:20::349]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA527C061746 for ; Tue, 7 Dec 2021 04:36:38 -0800 (PST) Received: by mail-wm1-x349.google.com with SMTP id g11-20020a1c200b000000b003320d092d08so7654195wmg.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=shonI30HY0q4kE1EXAo31k9e/2cK//fbIsUKeti1u01oA7lgXVx0uU/SID1Iqls2VT bq6vmAwb2bN3waL1i9hZktpEFeDnXUgzod1z00G51LC29Ukan7LA9OKqHOBRnMOEmyuf ST3t9znc/I4XnsU/Chw3zPMy9W2tnSWfqFi1h71TsklroBIzSKBevhza/bg8kmvpuozF v8f05z7C4G2sCBEb87XMvi5OrJHIaD4x6DLXOTL6FFSh4QwBTdx0mXrTbsAn2gX6pqIh Ca4FX8PRA/x6YtNbsHi/Iw0pDK63TihwEFNTTmTn8Wb73P9by2NhFUUuOUAl0ZEuISW7 G2Ag== X-Gm-Message-State: AOAM531KCLGcH4lEu15y+IYti37nQCqYekAM6F8BkZ3QLiXyZVVp1HPy kiyztKHzB15K8ijhhd/sDOjk9EvE3rImgA== 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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>; + }; -- 2.34.1.400.ga245620fadb-goog