Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: tpm: add the IBM Virtual TPM device tree binding documentation

Virtual TPM, which is being used on IBM POWER7+ and POWER8 systems running
POWERVM, is currently supported by tpm device driver but lacks the
documentation. This patch adds the missing documentation for the existing
support.

Suggested-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Nayna Jain <nayna@linux.vnet.ibm.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>

authored by

Nayna Jain and committed by
Jarkko Sakkinen
82003e04 1a277e67

+41
+41
Documentation/devicetree/bindings/security/tpm/ibmvtpm.txt
··· 1 + * Device Tree Bindings for IBM Virtual Trusted Platform Module(vtpm) 2 + 3 + Required properties: 4 + 5 + - compatible : property name that conveys the platform architecture 6 + identifiers, as 'IBM,vtpm' 7 + - device_type : specifies type of virtual device 8 + - interrupts : property specifying the interrupt source number and 9 + sense code associated with this virtual I/O Adapters 10 + - ibm,my-drc-index : integer index for the connector between the device 11 + and its parent - present only if Dynamic 12 + Reconfiguration(DR) Connector is enabled 13 + - ibm,#dma-address-cells: specifies the number of cells that are used to 14 + encode the physical address field of dma-window 15 + properties 16 + - ibm,#dma-size-cells : specifies the number of cells that are used to 17 + encode the size field of dma-window properties 18 + - ibm,my-dma-window : specifies DMA window associated with this virtual 19 + IOA 20 + - ibm,loc-code : specifies the unique and persistent location code 21 + associated with this virtual I/O Adapters 22 + - linux,sml-base : 64-bit base address of the reserved memory allocated 23 + for the firmware event log 24 + - linux,sml-size : size of the memory allocated for the firmware event log 25 + 26 + Example (IBM Virtual Trusted Platform Module) 27 + --------------------------------------------- 28 + 29 + vtpm@30000003 { 30 + ibm,#dma-size-cells = <0x2>; 31 + compatible = "IBM,vtpm"; 32 + device_type = "IBM,vtpm"; 33 + ibm,my-drc-index = <0x30000003>; 34 + ibm,#dma-address-cells = <0x2>; 35 + linux,sml-base = <0xc60e 0x0>; 36 + interrupts = <0xa0003 0x0>; 37 + ibm,my-dma-window = <0x10000003 0x0 0x0 0x0 0x10000000>; 38 + ibm,loc-code = "U8286.41A.10082DV-V3-C3"; 39 + reg = <0x30000003>; 40 + linux,sml-size = <0xbce10200>; 41 + };