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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,115件の閲覧回数
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,100件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

2,098件の閲覧回数
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 件の賞賛
返信