tpm: tsi-i2c: Add compatible strings
Subsystems (3)
v2 cover tpm: tsi-i2c: Add compatible strings
v2 removes the string from trivial devices and changes some of the strings in the bindings.
Joel Stanley (2):
dt-bindings: trivial-devices: Remove Infineon SLB9673 TPM
tpm: tis-i2c: Add more compatible strings
Johannes Holland (1):
dt-bindings: tpm: Add schema for TIS I2C devices
drivers/char/tpm/tpm_tis_i2c.c | 2 + .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml
Signature · 1 line
2.35.1
PATCH v2 1/3 dt-bindings: trivial-devices: Remove Infineon SLB9673 TPM
This reverts commit 2353673d8a025a6ba3b3aa3917a3a98944e64702.
It will be added to its own bindings document.
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 -- 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/trivial-devices.yaml +0 -2
@@ -139,8 +139,6 @@ properties: - infineon,slb9635tt # Infineon SLB9645 I2C TPM (new protocol, max 400khz) - infineon,slb9645tt - # Infineon SLB9673 I2C TPM 2.0 - - infineon,slb9673 # Infineon TLV493D-A1B6 I2C 3D Magnetic Sensor - infineon,tlv493d-a1b6 # Infineon Multi-phase Digital VR Controller xdpe11280
Signature · 1 line
2.35.1
Re: [PATCH v2 1/3] dt-bindings: trivial-devices: Remove Infineon SLB9673 TPM
Quoted 9 lines · Joel Stanley
This reverts commit
2353673d8a025a6ba3b3aa3917a3a98944e64702.It will be added to its own bindings document.
Signed-off-by Joel Stanley <[email protected]>--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 -- 1 file changed, 2 deletions(-)
PATCH v2 2/3 dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Joel StanleyFrom: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings for the generic I2C physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.
This includes descriptions for the Nuvoton and Infineon devices.
---
v2: String changes
--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +50 -0
@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM Devices + +maintainers: + - Johannes Holland <[email protected]> + +description: + Device Tree Bindings for I2C based Trusted Platform Module (TPM). + +properties: + $nodename: + pattern: "^tpm(@[0-9a-f]+)?$" + + compatible: + oneOf: + - description: Infineon's Trusted Platform Module (TPM) (SLB9673). + items: + - const: infineon,slb9673 + - const: tcg,tpm-tis-i2c + - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). + items: + - const: nuvoton,npct75x + - const: tcg,tpm-tis-i2c + - const: tcg,tpm-tis-i2c + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tpm@2e { + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; + reg = <0x2e>; + }; + }; +...
Signature · 1 line
2.35.1
Re: [PATCH v2 2/3] dt-bindings: tpm: Add schema for TIS I2C devices
Quoted 8 lines · Joel Stanley
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings for the generic I2C physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.
This includes descriptions for the Nuvoton and Infineon devices.
Quoted 9 lines
Signed-off-by Johannes Holland <[email protected]>Signed-off-by Joel Stanley <[email protected]>---
v2: String changes--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml
PATCH v2 3/3 tpm: tis-i2c: Add more compatible strings
In reply to Joel StanleyThe NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/char/tpm/tpm_tis_i2c.c +2 -0
@@ -368,6 +368,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);
Signature · 1 line
2.35.1
Rob Herring
maintainerRe: [PATCH v2 3/3] tpm: tis-i2c: Add more compatible strings
Quoted 16 lines · Joel Stanley
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
Signed-off-by Joel Stanley <[email protected]>--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)drivers/char/tpm/tpm_tis_i2c.c +0
-0
drivers/char/tpm/tpm_tis_i2c.c MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id); · line 372
Quoted 5 lines
drivers/char/tpm/tpm_tis_i2c.c +2
-0@@ -368,6 +368,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", },
If there is not currently any distinction that the kernel makes, you only need to add "tcg,tpm-tis-i2c".
Quoted 7 lines
drivers/char/tpm/tpm_tis_i2c.c +0
-0{} };MODULE_DEVICE_TABLE (of, of_tis_i2c_match);Signature · 1 line
2.35.1
Re: [PATCH v2 3/3] tpm: tis-i2c: Add more compatible strings
Quoted 13 lines · Rob Herring
Quoted 11 lines · Joel Stanley
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
Signed-off-by Joel Stanley <[email protected]>--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 13 lines
drivers/char/tpm/tpm_tis_i2c.c MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id); · line 372
Quoted 10 lines
drivers/char/tpm/tpm_tis_i2c.c +2
-0@@ -368,6 +368,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", },If there is not currently any distinction that the kernel makes, you only need to add "tcg,tpm-tis-i2c".
There are device trees that just have one or the other, so it makes sense to list both.
Quoted 8 lines
Quoted 8 lines
drivers/char/tpm/tpm_tis_i2c.c +0
-1{} };MODULE_DEVICE_TABLE (of, of_tis_i2c_match); --2.35.1
Re: [PATCH v2 3/3] tpm: tis-i2c: Add more compatible strings
In reply to Joel StanleyQuoted 27 lines · Joel Stanley
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
Signed-off-by Joel Stanley <[email protected]>--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)drivers/char/tpm/tpm_tis_i2c.c +2
-0@@ -368,6 +368,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);Signature · 1 line
2.35.1
IMHO could be picked to the same tree with DT changes instead of my tree.
BR, Jarkko
Re: [PATCH v2 3/3] tpm: tis-i2c: Add more compatible strings
Quoted 32 lines · Jarkko Sakkinen
Quoted 25 lines · Joel Stanley
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
Signed-off-by Joel Stanley <[email protected]>--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)drivers/char/tpm/tpm_tis_i2c.c +2
-1@@ -368,6 +368,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); --Quoted 2 lines
2.35.1
Acked-by Jarkko Sakkinen <[email protected]>
Quoted 2 lines
IMHO could be picked to the same tree with DT changes instead of my tree.
It's supposed to be the other way around. DT bindings go with drivers via subsystem tree. I don't take drivers.
But it seems this first needs some coordination with this[1] series.
Rob
Jarkko Sakkinen
maintainerRe: [PATCH v2 3/3] tpm: tis-i2c: Add more compatible strings
Quoted 36 lines · Rob Herring
Quoted 32 lines · Jarkko Sakkinen
Quoted 25 lines · Joel Stanley
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
Signed-off-by Joel Stanley <[email protected]>--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)drivers/char/tpm/tpm_tis_i2c.c +2
-1@@ -368,6 +368,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); --Quoted 2 lines
2.35.1
Acked-by Jarkko Sakkinen <[email protected]>Quoted 2 lines
IMHO could be picked to the same tree with DT changes instead of my tree.
Quoted 8 lines
It's supposed to be the other way around. DT bindings go with drivers via subsystem tree. I don't take drivers.
But it seems this first needs some coordination with this[1] series.
Rob
WFM, I can pick it (once the issues are fixed).
BR, Jarkko
Re: [PATCH v2 3/3] tpm: tis-i2c: Add more compatible strings
In reply to Joel StanleyQuoted 7 lines · Joel Stanley
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
Signed-off-by Joel Stanley <[email protected]>
Does anyone happen to know why this patch never made it upstream ?
Thanks,
Guenter
Quoted 20 lines
--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)drivers/char/tpm/tpm_tis_i2c.c +2
-0@@ -368,6 +368,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);Signature · 1 line
2.35.1