IBM Virtual Trusted Platform Module (vTPM)

Schema identifier ($id): "http://devicetree.org/schemas/tpm/ibm,vtpm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nayna Jain <nayna@linux.ibm.com>"

Virtual TPM is used on IBM POWER7+ and POWER8 systems running POWERVM. It is supported through the adjunct partition with firmware release 740 or higher. With vTPM support, each lpar is able to have its own vTPM without the physical TPM hardware. The TPM functionality is provided by communicating with the vTPM adjunct partition through Hypervisor calls (Hcalls) and Command/Response Queue (CRQ) commands.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "IBM,vtpm", "IBM,vtpm20"

device_type — required here #

type of virtual device

Allowed values (enum): "IBM,vtpm", "IBM,vtpm20"

reg — required here #

Maximum number of items (maxItems): 1

ibm,#dma-address-cells — required here #

number of cells that are used to encode the physical address field of dma-window properties

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

ibm,#dma-size-cells — required here #

number of cells that are used to encode the size field of dma-window properties

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

ibm,my-dma-window — required here #

DMA window associated with this virtual I/O Adapter

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

ibm,my-drc-index — required here #

integer index for the connector between the device and its parent; present only if Dynamic Reconfiguration (DR) Connector is enabled

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

ibm,loc-code — required here #

unique and persistent location code associated with this virtual I/O Adapter

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Required in this object (required): "compatible", "device_type", "reg", "interrupts", "ibm,#dma-address-cells", "ibm,#dma-size-cells", "ibm,my-dma-window", "ibm,my-drc-index", "ibm,loc-code", "linux,sml-base", "linux,sml-size"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): tpm-common.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

soc {
    #address-cells = <1>;
    #size-cells = <0>;

    tpm@30000003 {
        compatible = "IBM,vtpm";
        device_type = "IBM,vtpm";
        reg = <0x30000003>;
        interrupts = <0xa0003 0x0>;
        ibm,#dma-address-cells = <0x2>;
        ibm,#dma-size-cells = <0x2>;
        ibm,my-dma-window = <0x10000003 0x0 0x0 0x0 0x10000000>;
        ibm,my-drc-index = <0x30000003>;
        ibm,loc-code = "U8286.41A.10082DV-V3-C3";
        linux,sml-base = <0xc60e 0x0>;
        linux,sml-size = <0xbce10200>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page