Enabling TPM on A core imx8ulp

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

Enabling TPM on A core imx8ulp

Jump to solution
2,415 Views
wendy-liu
Contributor II

Hi @Chavira

     I'm using iMX8ULP-evk to enable TPM in A core according to your article: https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-use-PWM-on-iMX93-EVK-board/ta-p/1... 

    I chose PTF19 (J20 pin3) to generate PWM signal.

wendyliu_0-1740448715122.png

     After flashing, I open a terminal and execute the following commands:

cd /sys/class/pwm/pwmchip0;
echo 0 > export;
cd pwm0;
echo 400000 > period;
echo 200000 > duty_cycle;
echo 1 > enable;

    Then , I use oscilloscope to measure it waveform , and it keeps outputting a high-level signal.

    Could you give me some advice?

    My dts ,config, log are as below.

Best Regard!

Labels (1)
0 Kudos
Reply
1 Solution
2,275 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @wendy-liu!

Try changing the driver from "fsl,imx7ulp-tpm" to "fsl,imx7ulp-pwm" in imx8ulp.dtsi.

tpm5: tpm@29340000 {
      compatible = "fsl,imx8ulp-tpm", "fsl,imx7ulp-pwm";

 

Additional you should disable the LPSPI5 since the LPSPI5 is using the pin PTF19.

 

Best Regards!]

Chavira

 

View solution in original post

0 Kudos
Reply
5 Replies
2,399 Views
wendy-liu
Contributor II

@Chavira 

Also, tpm_rpchip_0 is the node(/sys/class/pwm/pwmchip0/), but where is tpm5?

And, which TPM does tpm_rpchip_0 control?

There are some questions I would like to ask you.Hope your reply!Thanks a lot!

0 Kudos
Reply
2,379 Views
Chavira
NXP TechSupport
NXP TechSupport

HI @wendy-liu!
Thank you for contacting NXP Support!

 

I will start with the research of this issue.

It looks like the TPM only can be managed by M core and you can control the TPM module using rpmsg only.

 

I will give you an update as soon as possible.

 

Best Regards!

Chavira

0 Kudos
Reply
2,371 Views
wendy-liu
Contributor II

@Chavira 

Looking forward your reply!

Thank you very much!

0 Kudos
Reply
2,276 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @wendy-liu!

Try changing the driver from "fsl,imx7ulp-tpm" to "fsl,imx7ulp-pwm" in imx8ulp.dtsi.

tpm5: tpm@29340000 {
      compatible = "fsl,imx8ulp-tpm", "fsl,imx7ulp-pwm";

 

Additional you should disable the LPSPI5 since the LPSPI5 is using the pin PTF19.

 

Best Regards!]

Chavira

 

0 Kudos
Reply
2,244 Views
wendy-liu
Contributor II

Thanks! I have been solved!

Best Regards!

0 Kudos
Reply