Enable TPM (infineon slb9670) support in iMX8MM EVK

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

Enable TPM (infineon slb9670) support in iMX8MM EVK

487 Views
gsbalajikrishnan
Contributor II

Hello,

I am using iMX8MM EVK and TPM (Infineon SLB9670).

First of all, checked the spi loop back test in user space of imx8mm board itself by connecting (MOSI pin to MISO pin) and it was working fine.

 How to interface the TPM with imx8mm board?

1. I want to know what the possible ways are to enable tpm2.0(optiga slb9670) with imx8mm board.

2. Does U-Boot and kernel have capability to enable tpm? if it is possible, how can i proceed?

 3. Though I enabled CONFIG_TCG_TPM = y in kernel make menuconfig and included the the content in kernel device tree imx8mm-evk.dts as below, it is not listed in kernel space

&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";

    spidev0: spi@0 {
        reg = <0>;
        compatible = "rohm,dh2228fv";
        spi-max-frequency = <500000>;
    };
    tpm0: slb9670@0 {
        compatible="infineon, slb9670";
        reg = <0>;
        resets = <&tpm_reset>;
        spi-max-frequency = <38000000>;
        interrupt-parent = <&gpio5
        interrupts = <IRQ_TYPE_LEVEL_LOW>;
        status = "okay";
    };
};

is this dts file configuration right?

4. Any other steps need to be followed in order to interface tpm?

kindly let me know your suggestions.

 

Thanks & Regards,

Balajikrishnan.G.S

0 Kudos
Reply
1 Reply

448 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

For this I believe it would be better to check with the part vendor itself, since the bindings available in the kernel documentation are very simple and pretty much what you already have.

Best regards,
Aldo.

0 Kudos
Reply