]> git.sur5r.net Git - u-boot/commitdiff
fdt: adjust bcm283x device tree for u-boot
authorFabian Vogt <fvogt@suse.com>
Mon, 26 Sep 2016 12:26:48 +0000 (14:26 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 29 Nov 2016 01:09:50 +0000 (20:09 -0500)
The information currently set via platdata has to be represented in the
device tree now. bcm283x-uboot.dtsi adds the u-boot specific "skip-init"
property to the serial nodes and enables initialization in the pre-reloc phase.

Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Signed-off-by: Fabian Vogt <fvogt@suse.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/bcm283x-uboot.dtsi [new file with mode: 0644]
arch/arm/dts/bcm283x.dtsi

diff --git a/arch/arm/dts/bcm283x-uboot.dtsi b/arch/arm/dts/bcm283x-uboot.dtsi
new file mode 100644 (file)
index 0000000..8e4231a
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * U-Boot addition to keep baudrate set by firmware
+ * and also initialize before relocation.
+ *
+ * (C) Copyright 2016 Fabian Vogt <fvogt@suse.com>
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+&soc {
+       u-boot,dm-pre-reloc;
+};
+
+&uart0 {
+       skip-init;
+       u-boot,dm-pre-reloc;
+};
+
+&uart1 {
+       skip-init;
+       u-boot,dm-pre-reloc;
+};
index 445624a1a1de2fd3d1fda6fd9811a015e26d3dd3..e5b4f20c2ad3973fa4c03734b7a9fbba7a02adff 100644 (file)
@@ -19,7 +19,7 @@
                bootargs = "earlyprintk console=ttyAMA0";
        };
 
-       soc {
+       soc: soc {
                compatible = "simple-bus";
                #address-cells = <1>;
                #size-cells = <1>;
 
        };
 };
+
+#include "bcm283x-uboot.dtsi"