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

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