Issue in U-boot SPI driver initialization

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue in U-boot SPI driver initialization

451 Views
kanimozhi_t
Contributor V

Hi Team,
       
                We are facing issue will initializing SPI driver in u-boot while i2c drivers seems to be working fine by default.
                Basically we were trying to bringup TPM device via SPI interface at u-boot.
                We have done the same changes for linux kernel we could communicate with TPM on linux kernel, same we are trying to do on u-boot.
 
Changes we have done:
u-boot-imx/arch/arm/dts/imx8mm-evk.dtsi

 

 

&ecspi2 {
#address-cells = <1>;
#size-cells = <0>;
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_ecspi2_cs>;
cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
status = "okay";

tpm0: slb9670@0 {
compatible = "tcg,tpm_tis-spi";
spi-max-frequency = <10000000>;
reg = <0>;
status = "okay";
};
};

 

 

 

In u-boot-imx/arch/arm/dts/imx8mm.dtsi:
we observe that compatiblility for spi --> fsl,imx51-ecspi

kanimozhi_t_1-1694781121426.png

so we have added debug prints to check whether SPI is initialized at /u-boot-imx/drivers/spi/mxc_spi.c
in func --> mxc_spi_probe(struct udevice *bus).

But we couldn't see any debug prints at u-boot we have added.
But i2c_probe function gets invoked.

Please clarify us the issue.

Thanks,
Kanimozhi

Labels (1)
Tags (3)
0 Kudos
1 Reply

421 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Which print are you referring to? since you modify the code you have to build it, then burn again your board with the bootloader.

 

Regards

0 Kudos