devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: chosen: Document linux,initrd-{start,end}
@ 2017-12-09 15:33 Jonathan Neuschäfer
       [not found] ` <20171209153305.11012-1-j.neuschaefer-hi6Y0CQ0nG0@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Neuschäfer @ 2017-12-09 15:33 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: Jonathan Neuschäfer, Rob Herring, Mark Rutland,
	AKASHI Takahiro, Ard Biesheuvel, Kees Cook, James Morse,
	Frank Rowand, linux-kernel-u79uwXL29TY76Z2rM5mHXA

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

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer-hi6Y0CQ0nG0@public.gmane.org>
---
 Documentation/devicetree/bindings/chosen.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/Documentation/devicetree/bindings/chosen.txt b/Documentation/devicetree/bindings/chosen.txt
index e3b13ea7d2ae..45e79172a646 100644
--- a/Documentation/devicetree/bindings/chosen.txt
+++ b/Documentation/devicetree/bindings/chosen.txt
@@ -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>;
+	};
+};
-- 
2.15.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: chosen: Document linux,initrd-{start,end}
       [not found] ` <20171209153305.11012-1-j.neuschaefer-hi6Y0CQ0nG0@public.gmane.org>
@ 2017-12-15 21:01   ` Rob Herring
  2017-12-16  5:41     ` Jonathan Neuschäfer
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2017-12-15 21:01 UTC (permalink / raw)
  To: Jonathan Neuschäfer
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, Mark Rutland, AKASHI Takahiro,
	Ard Biesheuvel, Kees Cook, James Morse, Frank Rowand,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

On Sat, Dec 09, 2017 at 04:33:02PM +0100, Jonathan Neuschäfer wrote:
> These properties have been in use for a very long time (at least since
> 2005), but were never documented in chosen.txt.
> 
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer-hi6Y0CQ0nG0@public.gmane.org>
> ---
>  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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: chosen: Document linux,initrd-{start,end}
  2017-12-15 21:01   ` Rob Herring
@ 2017-12-16  5:41     ` Jonathan Neuschäfer
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Neuschäfer @ 2017-12-16  5:41 UTC (permalink / raw)
  To: Rob Herring
  Cc: Jonathan Neuschäfer, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Mark Rutland, AKASHI Takahiro, Ard Biesheuvel, Kees Cook,
	James Morse, Frank Rowand, linux-kernel-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

On Fri, Dec 15, 2017 at 03:01:47PM -0600, Rob Herring wrote:
> On Sat, Dec 09, 2017 at 04:33:02PM +0100, Jonathan Neuschäfer wrote:
> > These properties have been in use for a very long time (at least since
> > 2005), but were never documented in chosen.txt.
> > 
> > Signed-off-by: Jonathan Neuschäfer <j.neuschaefer-hi6Y0CQ0nG0@public.gmane.org>
> > ---
> >  Documentation/devicetree/bindings/chosen.txt | 15 +++++++++++++++
> >  1 file changed, 15 insertions(+)
> 
> Applied.

Thanks.

> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-16  5:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-09 15:33 [PATCH] dt-bindings: chosen: Document linux,initrd-{start,end} Jonathan Neuschäfer
     [not found] ` <20171209153305.11012-1-j.neuschaefer-hi6Y0CQ0nG0@public.gmane.org>
2017-12-15 21:01   ` Rob Herring
2017-12-16  5:41     ` Jonathan Neuschäfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).