stm32-timers.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. STM32 Timers driver bindings
  2. This IP provides 3 types of timer along with PWM functionality:
  3. - advanced-control timers consist of a 16-bit auto-reload counter driven by a programmable
  4. prescaler, break input feature, PWM outputs and complementary PWM ouputs channels.
  5. - general-purpose timers consist of a 16-bit or 32-bit auto-reload counter driven by a
  6. programmable prescaler and PWM outputs.
  7. - basic timers consist of a 16-bit auto-reload counter driven by a programmable prescaler.
  8. Required parameters:
  9. - compatible: must be "st,stm32-timers"
  10. - reg: Physical base address and length of the controller's
  11. registers.
  12. - clock-names: Set to "int".
  13. - clocks: Phandle to the clock used by the timer module.
  14. For Clk properties, please refer to ../clock/clock-bindings.txt
  15. Optional parameters:
  16. - resets: Phandle to the parent reset controller.
  17. See ../reset/st,stm32-rcc.txt
  18. Optional subnodes:
  19. - pwm: See ../pwm/pwm-stm32.txt
  20. - timer: See ../iio/timer/stm32-timer-trigger.txt
  21. Example:
  22. timers@40010000 {
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. compatible = "st,stm32-timers";
  26. reg = <0x40010000 0x400>;
  27. clocks = <&rcc 0 160>;
  28. clock-names = "int";
  29. pwm {
  30. compatible = "st,stm32-pwm";
  31. pinctrl-0 = <&pwm1_pins>;
  32. pinctrl-names = "default";
  33. };
  34. timer@0 {
  35. compatible = "st,stm32-timer-trigger";
  36. reg = <0>;
  37. };
  38. };