tpm: Add support for new Infineon I2C TPM (SLB 9645 TT 1.2 I2C)
authorPeter Huewe <peter.huewe@infineon.com>
Mon, 4 Mar 2013 14:41:46 +0000 (15:41 +0100)
committerKent Yoder <key@linux.vnet.ibm.com>
Fri, 12 Apr 2013 17:17:28 +0000 (12:17 -0500)
commitc61c86dd6e0a8037be73cf27212f389e46af60a4
tree61714e9263eaf51758f54316effd0814a29eabf1
parenteef8b6291987c059dacb07dd516d4ada0e3362af
tpm: Add support for new Infineon I2C TPM (SLB 9645 TT 1.2 I2C)

This driver adds support for Infineon's new SLB 9645 TT 1.2 I2C TPMs,
which supports clockstretching, combined reads and a bus speed of
up to 400khz. The device also has a new device id.

The driver works now also fine with device trees, so you can
instantiate your device by adding:
 +       tpm {
 +               compatible = "infineon,slb9645tt";
 +               reg = <0x20>;
 +       };
 for SLB 9645 devices or

 +       tpm {
 +               compatible = "infineon,slb9635tt";
 +               reg = <0x20>;
 +       };
 for SLB 9635 devices

to your device tree.
tpm_i2c_infineon is also retained as a compatible id as a fallback to
slb9635 protocol.

The driver was tested on Beaglebone.

Signed-off-by: Peter Huewe <peter.huewe@infineon.com>
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
Documentation/devicetree/bindings/i2c/trivial-devices.txt
drivers/char/tpm/tpm_i2c_infineon.c