diff mbox series

[7/7] tpm_tis_i2c: Add old compatible strings back

Message ID 20220808220839.1006341-8-peter@pjd.dev
State New
Headers show
Series tpm: Pull tpm_tis_phy_ops and tpm_tis_i2c updates | expand

Commit Message

Peter Delevoryas Aug. 8, 2022, 10:08 p.m. UTC
The old version of this driver from Nuvoton included different
compatible strings, which are in-use by a few dts's.

$ egrep -r "npct75x|tpm-tis-i2c" arch/arm
arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts:           compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c";
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts:           compatible = "nuvoton,npct75x";
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts:            compatible = "tcg,tpm-tis-i2c";

Signed-off-by: Peter Delevoryas <peter@pjd.dev>
---
 drivers/char/tpm/tpm_tis_i2c.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_i2c.c
index ba0911b1d1ff..a2ae2eafed6d 100644
--- a/drivers/char/tpm/tpm_tis_i2c.c
+++ b/drivers/char/tpm/tpm_tis_i2c.c
@@ -369,6 +369,8 @@  MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id);
 #ifdef CONFIG_OF
 static const struct of_device_id of_tis_i2c_match[] = {
 	{ .compatible = "infineon,slb9673", },
+	{ .compatible = "nuvoton,npct75x", },
+	{ .compatible = "tcg,tpm-tis-i2c", },
 	{}
 };
 MODULE_DEVICE_TABLE(of, of_tis_i2c_match);