It is about u-boot, not kernel. I need to write some spi command in uboot.
Could you please explain more in details what is needed to add? With that device tree change above it is enabled, all the other settings for spi are defined in imx8mp.dtsi, isn't it?
Drivers of uboot are already added by:
CONFIG_CMD_SPI=y
CONFIG_DEFAULT_SPI_BUS=0
CONFIG_DEFAULT_SPI_MODE=0
CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_MXC_SPI=y
Do you mean adding the missing part in driver/clk/imx/clk_imx8mp.c ? Can I take over that from imx8mn? Honestly speaking I don't know how to fill that values. Can I take that over 1:1 from imx8mn?