Enabling TPM on A core imx8ulp

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Enabling TPM on A core imx8ulp

跳至解决方案
2,375 次查看
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!

标签 (1)
0 项奖励
回复
1 解答
2,235 次查看
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 项奖励
回复
5 回复数
2,359 次查看
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 项奖励
回复
2,339 次查看
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 项奖励
回复
2,331 次查看
wendy-liu
Contributor II

@Chavira 

Looking forward your reply!

Thank you very much!

0 项奖励
回复
2,236 次查看
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 项奖励
回复
2,204 次查看
wendy-liu
Contributor II

Thanks! I have been solved!

Best Regards!

0 项奖励
回复