summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2023-02-21 08:07:35 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-02-21 08:50:47 +0100
commitcf893b54e65c6b2879b490a7f1d4b1438a3c9653 (patch)
tree868e96e4ed7ba87428fed046efb294cd5e7f5009 /Documentation
parent90f70dbe29586b5fc98a9b96a41772cdd5ae251f (diff)
downloadbarebox-cf893b54e65c6b2879b490a7f1d4b1438a3c9653.tar.gz
bootsource: use /chosen instead of /aliases/barebox,bootsource-
Aliases were a bad choice for this as barebox could end up calling MMC devices /dev/barebox,bootsource-mmc0, which was not intended. Move over to using chosen instead. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Link: https://lore.barebox.org/20230221070735.1130600-2-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/barebox/aliases.rst19
1 files changed, 12 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/barebox/aliases.rst b/Documentation/devicetree/bindings/barebox/aliases.rst
index e6face2c33..2848a88f15 100644
--- a/Documentation/devicetree/bindings/barebox/aliases.rst
+++ b/Documentation/devicetree/bindings/barebox/aliases.rst
@@ -19,17 +19,22 @@ probing the node at ``&iwdg`` will be named ``wdog0``.
By default, barebox will assume the aliases in the DT to align with
the bootsource communicated by the firmware. If this is not the case,
-a device tree override is possible via an
-``/aliases/barebox,bootsource-${bootsource}${bootsource_instance}``
+a device tree override is possible via a
+``/chosen/barebox,bootsource-${bootsource}${bootsource_instance}``
property:
.. code-block:: none
- &{/aliases} {
- mmc0 = &sdmmc0;
- mmc1 = &sdhci;
- barebox,bootsource-mmc0 = &sdhci;
- barebox,bootsource-mmc1 = &sdmmc0;
+ / {
+ aliases {
+ mmc0 = &sdmmc0;
+ mmc1 = &sdhci;
+ };
+
+ chosen {
+ barebox,bootsource-mmc0 = &sdhci;
+ barebox,bootsource-mmc1 = &sdmmc0;
+ };
};
This will ensure that when booting from MMC, ``/dev/mmc${bootsource_instance}``