Hello, @liuchi
Thanks for your reply.
From my understanding, actually whether enabled some of the functions in TFA or later in uboot/kernel depends on your specific design and nature booting sequence for your hardware. The code implemented in the BSP is a kind of reference.
For example, it is nature to have the PMIC, Core be enabled at the beginning, so it should be put in the TFA since you only use BSP, if the first stage is not TFA but other bootloaders, then these code have to be put into other bootloader. For DDR, it you did not use DDR from your TFA(say put it into SRAM), then it is possible to enable it later in u-boot, the IOMUX settings are similar, from BSP perspective, some of them are done in TFA, but you may also put more of them into kernel booting phase.
1. So theoretically, you may put more iomux setting to the kernel part, it is possible, but since currently, from BSP perspective, some kernel drivers may also obtain/depend on settings/configurations from u-boot, then if you want to move them fully to the kernel, there should be some more code changes instead of only changing the dts in kernel/tfa.
2. Yes, it could be set from the dts, you may reference the kernel dts file of s32 for reference.
BR
Chenyin