Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp547712ybt; Wed, 8 Jul 2020 06:16:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXg7pkxKgzfcWwjt3yr7fPFmvvvKZ0m9JbqrcRVb2d55brlmEiNW2N8deZzW6VgOCZYzKC X-Received: by 2002:a17:906:33c5:: with SMTP id w5mr51221139eja.275.1594214215853; Wed, 08 Jul 2020 06:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594214215; cv=none; d=google.com; s=arc-20160816; b=uuzNtn5bX1nxWgeWk+JUU5aYBIjKvbfm8aU/a0VZ6M5iQMEu6oIUeqliI2v8+Wvbfe Nmd2rVIOrAd1DCjZSoN/hoGK4PuWLYbjjNcZuwI8w5X14UWGzKZxmTtqIE2AXTr2UGil A5tSnD7W3zP3eAI+HHn37KvVfOQEYxA17gexGNOREemEabHyyMEciydZL+SxRhIf9kGh qhvLuCC7ipPCY6xYSj0SekJkwN0qopNz2he++mTkrGsN68JMrK4hG2+9Gfc/ozK6nVG8 uCkcniAW3sVGKyjzxSRMA6xz2vWKnRXuhueJ6VD1xsF+sO29goOQxl4zu7vJ7GZIssd9 zUEA== 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=tD3yXXYrZBDZiaasLSPTnCbaqXGiYzdMQ85B623c77c=; b=zfXmmlKwWo3HB/bjwWuRxAbpr0lOSmGH2dvaejqc5e1DtTe4fIQXb69gAbD6dP0FMH rXqYTSqKztzjmNLVhhv/8qaW7T9F2Iw8maSpcRvH5iWdsjQrxYEVmMHrywC7WlPyvKDW MFhL9pleO/EeFlAFQTVgzRnUr2S7XdA6jsrsRXj4STeaj8Amp5LuP/II9Wv37PdyqxoC p4Gjx3WS4WE8gqCFz9AJUHmsqlIp2UV+GwtDITzQHV2gLdVdvX/lGACYKHMio7yBlOPO JKVjf8uOwHMA3Kfg9AhkBAl3lGqVywhuxLFRXYishWfP6uYv0mWbKxFXvWmFUj/injW0 3hWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wFobAKv2; 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 j23si17257405edy.251.2020.07.08.06.16.32; Wed, 08 Jul 2020 06:16:55 -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=wFobAKv2; 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 S1729417AbgGHNPS (ORCPT + 99 others); Wed, 8 Jul 2020 09:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729413AbgGHNPR (ORCPT ); Wed, 8 Jul 2020 09:15:17 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FB17C08C5DC for ; Wed, 8 Jul 2020 06:15:17 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id m22so11290596pgv.9 for ; Wed, 08 Jul 2020 06:15:17 -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=tD3yXXYrZBDZiaasLSPTnCbaqXGiYzdMQ85B623c77c=; b=wFobAKv2fT2uz6kMUx+BoKMuaaC9GeYTNAITsfnBxD5OxcSBP3lSHFma1Zj7S0Hdzr UUfRWmQoQYcTB+hsGTrWsU7I+y7638a6nsTQxMtdVFFK1fsPNBN4krGRdeNuVulwjRuE OHNZXEtwipyidnhcJ51Xupi8Ta3PdZge9j4fXhYfEGRlpbozVbKy4fLvRcM7c/5WDLxc 8LHaU2GnOISiSLqyWjApu1HNN1Ihr1TwYya3zOyWRA8K6Kzcj/50ETqgNKPF1WOnEjq1 /cJIyv6FvWucuNoq9NdtrX1yw4kjqa8vVNA5QBznOK7B11GyvBusp73UOk6uurZbLq8K KXig== 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=tD3yXXYrZBDZiaasLSPTnCbaqXGiYzdMQ85B623c77c=; b=hjvmimHHcsw7EbBZwJMzOHPcBJ8fGaQ+z9QRIAEKPcpL3jXC2hD2PPcUFXIjAedO/b QFYXqgyvdllqTxICyYN4zjaW1Pxf/hg0CLCY5eB9El+td3BysJV/PWjzKH+71446wIMs ZDzPFNgK1zpE8qA2AWiHLGWAzFeoSGNk/cCHnqy1N4CvdirFena6ql1wTsZkWNJhGwjC lvj7HFR4pQIGeSFb2Vn2o8hFDhzlALSimak+vus6PXyJzk56z4HgrCOddrhuKiLCAdUm mJlhjBG/0ZY2dl4XHc/Zfuy4vmSL44sW9JBY9Iui9mtPmFXtwASveQsrFIkCuRT4MiPs Qb0A== X-Gm-Message-State: AOAM5303fHb2nggDdoMdTminWOOr+79IhszsTzMCx1OZGG9sX3pWcC3e vqF53HGnE9mnYfcPxwz/T7EzlDilMFov+Q== X-Received: by 2002:a65:5649:: with SMTP id m9mr48046978pgs.279.1594214116713; Wed, 08 Jul 2020 06:15:16 -0700 (PDT) Received: from debian.flets-east.jp ([2400:2411:502:a100:c84b:19e2:9b53:48bb]) by smtp.gmail.com with ESMTPSA id y63sm4096366pgb.49.2020.07.08.06.15.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2020 06:15:15 -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 v3 0/2] synquacer: add TPM support Date: Wed, 8 Jul 2020 22:14:22 +0900 Message-Id: <20200708131424.18729-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. 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 | 196 ++++++++++++++++++ 4 files changed, 211 insertions(+) create mode 100644 drivers/char/tpm/tpm_tis_synquacer.c -- 2.20.1