From patchwork Thu Dec 9 15:11:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Brazdil X-Patchwork-Id: 1565800 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=OBetiTf5; 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 4J8yDY6M7yz9s5P for ; Fri, 10 Dec 2021 02:11:41 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234794AbhLIPPN (ORCPT ); Thu, 9 Dec 2021 10:15:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234713AbhLIPPL (ORCPT ); Thu, 9 Dec 2021 10:15:11 -0500 Received: from mail-wm1-x34a.google.com (mail-wm1-x34a.google.com [IPv6:2a00:1450:4864:20::34a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0367C061353 for ; Thu, 9 Dec 2021 07:11:37 -0800 (PST) Received: by mail-wm1-x34a.google.com with SMTP id n41-20020a05600c502900b003335ab97f41so2614354wmr.3 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=kK+Wwt2tWN3bZzJlX5zcm995YP3E6BoBFgopn1q8wXVZIYfOIKUhF1q0QdnwzQA/Od E2F5nCdmdH38vnC2eZ/bzX5VtFgYmaazOlmgu8h243aFXjkoSAWGIE5vmLJMWjkv/0lI hqvlZWdWiOWON7Kc15qSBDCminaUT9EpJOhhLxvgat7rkzT1cZE31CbjLMgQZU6NSBuP +VoC8EM60eRUTQtWL2tb5tQvF/Qr625GueQdgCWGn+XbWsm3JXuArH+1tR/Bk/etne4I zhqF4UY5o/OLQjXb1LwMWfNKJSAKeDbpIokn/F6OVys2Id5D9IAmJEu7OgNS0lM4FDWv jX2A== X-Gm-Message-State: AOAM5314SI5xpq/tUFc9VnIuEMjX13xQAfA/UPmtRQt+rqSyTWfJ8zpk BAnTOM4hDup3eQoZcKSYihzlablhpBrqnw== 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 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>; + };