pwm-stm32.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. STMicroelectronics STM32 Timers PWM bindings
  2. Must be a sub-node of an STM32 Timers device tree node.
  3. See ../mfd/stm32-timers.txt for details about the parent node.
  4. Required parameters:
  5. - compatible: Must be "st,stm32-pwm".
  6. - pinctrl-names: Set to "default".
  7. - pinctrl-0: List of phandles pointing to pin configuration nodes for PWM module.
  8. For Pinctrl properties see ../pinctrl/pinctrl-bindings.txt
  9. Optional parameters:
  10. - st,breakinput: One or two <index level filter> to describe break input configurations.
  11. "index" indicates on which break input (0 or 1) the configuration
  12. should be applied.
  13. "level" gives the active level (0=low or 1=high) of the input signal
  14. for this configuration.
  15. "filter" gives the filtering value to be applied.
  16. Example:
  17. timers@40010000 {
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. compatible = "st,stm32-timers";
  21. reg = <0x40010000 0x400>;
  22. clocks = <&rcc 0 160>;
  23. clock-names = "int";
  24. pwm {
  25. compatible = "st,stm32-pwm";
  26. pinctrl-0 = <&pwm1_pins>;
  27. pinctrl-names = "default";
  28. st,breakinput = <0 1 5>;
  29. };
  30. };