imx8mp: u-boot Enable clock-controller@30380000 failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx8mp: u-boot Enable clock-controller@30380000 failed

2,109 次查看
arno_0
Contributor III

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?

0 项奖励
回复
2 回复数

2,094 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You need add the device clock refering other clk and linux kernel driver.

0 项奖励
回复

2,092 次查看
arno_0
Contributor III

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?

 

0 项奖励
回复