pwm-st.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. STMicroelectronics PWM driver bindings
  2. --------------------------------------
  3. Required parameters:
  4. - compatible : "st,pwm"
  5. - #pwm-cells : Number of cells used to specify a PWM. First cell
  6. specifies the per-chip index of the PWM to use and the
  7. second cell is the period in nanoseconds - fixed to 2
  8. for STiH41x.
  9. - reg : Physical base address and length of the controller's
  10. registers.
  11. - pinctrl-names: Set to "default".
  12. - pinctrl-0: List of phandles pointing to pin configuration nodes
  13. for PWM module.
  14. For Pinctrl properties, please refer to [1].
  15. - clock-names: Set to "pwm".
  16. - clocks: phandle of the clock used by the PWM module.
  17. For Clk properties, please refer to [2].
  18. Optional properties:
  19. - st,pwm-num-chan: Number of available channels. If not passed, the driver
  20. will consider single channel by default.
  21. [1] Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
  22. [2] Documentation/devicetree/bindings/clock/clock-bindings.txt
  23. Example:
  24. pwm1: pwm@fe510000 {
  25. compatible = "st,pwm";
  26. reg = <0xfe510000 0x68>;
  27. #pwm-cells = <2>;
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&pinctrl_pwm1_chan0_default
  30. &pinctrl_pwm1_chan1_default
  31. &pinctrl_pwm1_chan2_default
  32. &pinctrl_pwm1_chan3_default>;
  33. clocks = <&clk_sysin>;
  34. clock-names = "pwm";
  35. st,pwm-num-chan = <4>;
  36. };