[U-Boot] [RFC PATCH 22/22] sandbox: dts: Add a serial console node

Simon Glass
2014-05-24T21:21:21Z

If the sandbox device tree is provided to U-Boot (with the -d flag) then it
will use the device tree version in preference to the built-in device. The
only difference is the colour.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

arch/sandbox/dts/sandbox.dts | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts
index 62d8037..98008de 100644
--- a/arch/sandbox/dts/sandbox.dts
+++ b/arch/sandbox/dts/sandbox.dts
@@ -1,6 +1,17 @@
/dts-v1/;

/ {
+ alias {
+ console = <&uart0>;
+ };
+
+ uart0: serial {
+ compatible = "sandbox,serial";
+ dm,pre-reloc;
+ dm,prefer;
+ text-colour = "cyan";
+ };
+
triangle {
compatible = "demo-shape";
colour = "cyan";
--
1.9.1.423.g4596e3a