Control GPIO In IMX8ULP EVK9

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

Control GPIO In IMX8ULP EVK9

2,817件の閲覧回数
dhruvinrajpura
Contributor III

Hello,

I'm using IMX8ULP EVK9 and i have one onboard RGB LED, now i want to control from command (A- Core) how can i do? RGB LED is connected with PTF10, PTF27, PTF20.

If i need to change in DTS file please provide patch so i can apply.

Thanks in advance

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

2,779件の閲覧回数
dhruvinrajpura
Contributor III

Hello,

Thanks for quick response.

I have applied patch and it's working, now i'm able to control LED. Now i want to control LED using PWM signal so how can i?

Thanks

0 件の賞賛
返信

2,755件の閲覧回数
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @dhruvinrajpura 

 

As i.MX8ULP has not a dedicated PWM modules you must to try with TPM modules. One can try to the pwm-imx-tpm.c driver.

Another solution is using RPMSG, control the PWM signal from Cortex M with RPMSG from Cortex A processor.

 

Best regards

Salas.

0 件の賞賛
返信

2,734件の閲覧回数
dhruvinrajpura
Contributor III

Hello,

I want to use TPM module in A core, please provide patch to enable TPM module and also provide command to conrol pwm signal from user space.

Also I have two pushbutton on IMX8ULP EVK9 for A core which is SW4 and SW2. SW4 is connected with PTF26 and SW2 is connected with PTE17. I have attached patch which i applied to enable PTF26 and PTE17. To get status of pin i'm using "gpioget -c 4 26" command, but all time i'm getting following log:

root@imx8ulp-9x9-lpddr4-evk:~# gpioget -c 4 26
"26"=active
 
I checked voltage changes on gpio pin using multimeter and i got as expected output.
let us know if any changes need to required to get status of pushbutton.
 
Thanks
0 件の賞賛
返信

2,793件の閲覧回数
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @dhruvinrajpura 

 

I hope you are doing well.

 

Sure, I tested on the i.MX8ULP EKV (PTF20, PTF29 and PTE6):

Alejandro_Salas_0-1728935848022.png

 

Please see the attached patch to add gpios on imx8ulp. You must change the pads for your EVK9, just changing PTF10, PTF27 and PTF20 instead of PTF20, PTF29 and PTE6.

 

Then, you will be able to use the gpioset command:

root@imx8ulpevk:~# gpioset -c 3 6=0
^C
root@imx8ulpevk:~# gpioset -c 4 20=0
^C
root@imx8ulpevk:~# gpioset -c 4 29=0

 

Best regards,

Salas.

 

0 件の賞賛
返信