summaryrefslogtreecommitdiffstats
path: root/doc/device-tree/ibm,opal/flash.rst
blob: 5bce76b4a622e85f1cd4e2a6457ade67b9abdc66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.. _device-tree/ibm,opal/flash:

ibm,opal/flash device tree entries
==================================

The flash@<n> nodes under ibm,opal describe flash devices that can be
accessed through the OPAL_FLASH_{READ,ERASE,WRITE} interface.

These interfaces take an 'id' parameter, which corresponds to the ibm,opal-id
property of the node.

The properties under a flash node are:

- ``compatible = "ibm,opal-flash"``

``ibm,opal-id = <id>``
  provides the index used for the OPAL_FLASH_XXX calls to reference this
  flash device

``reg = <0 size>``
  the offset and size of the flash device

``ibm,flash-block-size``
  the read/write/erase block size for the flash interface. Calls
  to read/write/erase must be aligned to the block size.

``#address-cells = <1>``, ``#size-cells = <1>``
  flash devices are currently 32-bit addressable

If valid partitions are found on the flash device, then ``partition@<offset>``
sub-nodes are added to the flash node. These match the Linux binding for
flash partitions; the reg parameter contains the offset and size of the
partition.


OpenPOWER on IntegriCloud