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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17EF4C433F5 for ; Tue, 4 Jan 2022 10:06:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230474AbiADKGy (ORCPT ); Tue, 4 Jan 2022 05:06:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230459AbiADKGy (ORCPT ); Tue, 4 Jan 2022 05:06:54 -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 C336FC061784 for ; Tue, 4 Jan 2022 02:06:53 -0800 (PST) Received: by mail-wr1-x449.google.com with SMTP id a11-20020adffb8b000000b001a0b0f4afe9so11521694wrr.13 for ; Tue, 04 Jan 2022 02:06:53 -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=00L4fjBN9CnMueIvBXr/BHTQklcJPYrw51nKK4BjyV8=; b=DF3QnWI6CtjMUPDQvyA/BHRgyWGUW0oXigyNj96JLpdS/vkVDuITdag38qnTVeVuyX WUpnWjLnotYBWD3BKwhBe5Mx9KtWv9APZ/YpSwiwVNazPr2B/l+VeSTP2yhZdjSS9AgN B5FfUGwgrpmvtakQUdrl1DFfz3dGQf23VmJUFVGT6G7hKcJ+GzomdczXDZ1J2EYhBmDG p5gK8Dvwtp0mmYAAgDuFg8tgYOxloBWzp5FpckCizId47YPciTY1q/wHRFD6WlqX8Wf1 jLfoWQPIM59JEuom4gEpM2IY5WvGBCaPfg63QyJK9y2keOO0rpOZdJR365PE5JjvgTjW 0jZQ== 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=00L4fjBN9CnMueIvBXr/BHTQklcJPYrw51nKK4BjyV8=; b=jSW4Of7WoVat45utkc2+nLw+ua6Q2Ku607416FNiyUonYtIcsuRVFJwOmK1Shzltmo 0BKphYDtONphSyXcKEMMRNvFmeDrKMiD2jlBSkrPPa7o7Dr46N/MjqL8/98IewLRKqmR UywUxfXjjewiMUytb4QFvkrZsxKU6BVeRdd0TqjShRmwEJ7oV2gxEgIGhSNPWLY72Cnb O3R3NxJuMUf6lJTta7AEuHqs8u+Fa8ChdVWgrpw/VuuyRw5GnBFA4JFZcmYhPfANz+0D vqgTagJ2/Fh8zpJtO7xF/B4Y9zkyamdHfLZqiSEPJzoqVPtSzjsUN+SvzR5azaqK1GEW YbYA== X-Gm-Message-State: AOAM530ZSI+AezmF93rvteXlBXtssGALHPiOoWkaGuslUyTX19iK0PaC LIBDrZR2NhYGcSXVz3659lKiY5q2uoQbZw== X-Google-Smtp-Source: ABdhPJwWBhJbDNAvUK45WPVkaQJAz8/dHwQFAOk1o3Y+GIykjx4B07IXfrkt5/ibxacopkKFee1EtrnwAUqC6g== X-Received: from dbrazdil.lon.corp.google.com ([2a00:79e0:d:209:ab7e:2ff0:8fa0:3029]) (user=dbrazdil job=sendgmr) by 2002:a5d:5310:: with SMTP id e16mr41069510wrv.91.1641290812329; Tue, 04 Jan 2022 02:06:52 -0800 (PST) Date: Tue, 4 Jan 2022 10:06:44 +0000 In-Reply-To: <20220104100645.1810028-1-dbrazdil@google.com> Message-Id: <20220104100645.1810028-2-dbrazdil@google.com> Mime-Version: 1.0 References: <20220104100645.1810028-1-dbrazdil@google.com> X-Mailer: git-send-email 2.34.1.448.ga2b2bfdf31-goog Subject: [PATCH v6 1/2] dt-bindings: reserved-memory: Open Profile for DICE From: David Brazdil To: Greg Kroah-Hartman Cc: Rob Herring , Arnd Bergmann , Frank Rowand , David Brazdil , Will Deacon , Andrew Scull , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DeviceTree bindings for Open Profile for DICE, an open protocol for measured boot. Firmware uses DICE to measure the hardware/software combination and generates Compound Device Identifier (CDI) certificates. These are stored in memory and the buffer is described in the DT as a reserved memory region compatible with 'google,open-dice'. Signed-off-by: David Brazdil --- .../reserved-memory/google,open-dice.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/reserved-memory/google,open-dice.yaml diff --git a/Documentation/devicetree/bindings/reserved-memory/google,open-dice.yaml b/Documentation/devicetree/bindings/reserved-memory/google,open-dice.yaml new file mode 100644 index 000000000000..345c4dc172c0 --- /dev/null +++ b/Documentation/devicetree/bindings/reserved-memory/google,open-dice.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reserved-memory/google,open-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 data + generated by the Open Profile for DICE protocol. + + See https://pigweed.googlesource.com/open-dice/ + +maintainers: + - David Brazdil + +allOf: + - $ref: "reserved-memory.yaml" + +properties: + compatible: + const: google,open-dice + + reg: + description: page-aligned region of memory containing DICE data + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + reserved-memory { + #address-cells = <2>; + #size-cells = <1>; + + dice: dice@12340000 { + compatible = "google,open-dice"; + reg = <0x00 0x12340000 0x2000>; + no-map; + }; + }; -- 2.34.1.448.ga2b2bfdf31-goog