Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5694774pxb; Wed, 26 Jan 2022 19:05:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIBhwNZR2mLNZc2fyC8hHfJyF/oCcDccK2QMOgcvl+Ll9tv2L1TWwheW4+yn0ohBRdRpCX X-Received: by 2002:a17:907:2ce5:: with SMTP id hz5mr1429525ejc.480.1643252755581; Wed, 26 Jan 2022 19:05:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643252755; cv=none; d=google.com; s=arc-20160816; b=h5xQQqjlmx3FFRrVUHvapF+4JiqN21S67NO8IiMtVFqqPGNW9RDuBo+UnJg/I0kCuM BK5v0bmGzthMggx4IzZXtO3bDOGL+VIeANUIx2zHMO6z4wWQTi7u3/HWSyNX2MhHEsxD zV5RrbRlmPl47n2Ts/qCfjuoj1/dpiE9SWcxCUOucbFZXYGbLdl+qK/SCYNfasyV4L2f Ti7cJYv21mjIUnCWjK8ZVUH7N732JdjxD8BSL2CULI0FiUlpfQm513Po9ZOQxRN2WOl2 YchF0UQiCdNlw7davaDTf5QdczkT8Npac8P5Mrj8ygOD2Ca4Ek9OrTsuwOCrNIizBGva p86w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=sw/3yITQaa2AI87O7smfBOiWG12oWUzPV7X0KBcd7nk=; b=Unep74BquUAtab9BzQc2uxGOYAUqPY741iCrSydeoqfIgdEL2GqIx0LUXdyHSCEynt pKhIlInIj+WXT0461Jk53CwqS+vIQ8stdtf0msNsAx60/ES0EfE5v2L/GCiJR84b22s6 rBdvpmy+lfNp1lG2LySwDD6V2seY6fEppw2goVHEmuH9Gu+K1WNS3EN3sWR5EfrZFV/O MoiTDnc4/r94l6SYpWHAgcwAH5Cw0Cbq0Ez1y5ZxUTu9HB6tqkL+PD+hi/A9eghGc6/d ssK/BRZ4VgRgpU8bfZ4XK3SphiisagBWaHT1RpJoYORLr6gqS7loQ9aSKreFbJTUbzGj t8NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=BUsie+AX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp16si830609ejc.522.2022.01.26.19.05.31; Wed, 26 Jan 2022 19:05:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=BUsie+AX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233132AbiAZXM4 (ORCPT + 99 others); Wed, 26 Jan 2022 18:12:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233121AbiAZXMz (ORCPT ); Wed, 26 Jan 2022 18:12:55 -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 8472BC061748 for ; Wed, 26 Jan 2022 15:12:54 -0800 (PST) Received: by mail-wm1-x34a.google.com with SMTP id f7-20020a1cc907000000b0034b63f314ccso604425wmb.6 for ; Wed, 26 Jan 2022 15:12:54 -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=sw/3yITQaa2AI87O7smfBOiWG12oWUzPV7X0KBcd7nk=; b=BUsie+AXwt7AWpY9TnHNZeIiyXHyQbqfkwIHzGrhFTBME5i3WqC4AhEpN0QrKhePz8 oN5+d4TWoIM3pQGBs/WOxhmKn2QTVg9Bbv/jydyhatTZjl4+MGJXuSgg/pNKVkmV68WZ 5ykuX/mWFbFHFihLfpWCXDJzP9MydnZ6miL5YZlDPdS+/72FCFW8vTe20igyekIvcPv1 AdGW2iETcQk0g6BF9vzbW9fQFNI+Bxg4c7ct+vUJFN0ekMZpuQTWdS8xcNuLaLCF6351 Ut1CGYowO16eiz/1jpVIQar4AhFStMKjG/FBSbAsA0ClSmFlH0i7HBmTjuxJxhcKHnjC qx4A== 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=sw/3yITQaa2AI87O7smfBOiWG12oWUzPV7X0KBcd7nk=; b=uH1/g5WVnBBPBGBd7xnovSY55c0VTu+xHXl4RjdVxNRjok5bpuzYLbLMtbmG6+I0Dh IO7dvVal2wlKIc2ZY2bhzrXoga3H1PJr0fjNPTYT/o+jYXk2xLztlPkvSJ1k4PMiCzWk OyoaWtH4iCx8wI54jR9u53m4Sl1lbOcpFiVMzrKFO6dGeaVw/UA9UI5yQO7ng19yeTID 1TQjQTYTJSHX7YgYdPuH7K1rae4GRPrjOkJBFGwXuXBzMBVrg4/G7sAIotyxY20kGFty CBdraUOb1CWWoTnYawfatNhDYAj4ete7Haj5g5cKmfdE4zejGorrnG5zJ5nD3DkHv9fd doBg== X-Gm-Message-State: AOAM531HM1b3rY54FamZPCCHDx9leSjJykxHoJozfb2Wi+aMnTybKB1e yX58KofcfE15A6w9DRmgZnTn43rdQh0Fag== X-Received: from dbrazdil.lon.corp.google.com ([2a00:79e0:d:209:bd2e:4d3b:b065:fa46]) (user=dbrazdil job=sendgmr) by 2002:a1c:a5d2:: with SMTP id o201mr809207wme.82.1643238773138; Wed, 26 Jan 2022 15:12:53 -0800 (PST) Date: Wed, 26 Jan 2022 23:12:36 +0000 In-Reply-To: <20220126231237.529308-1-dbrazdil@google.com> Message-Id: <20220126231237.529308-2-dbrazdil@google.com> Mime-Version: 1.0 References: <20220126231237.529308-1-dbrazdil@google.com> X-Mailer: git-send-email 2.35.0.rc0.227.g00780c9af4-goog Subject: [PATCH v7 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 , Wedson Almeida Filho , 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'. 'no-map' is required to ensure the memory region is never treated by the kernel as system memory. Signed-off-by: David Brazdil --- .../reserved-memory/google,open-dice.yaml | 46 +++++++++++++++++++ 1 file changed, 46 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..257a0b51994a --- /dev/null +++ b/Documentation/devicetree/bindings/reserved-memory/google,open-dice.yaml @@ -0,0 +1,46 @@ +# 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 + - no-map + +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.35.0.rc0.227.g00780c9af4-goog