Skip to main content
asadullah4571
Associate III
August 23, 2024
Solved

How to enable PWM pin

  • August 23, 2024
  • 1 reply
  • 1106 views

i am facing the issue like i could  not able to access the PWM pins
i want like this only (/sys/class/pwm/pwmchipX/).

but i get output like this only. 

{

root@stm32mp1:~# cd /sys/class/pwm/
root@stm32mp1:/sys/class/pwm# ls
root@stm32mp1:/sys/class/pwm# ls

}

Note: i am using qt quick i want to read Pins as a PWM and get back to display.

Best answer by Erwan SZYMANSKI

Hello @asadullah4571 ,
Please refer to following wiki pages :

Kind regards,
Erwan.

1 reply

Erwan SZYMANSKI
Erwan SZYMANSKIBest answer
Technical Moderator
August 23, 2024

Hello @asadullah4571 ,
Please refer to following wiki pages :

Kind regards,
Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
asadullah4571
Associate III
August 23, 2024

i configured the kernel defconfig 
PC> bitbake -c menuconfig virtual/kernel 
i configured the PWM [M] (module) to [*] (built in).

and now comming to Device tree.
i didn't change any thing in .dtsi (stm32mp151.dtsi) (Stm32 microprocessr level) as According to your reference.
so should i change in .dts (stm32mp157f-dk2.dts) file (board level). 
i follow this one https://wiki.st.com/stm32mpu/wiki/TIM_device_tree_configuration#

i did not understand any thing 
please help me out , i stuck from the last 4 days