Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1817630ybh; Fri, 17 Jul 2020 01:50:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAC4vGmcd2pzlNhwB7AdSM4lUARDEewfpPaJGetpVtUq6wDJCC5yuW0OjpIiJza0OENZ3v X-Received: by 2002:a17:906:f183:: with SMTP id gs3mr7203371ejb.361.1594975842603; Fri, 17 Jul 2020 01:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594975842; cv=none; d=google.com; s=arc-20160816; b=VvyNZuCKncDylnzoIPh1P6hFXNQ7al5tEBl/T1f/E0KNc+I5JyuBiYAONM5+Ada+3u MQ4HdXKFQI5qGhuxDTUtcrY4yaE7qeNdeSGwYZj1AWVaF6JEYtWUNkG8Q6aN1oby0acb I21O0tDYCiLG8PUtxBxMLPIHKB2V4Dc5FMo4kL72xeoKb4inJojes9fcgiV611pRfIKT aDCe201nKcquWrvjCV90QQnUGtlyLnl8vSLRD48NfgQmFb1e+9uddAjNq8dPlL2DXNxy m+5InuNT4ijy8X3oYKdzZjpnbedLSzqRR8zIY3kq433UBCbsNm++FqnH7SiVGZf0/Tz0 ux1g== 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=A9UVMNFESMGpOpcnnufcmxXWknzXQECyO14zJdWyPEs=; b=ToDfe2KRom1agYyh+o9JfhKV9WsKwL+0Caulv0/6vfaDNhUOc76DTQQ92IJKAICAhm RHK+olZ91hFRid6+NadrrW4dj5M7Pe7OzIE0wnNwM5CkQ8IwqCIGvy5zGkP1F7Bk93me On60xryLoaEOxE18JtNRoUW0TkqcLUmG8K+RhAv7jUE+4iJtTNaKim4Hb8irBPrCRrcM aPZqW3ffAyzqoOY9315EJNzUckdmAsJII5mH3JTeRGWvu0gflgyuJakjQDu7/1qtPXh/ K7F9wSnJiXrrButlVwvitIoi8UEOSbolA2SfHosWkxRd0Fw9ualDoeHhDmlZTv81Y7TK h27Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oGj7xL9T; 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 y18si4528342edw.583.2020.07.17.01.50.19; Fri, 17 Jul 2020 01:50:42 -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=oGj7xL9T; 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 S1725932AbgGQIuN (ORCPT + 99 others); Fri, 17 Jul 2020 04:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725950AbgGQIuM (ORCPT ); Fri, 17 Jul 2020 04:50:12 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE595C08C5CE for ; Fri, 17 Jul 2020 01:50:11 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id k5so5167651plk.13 for ; Fri, 17 Jul 2020 01:50:11 -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=A9UVMNFESMGpOpcnnufcmxXWknzXQECyO14zJdWyPEs=; b=oGj7xL9T8DZ4pmVR0GplUhLo+kN4Azi9Zel5uh0iTvBae012kqBudaORY1a8+u1e6C 62atl462gdFJpnZQyqYjiqAgGhPqaHUXDjxLKDHlLFq8h/3sGNUfdXbUekii0Ph8OXgO vTb9pezAyP2d+y1m1/fcO0Mxq+iPnFVEHmDKN5dDdvmfRoE8avFPmBXDYAn9tpWZZrnG b7NW4t74h8ljI0q1dPNDXqDIf4RUPIzPCBLP9Cd6BBDickHNQdEue8bv6o3EzHR7FuwA g2CqkXtrhIGe8AFOT/dxaBmLegZvHLhucTaDyYWD8sRx3kvF44ImCKl0+Z2B5zHeQRdr 20vg== 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=A9UVMNFESMGpOpcnnufcmxXWknzXQECyO14zJdWyPEs=; b=hlONqb1gb7dfcIuDwUzLGzS8YeHn0bxJsIGUMfXP6pEUaxv9yNiR27eT7B5ogCEd5N suDLbkc7HdkSHnYGL+LzJP+FjXyfvQ8EuXIXT8Kjr9WlmdIWaVJN0A1uqN36wr390irR ZBmV1UPkMoUwgTmZ1yASyNINYZrQbITFCI+hk++hWXtY22eFPkaXzwAa5GQ5tErrSiFz aatH1pBBQjaqXQjkI5nSchVz47OO6wWuw0kKsJj6Yv5Zt1+pXKyd8KhvsjhPZ/SWx5QG jPMlQaylY+eSeXvAGOxA87PwOeC+s6iBZVmwir1muab6vTh9PZIO8EK9Lw3DbIaB92L+ 4Fxg== X-Gm-Message-State: AOAM533TJ61JpGsxnDE4ihACk45AQ/DKJa8ux3bjacOy22/NMDcarcxp gAWRN3Xm3mQnZJlbr7sCwVEbJRtS2p794A== X-Received: by 2002:a17:902:ed02:: with SMTP id b2mr7002360pld.121.1594975810790; Fri, 17 Jul 2020 01:50:10 -0700 (PDT) Received: from debian.flets-east.jp ([2400:2411:502:a100:c84b:19e2:9b53:48bb]) by smtp.gmail.com with ESMTPSA id f207sm7309364pfa.107.2020.07.17.01.50.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jul 2020 01:50:09 -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 v4 0/2] synquacer: add TPM support Date: Fri, 17 Jul 2020 17:49:30 +0900 Message-Id: <20200717084932.3449-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. 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 | 209 ++++++++++++++++++ 4 files changed, 224 insertions(+) create mode 100644 drivers/char/tpm/tpm_tis_synquacer.c -- 2.20.1