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 66E3AC433F5 for ; Thu, 9 Dec 2021 15:11:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234713AbhLIPPO (ORCPT ); Thu, 9 Dec 2021 10:15:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234735AbhLIPPL (ORCPT ); Thu, 9 Dec 2021 10:15:11 -0500 Received: from mail-wr1-x449.google.com (mail-wr1-x449.google.com [IPv6:2a00:1450:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FBE4C061A32 for ; Thu, 9 Dec 2021 07:11:38 -0800 (PST) Received: by mail-wr1-x449.google.com with SMTP id v17-20020adfedd1000000b0017c5e737b02so1494190wro.18 for ; Thu, 09 Dec 2021 07:11:37 -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=OBetiTf53LxSp+bk74Hs8eu5oTWcqnkrZekegQV/NTcrBwmKwztbtikFBEhrtL5wAO iCsLXknosy5bbtjTulVOnkvR7P6r707+xTUVyJ6SC18EgAbZPPcsK9K59syntyifRMx6 4HQttyc+1m6sVXvl2Xv5ZeXLutHNu+o0nWS0mm/MMm+WXXaa7DxqWt/WvpAQq2ijPKtS NJ/SyHZ2L/ZmWPBIscQPrJW+c1OBww2cQWOiiPF8yzFDY/nd8DVby4NkhP8ncPu6KO+J y6jjyY4CKZboHFv6ftJnBhY6iJ2KNTVcUVHqbEWdnjWtjjjqnoCWgSVeg3QG/UL7nlOC mEyA== 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=OLVJbL8RDQfzmKOVx/C1lad4yqfvny1ekired7FkbBrWzKquWm2dwfKZwYLgV78fiL 66QJZsz5ALc7hYM8PCqqBzbHC1kIgG7t/joWCzN00pV8My1MdKA1PQhj6vAi8spQGF52 pxllWZFbI2lPVzG8QSICdhcVpokEPwUA4Sajzpvmh6peUnSTaHbPrGsG4rekzvSiv9ym BuMS/rPGg8hdSenrIGJ6cu16KlaTrR5V4sfTXO2IM2777z6yP7vVEQSyt+0p3UYu1qRe xGF1oVzgEsHfzIehvRorvkHpqoEvWpa8LX8hy60Il8B0pyZ8dkJv9Rk85gQL6IGH7iuj HqCA== X-Gm-Message-State: AOAM533FuGqQq35mtipjd+BjHaQ9FhzOqLMyOv9ANHw51Gx24E5wDZld GzUhSt3eSjL25wk/PvFWnRu5S5yfzSHkhw== X-Google-Smtp-Source: ABdhPJw+aD9tDsXIc9WxeE7eBXi5eTHGZ86Ep8A+qus/C/Tpz/TTiEmqTne30myFM+AJ0pDhesU3/2ZRbs8WIA== X-Received: from dbrazdil.lon.corp.google.com ([2a00:79e0:d:209:8f9e:94f7:810:211b]) (user=dbrazdil job=sendgmr) by 2002:a05:600c:1d06:: with SMTP id l6mr7591025wms.97.1639062696474; Thu, 09 Dec 2021 07:11:36 -0800 (PST) Date: Thu, 9 Dec 2021 15:11:22 +0000 In-Reply-To: <20211209151123.3759999-1-dbrazdil@google.com> Message-Id: <20211209151123.3759999-2-dbrazdil@google.com> Mime-Version: 1.0 References: <20211209151123.3759999-1-dbrazdil@google.com> X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog Subject: [PATCH v2 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