arm: dts: bcm283x: Rename U-Boot file
authorMatthias Brugger <mbrugger@suse.com>
Fri, 8 Nov 2019 13:49:47 +0000 (14:49 +0100)
committerMatthias Brugger <mbrugger@suse.com>
Sun, 24 Nov 2019 09:46:27 +0000 (10:46 +0100)
Rename the file bcm283x-uboot.dtsi so that it get
automatically include through the scripts/Makefile.lib
using $(CONFIG_SYS_SOC))-u-boot.dtsi

Without this uarts and pincontroller miss the property dm-pre-reloc
and the first call to bcm283x_mu_serial_ofdata_to_platdata() fails
as the pins are not set correctly.
As a result the U-Boot banner isn't shown on boot.

Before commmit
143256b353 ("fdt: update bcm283x device tree sources to Linux 5.1-rc6 state")
we included bcm283x-uboot.dtsi directly in the device-tree file.
Which got deleted by the metioned commit.
This is a much robuster solution.

Reported-by: Tom Rini <trini@konsulko.com>
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: Tom Rini <trini@konsulko.com> [RPi 3, 32b and 64b modes]
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
arch/arm/dts/bcm283x-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/bcm283x-uboot.dtsi [deleted file]

diff --git a/arch/arm/dts/bcm283x-u-boot.dtsi b/arch/arm/dts/bcm283x-u-boot.dtsi
new file mode 100644 (file)
index 0000000..36548da
--- /dev/null
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * U-Boot addition to keep baudrate set by firmware
+ * and also initialize before relocation.
+ *
+ * (C) Copyright 2016 Fabian Vogt <fvogt@suse.com>
+ */
+
+&uart0 {
+       skip-init;
+       u-boot,dm-pre-reloc;
+};
+
+&uart1 {
+       skip-init;
+       u-boot,dm-pre-reloc;
+};
+
+&gpio {
+       u-boot,dm-pre-reloc;
+};
diff --git a/arch/arm/dts/bcm283x-uboot.dtsi b/arch/arm/dts/bcm283x-uboot.dtsi
deleted file mode 100644 (file)
index 36548da..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * U-Boot addition to keep baudrate set by firmware
- * and also initialize before relocation.
- *
- * (C) Copyright 2016 Fabian Vogt <fvogt@suse.com>
- */
-
-&uart0 {
-       skip-init;
-       u-boot,dm-pre-reloc;
-};
-
-&uart1 {
-       skip-init;
-       u-boot,dm-pre-reloc;
-};
-
-&gpio {
-       u-boot,dm-pre-reloc;
-};