devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: rpi: Device tree modifications for U-Boot
@ 2015-08-11 14:25 Simon Glass
       [not found] ` <1439303153-12171-1-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
  2015-10-08 15:50 ` Pavel Machek
  0 siblings, 2 replies; 16+ messages in thread
From: Simon Glass @ 2015-08-11 14:25 UTC (permalink / raw)
  To: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: Stephen Warren, Stephen Warren, Simon Glass, Russell King,
	Lee Jones, devicetree-u79uwXL29TY76Z2rM5mHXA, Kumar Gala,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Ian Campbell, Rob Herring,
	linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Pawel Moll,
	Mark Rutland

This updates the device tree from the kernel version to something suitable
for U-Boot:

- Add stdout-path alias for console
- Mark the /soc node to be available pre-relocation so that the early
serial console works (we need the 'ranges' property to be available)

Signed-off-by: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
---

 arch/arm/boot/dts/bcm2835.dtsi | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
index 301c73f..bd6bff6 100644
--- a/arch/arm/boot/dts/bcm2835.dtsi
+++ b/arch/arm/boot/dts/bcm2835.dtsi
@@ -8,6 +8,7 @@
 
 	chosen {
 		bootargs = "earlyprintk console=ttyAMA0";
+		stdout-path = &uart;
 	};
 
 	soc {
@@ -16,6 +17,7 @@
 		#size-cells = <1>;
 		ranges = <0x7e000000 0x20000000 0x02000000>;
 		dma-ranges = <0x40000000 0x00000000 0x20000000>;
+		u-boot,dm-pre-reloc;
 
 		timer@7e003000 {
 			compatible = "brcm,bcm2835-system-timer";
@@ -92,7 +94,7 @@
 			#interrupt-cells = <2>;
 		};
 
-		uart@7e201000 {
+		uart: uart@7e201000 {
 			compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
 			reg = <0x7e201000 0x1000>;
 			interrupts = <2 25>;
-- 
2.5.0.rc2.392.g76e840b

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

end of thread, other threads:[~2015-10-08 15:50 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-11 14:25 [PATCH] arm: rpi: Device tree modifications for U-Boot Simon Glass
     [not found] ` <1439303153-12171-1-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2015-08-11 17:05   ` Lucas Stach
     [not found]     ` <1439312701.2451.3.camel-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
2015-08-11 17:29       ` Stephen Warren
     [not found]         ` <55CA3113.1010601-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-08-11 19:38           ` Lucas Stach
2015-08-12 13:21       ` Simon Glass
2015-08-14 18:34         ` Simon Glass
2015-08-14 20:29           ` Rob Herring
     [not found]             ` <CAL_Jsq++ihz6svJAKWwT7-=KyJvyWXjdf=tZb4aDGgV_Dc=-Nw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-15 13:46               ` Simon Glass
2015-08-25 16:22                 ` Rob Herring
     [not found]                   ` <CAL_JsqJ-N+nFEMEEmg4O45DVF0g382fUvjGTH=fP_HbgK38aKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-28 18:27                     ` Simon Glass
2015-08-28 19:27                       ` Rob Herring
2015-09-09 18:08                       ` Simon Glass
     [not found]                       ` <CAPnjgZ2L1TOOmiUSKk-=gpAUt8tvZU1SkGBmdbHJR1tBhE2nTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-16  3:54                         ` Stephen Warren
     [not found]         ` <CAPnjgZ3ztXnkxZJvitiXiKMzq5+x46hbv0PW4HcF7yGgsXUV+Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-15  3:46           ` Stephen Warren
2015-08-15 13:47             ` Simon Glass
2015-10-08 15:50 ` Pavel Machek

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).