SPI-attached Trusted Platform Module conforming to TCG TIS specification
Schema identifier ($id): "http://devicetree.org/schemas/tpm/tcg,tpm_tis-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lukas Wunner <lukas@wunner.de>"
The Trusted Computing Group (TCG) has defined a multi-vendor standard for accessing a TPM chip. It can be transported over various buses, one of them being SPI. The standard is named: TCG PC Client Specific TPM Interface Specification (TIS) https://trustedcomputinggroup.org/resource/pc-client-work-group-pc-client-specific-tpm-interface-specification-tis/
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"atmel,attpm20p","infineon,slb9670","st,st33htpm-spi","st,st33zp24-spi"
Item 2
Exact value (
const):"tcg,tpm_tis-spi"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):tpm-common.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,st33zp24-spi"When the condition matches (
then) #Properties and child nodes (
properties)
spi-max-frequency— not listed as required hereMaximum value (
maximum):10000000
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
tpm@0 {
reg = <0>;
compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
spi-max-frequency = <10000000>;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
tpm@0 {
reg = <0>;
compatible = "st,st33zp24-spi", "tcg,tpm_tis-spi";
spi-max-frequency = <10000000>;
interrupt-parent = <&gpio5>;
interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
lpcpd-gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)