Skip to contentSkip to conversation

dt-bindings: chosen: Document linux,initrd-{start,end}

PATCH Applied Jonathan Neuschäfer 2 participants 3 messages Dec 9, 2017 – Dec 16, 2017 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: chosen: Document linux,initrd-{start,end}

These properties have been in use for a very long time (at least since 2005), but were never documented in chosen.txt.

---
 Documentation/devicetree/bindings/chosen.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
Documentation/devicetree/bindings/chosen.txt +15 -0
index e3b13ea7d2ae..45e79172a646 100644
@@ -120,3 +120,18 @@ e.g.
 While this property does not represent a real hardware, the address
 and the size are expressed in #address-cells and #size-cells,
 respectively, of the root node.
+
+linux,initrd-start and linux,initrd-end
+---------------------------------------
+
+These properties hold the physical start and end address of an initrd that's
+loaded by the bootloader. Note that linux,initrd-start is inclusive, but
+linux,initrd-end is exclusive.
+e.g.
+
+/ {
+	chosen {
+		linux,initrd-start = <0x82000000>;
+		linux,initrd-end = <0x82800000>;
+	};
+};
Signature · 6 lines
2.15.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Applied
#1 lore raw
Quoted 7 lines · Jonathan Neuschäfer

These properties have been in use for a very long time (at least since 2005), but were never documented in chosen.txt.

---
 Documentation/devicetree/bindings/chosen.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

Applied.

I'm inclined to say to document these in the DT spec, but I'm assuming there was some reason why they weren't put into the spec (ePAPR at the time) originally.

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 10 lines · Rob Herring
Quoted 7 lines · Jonathan Neuschäfer

These properties have been in use for a very long time (at least since 2005), but were never documented in chosen.txt.

---
 Documentation/devicetree/bindings/chosen.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

Applied.

Thanks.

Quoted 3 lines

I'm inclined to say to document these in the DT spec, but I'm assuming there was some reason why they weren't put into the spec (ePAPR at the time) originally.

I don't know about the history of this, but I think if and when these properties were specified in DTSpec, they should get a non-linux-specific name, such as initrd-start/initrd-end, and a compatibility fallback to linux,initrd-* (similar to stdout-path and phandle).

Jonathan Neuschäfer