cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Setup for STM32MP257f.

_Krishna
Associate II

 

Hello,

I’m currently rebuilding the device tree (DTS) for our custom board. I’ve modified the pin configurations according to our schematic. Could you please confirm if updating only the following files is sufficient for our customization?

  • stm32mp257f-ev1.dts

  • stm32mp25-pinctrl.dtsi

My understanding is that these two files should cover the required pin configuration changes for our board, and the rest of the device tree files can remain unchanged.

Also, I would like to avoid the consumer=kernel messages that appear when running the command:

 

 
cat /sys/kernel/debug/pinmux-pins/*/pins

Could you please confirm if my approach is correct, or if there are any additional changes needed elsewhere in the device tree?

Best regards,
Preetham.


Please suggest points that help to my work.

2 REPLIES 2
Erwan SZYMANSKI
ST Employee

Hello @_Krishna ,
Your overall understanding is partially correct.

Indeed, you have to modify what we call the board device tree (DTS) so that the HW configuration matches with your own board. The pinctrl as you mentioned it is to adapt to your needs too, but you can rewrite the pin configuration in your board DTS file.

However, for your own design, sometimes starting from the Evaluation board DTS is a bit tricky. CubeMX tool is supposed to create you all the device tree you need regarding the configuration you set.

Another important point, because it seems that you are targeting the Linux kernel here, but the DTS have to be changed/adapted in every BSP component (Linux, OP-TEE, U-Boot, TF-A) if you hope to get a bootable board at the end.

DDR configuration is also to adapt depending on your design.

Kind regards,
Erwan.

PS: Some useful links:
https://wiki.st.com/stm32mpu/wiki/How_to_create_STM32MPU_projects_with_STM32CubeMX
https://wiki.st.com/stm32mpu/wiki/How_to_create_your_product_from_design_to_manufacturing

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.
_Krishna
Associate II

Hii Erwan,
      Thanks for replying your answer is bit tricky for me to understand since I am a beginner can you please elaborate so that I ca understand as a beginner?







Thanks and regards,
Preetham