Control GPIO In IMX8ULP EVK9

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

Control GPIO In IMX8ULP EVK9

3,411 次查看
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

0 项奖励
回复
4 回复数

3,373 次查看
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 项奖励
回复

3,349 次查看
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 项奖励
回复

3,328 次查看
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 项奖励
回复

3,387 次查看
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 项奖励
回复