126c9d152SLukas Wunner# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 226c9d152SLukas Wunner%YAML 1.2 326c9d152SLukas Wunner--- 426c9d152SLukas Wunner$id: http://devicetree.org/schemas/tpm/tcg,tpm_tis-spi.yaml# 526c9d152SLukas Wunner$schema: http://devicetree.org/meta-schemas/core.yaml# 626c9d152SLukas Wunner 726c9d152SLukas Wunnertitle: SPI-attached Trusted Platform Module conforming to TCG TIS specification 826c9d152SLukas Wunner 926c9d152SLukas Wunnermaintainers: 1026c9d152SLukas Wunner - Lukas Wunner <lukas@wunner.de> 1126c9d152SLukas Wunner 1226c9d152SLukas Wunnerdescription: | 1326c9d152SLukas Wunner The Trusted Computing Group (TCG) has defined a multi-vendor standard 1426c9d152SLukas Wunner for accessing a TPM chip. It can be transported over various buses, 1526c9d152SLukas Wunner one of them being SPI. The standard is named: 1626c9d152SLukas Wunner TCG PC Client Specific TPM Interface Specification (TIS) 1726c9d152SLukas Wunner https://trustedcomputinggroup.org/resource/pc-client-work-group-pc-client-specific-tpm-interface-specification-tis/ 1826c9d152SLukas Wunner 1926c9d152SLukas Wunnerproperties: 2026c9d152SLukas Wunner compatible: 2126c9d152SLukas Wunner items: 2226c9d152SLukas Wunner - enum: 23*23595de5SLukas Wunner - atmel,attpm20p 2426c9d152SLukas Wunner - infineon,slb9670 2526c9d152SLukas Wunner - st,st33htpm-spi 2626c9d152SLukas Wunner - st,st33zp24-spi 2726c9d152SLukas Wunner - const: tcg,tpm_tis-spi 2826c9d152SLukas Wunner 2926c9d152SLukas WunnerallOf: 3026c9d152SLukas Wunner - $ref: tpm-common.yaml# 3126c9d152SLukas Wunner - $ref: /schemas/spi/spi-peripheral-props.yaml# 3226c9d152SLukas Wunner - if: 3326c9d152SLukas Wunner properties: 3426c9d152SLukas Wunner compatible: 3526c9d152SLukas Wunner contains: 3626c9d152SLukas Wunner const: st,st33zp24-spi 3726c9d152SLukas Wunner then: 3826c9d152SLukas Wunner properties: 3926c9d152SLukas Wunner spi-max-frequency: 4026c9d152SLukas Wunner maximum: 10000000 4126c9d152SLukas Wunner 4226c9d152SLukas Wunnerrequired: 4326c9d152SLukas Wunner - compatible 4426c9d152SLukas Wunner - reg 4526c9d152SLukas Wunner 4626c9d152SLukas WunnerunevaluatedProperties: false 4726c9d152SLukas Wunner 4826c9d152SLukas Wunnerexamples: 4926c9d152SLukas Wunner - | 5026c9d152SLukas Wunner spi { 5126c9d152SLukas Wunner #address-cells = <1>; 5226c9d152SLukas Wunner #size-cells = <0>; 5326c9d152SLukas Wunner 5426c9d152SLukas Wunner tpm@0 { 5526c9d152SLukas Wunner reg = <0>; 5626c9d152SLukas Wunner compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; 5726c9d152SLukas Wunner spi-max-frequency = <10000000>; 5826c9d152SLukas Wunner }; 5926c9d152SLukas Wunner }; 6026c9d152SLukas Wunner 6126c9d152SLukas Wunner - | 6226c9d152SLukas Wunner #include <dt-bindings/gpio/gpio.h> 6326c9d152SLukas Wunner #include <dt-bindings/interrupt-controller/irq.h> 6426c9d152SLukas Wunner spi { 6526c9d152SLukas Wunner #address-cells = <1>; 6626c9d152SLukas Wunner #size-cells = <0>; 6726c9d152SLukas Wunner 6826c9d152SLukas Wunner tpm@0 { 6926c9d152SLukas Wunner reg = <0>; 7026c9d152SLukas Wunner compatible = "st,st33zp24-spi", "tcg,tpm_tis-spi"; 7126c9d152SLukas Wunner spi-max-frequency = <10000000>; 7226c9d152SLukas Wunner interrupt-parent = <&gpio5>; 7326c9d152SLukas Wunner interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; 7426c9d152SLukas Wunner lpcpd-gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>; 7526c9d152SLukas Wunner }; 7626c9d152SLukas Wunner }; 77