18d13bc63SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28d13bc63SEmmanuel Vadot%YAML 1.2 38d13bc63SEmmanuel Vadot--- 48d13bc63SEmmanuel Vadot$id: http://devicetree.org/schemas/tpm/tcg,tpm_tis-spi.yaml# 58d13bc63SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68d13bc63SEmmanuel Vadot 78d13bc63SEmmanuel Vadottitle: SPI-attached Trusted Platform Module conforming to TCG TIS specification 88d13bc63SEmmanuel Vadot 98d13bc63SEmmanuel Vadotmaintainers: 108d13bc63SEmmanuel Vadot - Lukas Wunner <lukas@wunner.de> 118d13bc63SEmmanuel Vadot 128d13bc63SEmmanuel Vadotdescription: | 138d13bc63SEmmanuel Vadot The Trusted Computing Group (TCG) has defined a multi-vendor standard 148d13bc63SEmmanuel Vadot for accessing a TPM chip. It can be transported over various buses, 158d13bc63SEmmanuel Vadot one of them being SPI. The standard is named: 168d13bc63SEmmanuel Vadot TCG PC Client Specific TPM Interface Specification (TIS) 178d13bc63SEmmanuel Vadot https://trustedcomputinggroup.org/resource/pc-client-work-group-pc-client-specific-tpm-interface-specification-tis/ 188d13bc63SEmmanuel Vadot 198d13bc63SEmmanuel Vadotproperties: 208d13bc63SEmmanuel Vadot compatible: 218d13bc63SEmmanuel Vadot items: 228d13bc63SEmmanuel Vadot - enum: 23*01950c46SEmmanuel Vadot - atmel,attpm20p 248d13bc63SEmmanuel Vadot - infineon,slb9670 258d13bc63SEmmanuel Vadot - st,st33htpm-spi 268d13bc63SEmmanuel Vadot - st,st33zp24-spi 278d13bc63SEmmanuel Vadot - const: tcg,tpm_tis-spi 288d13bc63SEmmanuel Vadot 298d13bc63SEmmanuel VadotallOf: 308d13bc63SEmmanuel Vadot - $ref: tpm-common.yaml# 318d13bc63SEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 328d13bc63SEmmanuel Vadot - if: 338d13bc63SEmmanuel Vadot properties: 348d13bc63SEmmanuel Vadot compatible: 358d13bc63SEmmanuel Vadot contains: 368d13bc63SEmmanuel Vadot const: st,st33zp24-spi 378d13bc63SEmmanuel Vadot then: 388d13bc63SEmmanuel Vadot properties: 398d13bc63SEmmanuel Vadot spi-max-frequency: 408d13bc63SEmmanuel Vadot maximum: 10000000 418d13bc63SEmmanuel Vadot 428d13bc63SEmmanuel Vadotrequired: 438d13bc63SEmmanuel Vadot - compatible 448d13bc63SEmmanuel Vadot - reg 458d13bc63SEmmanuel Vadot 468d13bc63SEmmanuel VadotunevaluatedProperties: false 478d13bc63SEmmanuel Vadot 488d13bc63SEmmanuel Vadotexamples: 498d13bc63SEmmanuel Vadot - | 508d13bc63SEmmanuel Vadot spi { 518d13bc63SEmmanuel Vadot #address-cells = <1>; 528d13bc63SEmmanuel Vadot #size-cells = <0>; 538d13bc63SEmmanuel Vadot 548d13bc63SEmmanuel Vadot tpm@0 { 558d13bc63SEmmanuel Vadot reg = <0>; 568d13bc63SEmmanuel Vadot compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; 578d13bc63SEmmanuel Vadot spi-max-frequency = <10000000>; 588d13bc63SEmmanuel Vadot }; 598d13bc63SEmmanuel Vadot }; 608d13bc63SEmmanuel Vadot 618d13bc63SEmmanuel Vadot - | 628d13bc63SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 638d13bc63SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 648d13bc63SEmmanuel Vadot spi { 658d13bc63SEmmanuel Vadot #address-cells = <1>; 668d13bc63SEmmanuel Vadot #size-cells = <0>; 678d13bc63SEmmanuel Vadot 688d13bc63SEmmanuel Vadot tpm@0 { 698d13bc63SEmmanuel Vadot reg = <0>; 708d13bc63SEmmanuel Vadot compatible = "st,st33zp24-spi", "tcg,tpm_tis-spi"; 718d13bc63SEmmanuel Vadot spi-max-frequency = <10000000>; 728d13bc63SEmmanuel Vadot interrupt-parent = <&gpio5>; 738d13bc63SEmmanuel Vadot interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; 748d13bc63SEmmanuel Vadot lpcpd-gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>; 758d13bc63SEmmanuel Vadot }; 768d13bc63SEmmanuel Vadot }; 77