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 3ED26C433EF for ; Tue, 21 Dec 2021 17:45:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240539AbhLURpN (ORCPT ); Tue, 21 Dec 2021 12:45:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240520AbhLURpL (ORCPT ); Tue, 21 Dec 2021 12:45:11 -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 DCC60C061401 for ; Tue, 21 Dec 2021 09:45:10 -0800 (PST) Received: by mail-wr1-x44a.google.com with SMTP id c16-20020adfa310000000b001a2349890e1so4868978wrb.0 for ; Tue, 21 Dec 2021 09:45:10 -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=GBX6o8PT3cDypz2UTxN3boihF62cGYEjjRBobjP1LbI=; b=conSzMLG2l93WHXP1wmmwDRCeQ9i9szVA0khLRuH0ZTbSM2nqQAKEVV98v5UaFpCVT DXCla6Pod/leB0gmM6Vffug6X76i7U3L69KPGAwOdp7936dRrNAyxg+Sm1ft2OtbgwZV NUyvviqAKTSZt0jScglrv4LlOyNwAyG7S4rQQSJrfuTRFXiYPe7vf5S7tfQzOK6MONw+ x+/NFMoXe+FuHFBNNA/aMFouI/fy9xBnJcp8j6joDu233AtzvDAWHfcZ/IdVQqzs6UpR Zp4+NgHHFGo/tgDTg/DcpJKZVpyOk+pmTgUNilVwTNcScWF7XWj4gqHLfCtYgcfZAX4D BTcQ== 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=GBX6o8PT3cDypz2UTxN3boihF62cGYEjjRBobjP1LbI=; b=O2pITjtfSNW5XCJlHjyF1J6NQKWhoREaiB/o6xEG+WO+HsmDuM7TsD/c0uJRJ5HL/y Vw2yZv7eLbiHxoYgUG5rC37RaQ97R1ZcW1n8aOV6NqL0Sek+6BADjQ9m+DHdcbajqwdz sGtIj+doTs4Ib7ivrdFm58wttxQy9x7I/Zo5cbVoWqMrCz0+WRRPkQ/g1jkQNA0aB35E hobGozLxbIef41j/zBh2C3fy6NTDeBxjTMRFogRa8e2+Z1sbk3Ldom26IjA/213yL0/c XJCohbs6t8EH6kP+7y5Hnz2VPqVzS9j5DUG1PH9Bxmxa2askEREUpsdrD9fhAnUMUF0G Wbbw== X-Gm-Message-State: AOAM530oDl9LcjI8Tf/le/0iPIKOUF06vLd8t26wMJ5bGA3I5698i7+F wppFsM8fYDcUSLEHQ5EOPGUy8LAKEHxwUA== X-Google-Smtp-Source: ABdhPJyDtnWk1/Ufquacy0NQHQNb/PnRdIBQJZ/U+bv7OAvcJJR+E0E9PN2cGod8SPZComv2XnRGlzzLG/MNdw== X-Received: from dbrazdil.lon.corp.google.com ([2a00:79e0:d:209:4a23:42ad:dc71:62e9]) (user=dbrazdil job=sendgmr) by 2002:adf:fb06:: with SMTP id c6mr3410761wrr.625.1640108709467; Tue, 21 Dec 2021 09:45:09 -0800 (PST) Date: Tue, 21 Dec 2021 17:45:01 +0000 In-Reply-To: <20211221174502.63891-1-dbrazdil@google.com> Message-Id: <20211221174502.63891-2-dbrazdil@google.com> Mime-Version: 1.0 References: <20211221174502.63891-1-dbrazdil@google.com> X-Mailer: git-send-email 2.34.1.307.g9b7440fafd-goog Subject: [PATCH v5 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: linux-kernel@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..7bc714e9715f --- /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 + +additionalProperties: true + +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.307.g9b7440fafd-goog