Describe the bug
I've tried to build the BlinkLed example with the boards o_L476RG, STM32F4_DISCOVERY, Nucleo_F302R8, Nucleo_F401RE but it doesn't build
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should build
Environment (please complete the following information):
Additional context
The boards seems to miss the pwmleds in the dts
Boards supporting/enabling PWM should declare the following or equivalent:
pwmleds {
compatible = "pwm-leds";
red_pwm_led: red_pwm_led {
pwms = <&{/soc/timers@40014000/pwm} 1 4>;
};
};
aliases {
...
pwm-led0 = &red_pwm_led;
...
};
Could you please explain what is the 1 and 4 arguments are used for ?
pwms = <&{/soc/timers@40014000/pwm} 1 4>;
@sercantun, information is available in dts/bindings/pwm/st,stm32-pwm.yaml:
pwm-cells:
- channel
# period in terms of nanoseconds
- period
1: Channel number
4: Period
Period of 4ns looks odd. This should be verified.
@giellamoswhard can you check #22277 answers your question ?
Yes. Thank you very much.
I'm reopening the point.
It will be closed automatically when #22277 gets merged
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.