diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/barebox/barebox,environment.rst | 15 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/barebox/barebox,state.rst | 5 |
2 files changed, 17 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/barebox/barebox,environment.rst b/Documentation/devicetree/bindings/barebox/barebox,environment.rst index d5e52ead04..12b103be10 100644 --- a/Documentation/devicetree/bindings/barebox/barebox,environment.rst +++ b/Documentation/devicetree/bindings/barebox/barebox,environment.rst @@ -6,7 +6,10 @@ This driver provides an environment for barebox from the devicetree. Required properties: * ``compatible``: should be ``barebox,environment`` -* ``device-path``: path to the environment +* ``device-path``: path to the device environment is on + +Optional properties: +* ``file-path``: path to a file in the device named by device-path The device-path is a multistring property. The first string should contain a nodepath to the node containing the physical device of the environment or @@ -19,9 +22,19 @@ the path to the environment. Supported values for <type>: be the label for MTD partitions, the number for DOS partitions (beginning with 0) or the name for GPT partitions. +The file-path is the name of a file located in a FAT filesystem on the +device named in device-path. This filesystem will be mounted and the +environment loaded from the file's location in the directory tree. + Example:: environment@0 { compatible = "barebox,environment"; device-path = &flash, "partname:barebox-environment"; }; + + environment@1 { + compatible = "barebox,environment"; + device-path = &mmc, "partname:1"; + file-path = "barebox.env"; + }; diff --git a/Documentation/devicetree/bindings/barebox/barebox,state.rst b/Documentation/devicetree/bindings/barebox/barebox,state.rst index ef66029372..d1b0627edf 100644 --- a/Documentation/devicetree/bindings/barebox/barebox,state.rst +++ b/Documentation/devicetree/bindings/barebox/barebox,state.rst @@ -55,8 +55,8 @@ Required properties: ``#size-cells = <1>``. Defines the ``offset`` and ``size`` of the variable in the ``raw`` backend. ``size`` must fit the node ``type``. Variables are not allowed to overlap. -* ``type``: Should be ``uint8``, ``uint32``, ``enum32``, ``mac`` or - ``string`` for the type of the variable +* ``type``: Should be ``uint8``, ``uint32``, ``int32``. ``enum32``, ``mac`` + or ``string`` for the type of the variable * ``names``: For ``enum32`` values only, this specifies the values possible for ``enum32``. @@ -93,6 +93,7 @@ Variable Types * ``uint8``: * ``uint32``: +* ``int32``: * ``enum32``: The ``default`` value is an integer representing an offset into the names array. * ``mac``: |