Device tree and clock configurations
Hi,
We are using the STM32MP157f-ev1 board for our initial development and this is our first time using Linux kernel, we have been following the development package wiki links for building kernel, u-boot and tf-a. We used the STM32CubeIDE's inbuilt cubeMx to generate device trees.
For now we have been successful with modifying the kernel device tree to enable couple of USARTs, build it in kernel code base, push it to target, modify the mmc0_extlinux/stm32mp157f-ev1_extlinux.conf in boot partition to load the custom device tree while booting up, test them on the evaluation board and the USARTs are working as expected and we see successful data transfers.
However when we modify the clock configuration using the STMCubeIDE/CubeMx we see the changes are being done to the device tree under u-boot and tf-a folders.
I have the following questions:
- If I copy the u-boot and tf-a device trees to their corresponding source code and build them, how to make sure that the device boots up with custom u-boot or tf-a device trees. Is there any config file which needs to be updated for this like we do for kernel?
- Is it possible to add the clock configurations (MPU,MCU etc) to the kernel device tree and build in kernel code, so that we have to deal with only a single device tree instead of many different ones.
Any help is much appreciated.
Thanks.
