Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp14497ybg; Mon, 27 Jul 2020 20:15:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGlx+puduuP+aXuR5AciWFDAuvK58KjhsUnGUsxeVx6Fj95qKvHCDJntYuLgaPBoDSIEsA X-Received: by 2002:a17:906:26c3:: with SMTP id u3mr23148264ejc.483.1595906141349; Mon, 27 Jul 2020 20:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595906141; cv=none; d=google.com; s=arc-20160816; b=W3h1I7UdeHuMzgHia6Q2Dx39kRN5bJgGkjqKAXZectstDl5CNN+9f759xCMcgE92Du SXGUZjV1Dk+q6kYp4MyBWVYB0Uk/6iiW6O5mOPbVMBal586LkDxyia6CvtbRKJ5jeIla Cjd3ajLonddFzl1qSdVALKcKVtH0NYt58aTs+vcFxh4GriGcz6zabe1u/qdCBZDAA3cj IWxGRNJZcOwwi9qwVPBW8ad+dfI8Y0RYIn7qFo6LhyzqQdla3x6OUDl7rYqvSMWq/dYP DJGKMlIqsOv74+W/PPutCNb1GsRZZ6EELd+/Cp+RxCiA8rVhEK++wIqSoDjbadVmmmQn YE6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tqvPFptaXrqNLR/xpVd6gqyLWNSPgfU8K5sYlQ8u1qk=; b=qpQX2+AEtnXE47tGDl5v1nh55YLo0MT+SR9F9WSfiDJA+WehZS73x1P6YTqSEw2Jux 7LihrXcgMXVApJQi9++uzJv7SipDOLld9X/rV91DIWkoFVcPgPlgtA6C8cZijiB7ecsE KgOY2RTgM+olqW7ZsY+4sVvZjP0qt60K7s9wPQRp6c/GS1MRQIOlKCmjGD+RL4SP3NCS BUDwT4dYCldHh+qWXi5+Y4H+YiijPhdH8K3oY67R/7bxFWrl08Fa1SPiZAuX9NrzWH6A FDrhEQM6daJt8faUvgARCt/wr/0MEWatEGT6zhp33bLsCj4c/SDoEoUjLx5mk7kwvo32 YRbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MfTig2D+; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si7339001edw.59.2020.07.27.20.15.15; Mon, 27 Jul 2020 20:15:41 -0700 (PDT) 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=@linaro.org header.s=google header.b=MfTig2D+; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbgG1DPD (ORCPT + 99 others); Mon, 27 Jul 2020 23:15:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbgG1DPC (ORCPT ); Mon, 27 Jul 2020 23:15:02 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48CDBC0619D4 for ; Mon, 27 Jul 2020 20:15:02 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id k1so10742079pjt.5 for ; Mon, 27 Jul 2020 20:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tqvPFptaXrqNLR/xpVd6gqyLWNSPgfU8K5sYlQ8u1qk=; b=MfTig2D+aYwwa+XQpMSjtudJi6GMDOHV1l6mBKV7hAMMghTpxbq478ZNPNMlVsOeWi yLsYPYGtEXOT2mrDzUb6BJx5lUg1V3gn6YdRJKKv1GUHL90KDPfHOfGINlaagEi/0hPC 3llxQQkuycFFeX7edCokUFbc5zSCiBKd6eZAYpIxPbCyYoxtGOgHWataeD38y9F14qGQ TNx3jvz+sVvHBP3oT7jwF69qV4NA0tNRv9f7FZnUTKAJqTgSVNlfLdh+R3poOjPBqXzR 3BtmMml7SQBYhiG/ZFMCZ4nIZ1kIPOjvT/OAUchfyurXVgTWk856aYaZCf0zYEsHaXnv OLxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tqvPFptaXrqNLR/xpVd6gqyLWNSPgfU8K5sYlQ8u1qk=; b=K8lLfB48zCUA/Sa7p5hGpc0E6noq0x58yW70eodtBhsxHWrTAxzdB2PbulLiyEVCSF gwfJcSX/CrPJuY4esti2CSVxCcjM93BKI/FvMbQMQm6GRWvCvNYeO3/D7Zexp4nGTNQX zH+UYpN+MDaHE58hie1L4hUJP+9AZwGepJ/yL7VzkkU+5UiLM8wjquPmP15ihWQ3ac/u zGlB7H336P69HZtQtF4BRqB00qODh1D69ggFvXKgcw8eKrRZ1yVpzVh7ODZQTUb5ckgh yJo+I9Kbew/eZT6LowhTGLCrsnKvr4PsLk35zdqsN+N3wVwEuLCd0BItlmEuwk6kmcHN mujA== X-Gm-Message-State: AOAM5335IkTY83gtAv9lcpg1lFsFspXMoZr63P69gZdELNHR0TRJeUF2 tEkGhu7IbRT7MJ2ZbcWNxRy4x4TBVH3cyA== X-Received: by 2002:a17:902:b18b:: with SMTP id s11mr21796119plr.152.1595906101384; Mon, 27 Jul 2020 20:15:01 -0700 (PDT) Received: from debian.flets-east.jp ([2400:2411:502:a100:c84b:19e2:9b53:48bb]) by smtp.gmail.com with ESMTPSA id s10sm3895285pjf.3.2020.07.27.20.14.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2020 20:15:00 -0700 (PDT) From: Masahisa Kojima To: linux-kernel@vger.kernel.org Cc: masahisa.kojima@linaro.org, jarkko.sakkinen@linux.intel.com, linux-arm-kernel@lists.infradead.org, ardb@kernel.org, devicetree@vger.kernel.org, linux-integrity@vger.kernel.org, peterhuewe@gmx.de, jgg@ziepe.ca Subject: [PATCH v5 0/2] synquacer: add TPM support Date: Tue, 28 Jul 2020 12:14:30 +0900 Message-Id: <20200728031433.3370-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds support for driving the TPM on Socionext SynQuacer platform using the driver for a memory mapped TIS frame. v5: - modify multi-line comment style - remove MODULE_AUTHOR() and MODULE_VERSION() v4: - add ACPI support - modify function and structure name v3: - prepare new module to handle TPM MMIO access on SynQuacer platform v2: - don't use read/write_bytes() to implement read/write16/32 since that uses the wrong address Cc: jarkko.sakkinen@linux.intel.com Cc: linux-arm-kernel@lists.infradead.org Cc: ardb@kernel.org Cc: devicetree@vger.kernel.org Cc: linux-integrity@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: peterhuewe@gmx.de Cc: jgg@ziepe.ca Masahisa Kojima (2): tpm: tis: add support for MMIO TPM on SynQuacer dt-bindings: Add SynQucer TPM MMIO as a trivial device .../devicetree/bindings/trivial-devices.yaml | 2 + drivers/char/tpm/Kconfig | 12 + drivers/char/tpm/Makefile | 1 + drivers/char/tpm/tpm_tis_synquacer.c | 208 ++++++++++++++++++ 4 files changed, 223 insertions(+) create mode 100644 drivers/char/tpm/tpm_tis_synquacer.c -- 2.20.1