Using multiple pwm output channels on a single timer


Michael Federer
 

Hi all
If I understand the STM32F74xxx specs right, a timer provides provides several independent channels for PWM output signal generation (e.g. TIM1/TIM8 6 channels each).
My question is, how do I have to write my .overlay file to be able to control multiple channels of  a single timer?
So far I was able to control one pwm channel per timer with following configuration:

&timers1 {
status = "okay";
st,prescaler = < 0x2710 >;

pwm1: pwm {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&tim1_ch3_pe13>;
};
};

&timers2 {
status = "okay";
st,prescaler = < 0x2710 >;

pwm2: pwm {
status = "okay";
pinctrl-names = "default";
        pinctrl-0 = <&tim1_ch2_pe11>;
};
};

&timers3 {
status = "okay";
st,prescaler = < 0x2710 >;

pwm3: pwm {
status = "okay";
label="PWM_3";
pinctrl-names = "default";
pinctrl-0 = <&tim1_ch1_pe9>;
};
};

Adding multiple pwmx entries to a timersx entry didn't work. Probably I misunderstand the Zephyr Timer and PWM configuration concept.

I appreciate your help.