cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with PWM [sysfs interface] STM32MP135D

George_Z
Visitor

Good day.
I'm new in MPU programming. I haw read the article https://community.st.com/t5/stm32-mpus-embedded-software/struggling-with-pwm-sysfs-interface-stm32mp157f/td-p/67706 but it not help me.
I’m trying to activate PWM (timer5 ch1 H10)
Device tree configuration:
pwm5_pins_h: pwm5-1 {
     pins {
             pinmux = <STM32_PINMUX('H', 10, AF2)>;
             bias-pull-down; 
             drive-push-pull;
             slew-rate = <0>;
             };

};

 pwm5_sleep_pins_h: pwm5-sleep-1 {
      pins {
              pinmux = <STM32_PINMUX('H', 10, ANALOG)>;
       };
 };

&timers5 {
         status = "okay";
         /delete-property/dmas;
         /delete-property/dma-names;
         pwm{
                 pinctrl-0 = <&pwm5_pins_h>;
                 pinctrl-1 = <&pwm5_sleep_pins_h>;
                 pinctrl-names = "default", "sleep";
                status = "okay";
        };
};
But when I try to check PWM device using command 

ls /sys/class/pwm

there is no any devices.

When i try check GPIO state using command

cat /sys/kernel/debug/pinctrl/soc\:pin-controller@50002000/pinmux-pins | grep "timer"

i see that H10 is UNCLAIMED

What I doing wrong?

With the best regards,

George

0 REPLIES 0