Enabling TPM on A core imx8ulp

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Enabling TPM on A core imx8ulp

ソリューションへジャンプ
2,402件の閲覧回数
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,262件の閲覧回数
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,386件の閲覧回数
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,366件の閲覧回数
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,358件の閲覧回数
wendy-liu
Contributor II

@Chavira 

Looking forward your reply!

Thank you very much!

0 件の賞賛
返信
2,263件の閲覧回数
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,231件の閲覧回数
wendy-liu
Contributor II

Thanks! I have been solved!

Best Regards!

0 件の賞賛
返信