tcg,tpm-tis-i2c.yaml 2.7 KB

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