cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP2: Modifying and using CubeMX Device Tree

Jacob1234
Associate

Hey,,
I'm working on an STM32MP2 project and need help with Yocto. I generated a device tree with CubeMX and want to modify it so that I can activate the ums 0 mmc 1 command in the U-Boot terminal with the USB configured for 3.x speeds instead of the 2.0 basic configuration, then build a Yocto image (e.g., st-core-weston). Where do I place the DTS files, and how do I integrate them into the Yocto build?

Any tips or guides would be great!
Thanks!

2 REPLIES 2
Gregory PLANCHON
ST Employee

Hi @Jacob1234 ,

 

You can use this page for help : 

https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Distribution_Package

 

Regards,

Grégory 

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.
Jacob1234
Associate

I tried with Buildroot. I modified the default devicetree so that the ums 0 mmc 1 command in the U-Boot terminal would launch the USB configured for 3.x speeds instead of the 2.0 basic configuration. The .config file would be configurated with the UI provided by the “make uboot-menuconfig” command, to set the specific drivers. However, after I build the image and run the “ums 0 mmc 1” command, UBoot tries to configure dwc3 as usb 3. After this, I get a prompt saying “Failed to configure PHY1 to USB3DRD”. I tried to find any details about the USB3 - PHY1 dependency on the st mp wiki and even in the reference manual or the default device tree .dts file, but without success.
Any tips or guides would be great!
Thanks!