I need to address a SPI device on uboot level. I added SPI in menuconfig and enabled it in devicetree:
&ecspi1 {
status = "okay";
};
If running a SPI command I get the message: "Enable clock-controller@30380000 failed"
Looking at the clk_imx8mp.c the DM_SPI section as for example in clk_imx8mn.c is missed.
Is that the reason?
You need add the device clock refering other clk and linux kernel driver.
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?