diff options
author | Trent Piepho <tpiepho@kymetacorp.com> | 2015-12-17 00:52:49 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-08 08:30:55 +0100 |
commit | 3a0e9b49e7f167e1bec2257b44e4f0ca91497cc6 (patch) | |
tree | 482d0886065e124276592d7ade1dd5490325592e /Documentation | |
parent | ab96ba298b55e0b3eef1c18fc8be506071634cdf (diff) | |
download | barebox-3a0e9b49e7f167e1bec2257b44e4f0ca91497cc6.tar.gz barebox-3a0e9b49e7f167e1bec2257b44e4f0ca91497cc6.tar.xz |
environment: Support env from file in a file-system via device tree
Current barebox,environment node only allows specifying a raw device or
partition to load an environment from. Some boards, like OMAP and
SoCFPGA, instead want to use a file located in a FAT filesystem.
Extend the device tree bindings with a new property 'file-path' that
will trigger this behavior.
This allows any board using this driver to get the env from a file or
from a raw device, instead of each machine type being either raw
device only or file only.
Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/barebox/barebox,environment.rst | 15 |
1 files changed, 14 insertions, 1 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"; + }; |