cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable PWM pin

asadullah4571
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan SZYMANSKI
ST Employee

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.

View solution in original post

3 REPLIES 3
Erwan SZYMANSKI
ST Employee

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.

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 

PLEASE help  me out this 

number 1.    i have to change in both menuconfig file as well as device tree.
number 2.    in which dts file i will have to add or change ( I am using STM32MP157f-dk2 board with Distribution 

                     Package) .