105 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/tpm/ibm,vtpm.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: IBM Virtual Trusted Platform Module (vTPM)8 9maintainers:10 - Nayna Jain <nayna@linux.ibm.com>11 12description: |13 Virtual TPM is used on IBM POWER7+ and POWER8 systems running POWERVM.14 It is supported through the adjunct partition with firmware release 74015 or higher. With vTPM support, each lpar is able to have its own vTPM16 without the physical TPM hardware. The TPM functionality is provided by17 communicating with the vTPM adjunct partition through Hypervisor calls18 (Hcalls) and Command/Response Queue (CRQ) commands.19 20properties:21 compatible:22 enum:23 - IBM,vtpm24 - IBM,vtpm2025 26 device_type:27 description:28 type of virtual device29 enum:30 - IBM,vtpm31 - IBM,vtpm2032 33 reg:34 maxItems: 135 36 ibm,#dma-address-cells:37 description:38 number of cells that are used to encode the physical address field of39 dma-window properties40 $ref: /schemas/types.yaml#/definitions/uint32-array41 42 ibm,#dma-size-cells:43 description:44 number of cells that are used to encode the size field of45 dma-window properties46 $ref: /schemas/types.yaml#/definitions/uint32-array47 48 ibm,my-dma-window:49 description:50 DMA window associated with this virtual I/O Adapter51 $ref: /schemas/types.yaml#/definitions/uint32-array52 minItems: 553 maxItems: 554 55 ibm,my-drc-index:56 description:57 integer index for the connector between the device and its parent;58 present only if Dynamic Reconfiguration (DR) Connector is enabled59 $ref: /schemas/types.yaml#/definitions/uint3260 61 ibm,loc-code:62 description:63 unique and persistent location code associated with this virtual64 I/O Adapter65 $ref: /schemas/types.yaml#/definitions/string66 67required:68 - compatible69 - device_type70 - reg71 - interrupts72 - ibm,#dma-address-cells73 - ibm,#dma-size-cells74 - ibm,my-dma-window75 - ibm,my-drc-index76 - ibm,loc-code77 - linux,sml-base78 - linux,sml-size79 80allOf:81 - $ref: tpm-common.yaml#82 83unevaluatedProperties: false84 85examples:86 - |87 soc {88 #address-cells = <1>;89 #size-cells = <0>;90 91 tpm@30000003 {92 compatible = "IBM,vtpm";93 device_type = "IBM,vtpm";94 reg = <0x30000003>;95 interrupts = <0xa0003 0x0>;96 ibm,#dma-address-cells = <0x2>;97 ibm,#dma-size-cells = <0x2>;98 ibm,my-dma-window = <0x10000003 0x0 0x0 0x0 0x10000000>;99 ibm,my-drc-index = <0x30000003>;100 ibm,loc-code = "U8286.41A.10082DV-V3-C3";101 linux,sml-base = <0xc60e 0x0>;102 linux,sml-size = <0xbce10200>;103 };104 };105