diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-28 16:03:21 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-28 17:07:47 +1100 |
commit | 60b1eb9a6aad0365a6bd3f2e3a265a702b09e36f (patch) | |
tree | 994e5dbf85bea0154c0bee4c15c44ef12695d0e3 /doc/device-tree/vpd.rst | |
parent | 91350c5a926795d8917a4eff699941361f780476 (diff) | |
download | skiboot-60b1eb9a6aad0365a6bd3f2e3a265a702b09e36f.zip skiboot-60b1eb9a6aad0365a6bd3f2e3a265a702b09e36f.tar.gz skiboot-60b1eb9a6aad0365a6bd3f2e3a265a702b09e36f.tar.bz2 |
doc: device-tree snippets should be dts code-blocks
This gets us syntax highlighting of device tree snippets.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'doc/device-tree/vpd.rst')
-rw-r--r-- | doc/device-tree/vpd.rst | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/doc/device-tree/vpd.rst b/doc/device-tree/vpd.rst index 65a1738..3e70d38 100644 --- a/doc/device-tree/vpd.rst +++ b/doc/device-tree/vpd.rst @@ -6,20 +6,23 @@ the system and each vpd node in the device tree represents a FRU. These node and their properties are specific to the FSP-based systems, passed to the skiboot in the form of FSP-defined HDAT structures. skiboot parses these structures and add respective nodes in the device tree. -:: - /vpd : VPD root node - <fru-name>@<rsrc-id> : Node name - ibm,vpd : VPD data binary blob - ccin : Customer Card Identification Number - fru-type : FRU type label (2 bytes ASCII character) - fru-number : FRU stocking part number - ibm,loc-code : Location code - part-number : Part number - serial-number : Serial number - ibm,chip-id : Processor Id - size : DIMM size (applicable for DIMM VPD only) - ibm,memory-bus-frequency: DIMM frequency (applicable for DIMM VPD only) +.. code-block:: dts + + vpd { /* VPD root node */ + fru-name@rsrc-id { /* Node name formatted as such */ + ibm,vpd = < /* VPD data binary blob */ >; + ccin = "524D"; /* Customer Card Identification Number */ + fru-type = [ 41 56 ]; /* FRU type label (2 bytes ASCII character) */ + fru-number = "FRU stocking part number"; + ibm,loc-code = "Location code"; + part-number = "ABC123456"; + serial-number = "ABC123456"; + ibm,chip-id = <0x0>; /* If part is a chip, Processor Id */ + size = "0032768"; /* DIMM size (applicable for DIMM VPD only) */ + ibm,memory-bus-frequency = <0x0 0x0>; /* DIMM frequency (applicable for DIMM VPD only) */ + }; + }; The VPD tree in the device tree depicts the hierarchial structure of the FRUs having parent-child relationship. :: @@ -53,7 +56,9 @@ FRUs having parent-child relationship. :: |-- root-node-vpd@a001 `-- system-vpd@1c00 -Example vpd node: :: +Example vpd node: + +.. code-block:: dts anchor-card@500 { ccin = "52FE"; |