Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4238901yba; Tue, 9 Apr 2019 14:20:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzu1NcFvZRkUF2kYif2nQG23DfBCN353Z1PVmuufkc5UVQ0ntzkAdMkqe2cN2+dvG4hN2Av X-Received: by 2002:a17:902:a9c7:: with SMTP id b7mr37912317plr.145.1554844800615; Tue, 09 Apr 2019 14:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554844800; cv=none; d=google.com; s=arc-20160816; b=dGuh58cYBlbPKDCeK+uujiFpZc9MiYSrVsTCakaAi+3Rp9au0NbEmHZ/uIQy6eIWfB jIVrmWpg4gFrC5oxBD1hhNMcLo5GRnWM4uV/GLqaov36spZNedEU2DHEsJlnzfHcQcKN QPkDIe5FAbSAknKJG2tbk+sIOESt5zj6C5IHIx+XxbDHGnQTzd13u42Ll5NaUJDTHvkc FOXNC0AR8p5bxJL0jFdJBJmM3Y93UNFwFM7z7H+0DrHlW9LehA3DJLrtg3Cql50tcmNe /pp6/jfYfkKyo0K7sEmsCAfFZC7ywRe+TtTcHuly9/rhga6Rae6Z04JZ6bmAtwnwg4Rz Tr2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=xrR2v4UtuGmaZCo8u7YSFkgvR7Q0LHQavzqve85CA/I=; b=uvxCRFgKTf1Sj3HVFChrCJH+kDK97UptRXRve5zmNanlnejSu4b/khiveIt79B7U1o knFasa0iI7LLBGQ02vYlVjEGllvbzFKsO7XVMx8lsxJ9EycHyOkR+yKwZGka9kXjY6EB ThrLLZWMlR88wwzLsFHSlg6Op/Itynqsl57VxlaQRTvv2dOLaXp0YruT1K/jdv61Mh6e dN4lLRy8R9WiLu1IoZmnWfPIDUNZTln7oLUUece0ilF8MxVrSL/OoQxWo1lRyG5L/XMb CgHUVFBjsT0v53FaogN8+MCE/7TIYJdW3v/tdYGcQdQhZ72Md1n9WBSi3bpuXvYXOQE3 nmbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UpSdosAP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si14396918plk.328.2019.04.09.14.19.45; Tue, 09 Apr 2019 14:20:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UpSdosAP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726699AbfDIVSm (ORCPT + 99 others); Tue, 9 Apr 2019 17:18:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:45978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbfDIVSm (ORCPT ); Tue, 9 Apr 2019 17:18:42 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5A4262147C; Tue, 9 Apr 2019 21:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554844721; bh=kDgcG+mcudGYXegJqDdhMmoYMnIgAotj8rLme63ftCc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UpSdosAPXodQuGjD+VpcX4rNodPEVLJ1K3jGeT8ZJHy8OFAWsZKPBBmq/1KDBe7sj xSIhgHDRtsdv73i9Tf8GEzOfcjYC1wEvU7vpipaWU7L8iQIAgC/iIDcKEQqvQTbgDk utvhNJCzpDLSSjLsOhq3EK3IuazbQSBumOhWZ734= Received: by mail-qk1-f179.google.com with SMTP id w20so11233624qka.7; Tue, 09 Apr 2019 14:18:41 -0700 (PDT) X-Gm-Message-State: APjAAAXq0UtWJ06hOrXqZ+6i+IkGebC+YMJfMr8zCDhu3oJCqZihSnMp Yk+SOsDMa20D9+pDdKeeGzI26laVL7H78e/RJA== X-Received: by 2002:ae9:e313:: with SMTP id v19mr28457559qkf.153.1554844720564; Tue, 09 Apr 2019 14:18:40 -0700 (PDT) MIME-Version: 1.0 References: <20190409184958.7476-1-sashal@kernel.org> <20190409184958.7476-2-sashal@kernel.org> In-Reply-To: <20190409184958.7476-2-sashal@kernel.org> From: Rob Herring Date: Tue, 9 Apr 2019 16:18:29 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/3] ftpm: dt-binding: add dts documentation for fTPM driver To: Sasha Levin Cc: Peter Huewe , Jarkko Sakkinen , jgg@ziepe.ca, Mark Rutland , Jonathan Corbet , Arnd Bergmann , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , Linux Doc Mailing List , linux-integrity@vger.kernel.org, linux-kernel@microsoft.com, thiruan@microsoft.com, bryankel@microsoft.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 9, 2019 at 1:50 PM Sasha Levin wrote: > > The parameters are similar to the ones used by IBM's vTPM and the > various I2C tpm drivers. Bindings describe h/w (or firmware interfaces in this case), not drivers. > > Signed-off-by: Sasha Levin > --- > .../bindings/security/tpm/tpm_ftpm_tee.txt | 13 +++++++++++++ > .../devicetree/bindings/vendor-prefixes.txt | 1 + > 2 files changed, 14 insertions(+) > create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm_ftpm_tee.txt > > diff --git a/Documentation/devicetree/bindings/security/tpm/tpm_ftpm_tee.txt b/Documentation/devicetree/bindings/security/tpm/tpm_ftpm_tee.txt > new file mode 100644 > index 000000000000..20fca67a56c4 > --- /dev/null > +++ b/Documentation/devicetree/bindings/security/tpm/tpm_ftpm_tee.txt > @@ -0,0 +1,13 @@ > +Required properties: > +- compatible: should be "microsoft,ftpm" > +- linux,sml-base: 64-bit base address of the reserved memory allocated > + for the firmware event log > +- linux,sml-size: size of the memory allocated for the firmware event log Firmware is defining linux specific properties? What if I want to run BSD? We should use 'reg' here instead. What memory is used here? This should be under /reserved-memory if it is part of "main" memory. Really, I'd prefer to not see this in DT at all. Make the firmware discoverable. Why repeat the mistakes of non-discoverable h/w in s/w interfaces? OP-Tee at least has defined a mechanism to enumerate TEE functions IIRC. Rob