diff mbox series

[2/5] arm: mvebu: Introduce mvebu-u-boot.dtsi for 32-bit Armada SoCs

Message ID 20220803110053.22598-3-pali@kernel.org
State Accepted
Commit 8879258ec0d6856ee9af802c79bb906feff6a032
Delegated to: Stefan Roese
Headers show
Series arm: mvebu: Cleanup u-boot,dm-pre-reloc code | expand

Commit Message

Pali Rohár Aug. 3, 2022, 11 a.m. UTC
Set u-boot,dm-pre-reloc for /soc/, /soc/internal-regs/ and &uart0 nodes as
it is required on every 32-bit Armada SoCs. And set also u-boot,dm-pre-reloc
for &spi0 when going to boot from SPI because otherwise SPL SPI drivers do
not load.

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 arch/arm/dts/mvebu-u-boot.dtsi | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 arch/arm/dts/mvebu-u-boot.dtsi

Comments

Stefan Roese Aug. 4, 2022, 2:52 p.m. UTC | #1
On 03.08.22 13:00, Pali Rohár wrote:
> Set u-boot,dm-pre-reloc for /soc/, /soc/internal-regs/ and &uart0 nodes as
> it is required on every 32-bit Armada SoCs. And set also u-boot,dm-pre-reloc
> for &spi0 when going to boot from SPI because otherwise SPL SPI drivers do
> not load.
> 
> Signed-off-by: Pali Rohár <pali@kernel.org>

Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

> ---
>   arch/arm/dts/mvebu-u-boot.dtsi | 24 ++++++++++++++++++++++++
>   1 file changed, 24 insertions(+)
>   create mode 100644 arch/arm/dts/mvebu-u-boot.dtsi
> 
> diff --git a/arch/arm/dts/mvebu-u-boot.dtsi b/arch/arm/dts/mvebu-u-boot.dtsi
> new file mode 100644
> index 000000000000..5538f95148de
> --- /dev/null
> +++ b/arch/arm/dts/mvebu-u-boot.dtsi
> @@ -0,0 +1,24 @@
> +#include <config.h>
> +
> +#ifdef CONFIG_ARMADA_32BIT
> +
> +/ {
> +	soc {
> +		u-boot,dm-pre-reloc;
> +		internal-regs {
> +			u-boot,dm-pre-reloc;
> +		};
> +	};
> +};
> +
> +&uart0 {
> +	u-boot,dm-pre-reloc;
> +};
> +
> +#ifdef CONFIG_SPL_SPI
> +&spi0 {
> +	u-boot,dm-pre-reloc;
> +};
> +#endif
> +
> +#endif

Viele Grüße,
Stefan Roese
diff mbox series

Patch

diff --git a/arch/arm/dts/mvebu-u-boot.dtsi b/arch/arm/dts/mvebu-u-boot.dtsi
new file mode 100644
index 000000000000..5538f95148de
--- /dev/null
+++ b/arch/arm/dts/mvebu-u-boot.dtsi
@@ -0,0 +1,24 @@ 
+#include <config.h>
+
+#ifdef CONFIG_ARMADA_32BIT
+
+/ {
+	soc {
+		u-boot,dm-pre-reloc;
+		internal-regs {
+			u-boot,dm-pre-reloc;
+		};
+	};
+};
+
+&uart0 {
+	u-boot,dm-pre-reloc;
+};
+
+#ifdef CONFIG_SPL_SPI
+&spi0 {
+	u-boot,dm-pre-reloc;
+};
+#endif
+
+#endif