cancel
Showing results for 
Search instead for 
Did you mean: 

"stm32mp15-no-scmi.dtsi:103.1-5 Label or path dsi not found"

AMurr.2282
Associate III

When building a distro for our custom board with a STM32MP153AAC, u-boot-stm32mp fails to build when UBOOT_CONFIG is set to "basic". We would like to do a ddr3 test, this is the reason for the config.

Here is the relevant section from conf/machine/stm32mp1-raichu-v2.conf file

###########################################################################
#
# User machine customization sections
#
###########################################################################
 
# Boot Scheme
# =========================================================================
BOOTSCHEME_LABELS += "trusted"
# WORKAROUND to generate U-BOOT SPL for DDR Tuning tools usage
UBOOT_CONFIG += "basic"

It seems that the dsi block is defined in arch/arm/dts/stm32mp157.dtsi, but we have a stm32mp153, and the device tree generated by CubeMX only includes stm32mp153.dtsi. So obviously, this isn't going to work:

https://github.com/STMicroelectronics/meta-st-stm32mp/blob/dunfell/recipes-bsp/u-boot/u-boot-stm32mp/0004-ARM-v2020.01-stm32mp-r1-DEVICETREE.patch#L443

12 REPLIES 12

Hi

I too don't see a patch. I see a 98.6MB tar file attached to your post. Would it be possible to post a diff (.patch file) instead?

Many thanks

Hi @AMurr.2282​ ,

Sorry !

Don't know what's going on ..

the patch is very simple actually :

diff --git a/arch/arm/dts/stm32mp15-no-scmi.dtsi b/arch/arm/dts/stm32mp15-no-scmi.dtsi
 
index 4837b34..064fd56 100644
 
--- a/arch/arm/dts/stm32mp15-no-scmi.dtsi
 
+++ b/arch/arm/dts/stm32mp15-no-scmi.dtsi
 
@@ -61,6 +61,10 @@
 
 			clocks = <&rcc CRYP1>;
 
 			resets = <&rcc CRYP1_R>;
 
 		};
 
+
 
+		dsi: dsi@5a000000 {
 
+			clocks = <&rcc DSI_K>, <&clk_hse>, <&rcc DSI_PX>;
 
+		};
 
 	};
 
 
 
 	mlahb {
 
@@ -100,10 +104,6 @@
 
 	clocks = <&rcc DDRPERFM>, <&rcc PLL2_R>;
 
 };
 
 
 
-&dsi {
 
-	clocks = <&rcc DSI_K>, <&clk_hse>, <&rcc DSI_PX>;
 
-};
 
-
 
 &gpioz {
 
 	clocks = <&rcc GPIOZ>;
 
 };

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Thanks! I applied the patch and U-Boot SPL compiled successfully.

I tried to load bootloader/u-boot-spl.stm32 onto the target board using STM32CubeMX DDR Test Suite and now I am getting the following output on serial:

U-Boot SPL 2020.01-stm32mp-r1 (Nov 05 2020 - 11:15:33 +0000)
Model: STMicroelectronics custom STM32CubeMX board
RAM: DDR3-DDR3L 16bits 533000Khz
DDR invalid size : 0x0, expected 0x10000000
DRAM init failed: -22
### ERROR ### Please RESET the board ###

It looks like PMIC isn't enabling DDR3 VDD, VTT or VREF because I measure 0V.

Any idea how I can fix this?