Debian Codegraph @

Documentation/devicetree/bindings/tpm/tcg,tpm-tis-i2c.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/tpm/tcg,tpm-tis-i2c.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: I²C-attached Trusted Platform Module conforming to TCG TIS specification
8
9 maintainers:
10 - Lukas Wunner <[email protected]>
11
12 description: |
13 The Trusted Computing Group (TCG) has defined a multi-vendor standard
14 for accessing a TPM chip. It can be transported over various buses,
15 one of them being I²C. The standard is named:
16 TCG PC Client Specific TPM Interface Specification (TIS)
17 https://trustedcomputinggroup.org/resource/pc-client-work-group-pc-client-specific-tpm-interface-specification-tis/
18
19 The I²C interface was not originally part of the standard, but added
20 in 2017 with a separate document:
21 TCG PC Client Platform TPM Profile Specification for TPM 2.0 (PTP)
22 https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/
23
24 Recent TPM 2.0 chips conform to this generic interface, others use a
25 vendor-specific I²C interface.
26
27 properties:
28 compatible:
29 oneOf:
30 - description: Generic TPM 2.0 chips conforming to TCG PTP interface
31 items:
32 - enum:
33 - infineon,slb9673
34 - nuvoton,npct75x
35 - st,st33ktpm2xi2c
36 - st,st33tphf2ei2c
37 - const: tcg,tpm-tis-i2c
38
39 - description: TPM 1.2 and 2.0 chips with vendor-specific I²C interface
40 items:
41 - enum:
42 - atmel,at97sc3204t # TPM 1.2
43 - infineon,slb9635tt # TPM 1.2 (maximum 100 kHz)
44 - infineon,slb9645tt # TPM 1.2 (maximum 400 kHz)
45 - infineon,tpm_i2c_infineon # TPM 1.2
46 - nuvoton,npct501 # TPM 1.2
47 - nuvoton,npct601 # TPM 2.0
48 - st,st33zp24-i2c # TPM 2.0
49 - winbond,wpct301 # TPM 1.2
50
51 reg:
52 description: address of TPM on the I²C bus
53
54 allOf:
55 - $ref: tpm-common.yaml#
56
57 required:
58 - compatible
59 - reg
60
61 unevaluatedProperties: false
62
63 examples:
64 - |
65 i2c {
66 #address-cells = <1>;
67 #size-cells = <0>;
68
69 tpm@57 {
70 label = "tpm";
71 compatible = "nuvoton,npct601";
72 reg = <0x57>;
73 linux,sml-base = <0x7f 0xfd450000>;
74 linux,sml-size = <0x10000>;
75 };
76 };
77
78 - |
79 #include <dt-bindings/gpio/gpio.h>
80 #include <dt-bindings/interrupt-controller/irq.h>
81 i2c {
82 #address-cells = <1>;
83 #size-cells = <0>;
84
85 tpm@13 {
86 reg = <0x13>;
87 compatible = "st,st33zp24-i2c";
88 interrupt-parent = <&gpio5>;
89 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
90 lpcpd-gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>;
91 };
92 };