pwm-tiehrpwm.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. TI SOC EHRPWM based PWM controller
  2. Required properties:
  3. - compatible: Must be "ti,<soc>-ehrpwm".
  4. for am33xx - compatible = "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
  5. for am4372 - compatible = "ti,am4372-ehrpwm", "ti-am3352-ehrpwm", "ti,am33xx-ehrpwm";
  6. for da850 - compatible = "ti,da850-ehrpwm", "ti-am3352-ehrpwm", "ti,am33xx-ehrpwm";
  7. for dra746 - compatible = "ti,dra746-ehrpwm", "ti-am3352-ehrpwm";
  8. - #pwm-cells: should be 3. See pwm.txt in this directory for a description of
  9. the cells format. The only third cell flag supported by this binding is
  10. PWM_POLARITY_INVERTED.
  11. - reg: physical base address and size of the registers map.
  12. Optional properties:
  13. - clocks: Handle to the PWM's time-base and functional clock.
  14. - clock-names: Must be set to "tbclk" and "fck".
  15. Example:
  16. ehrpwm0: pwm@48300200 { /* EHRPWM on am33xx */
  17. compatible = "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
  18. #pwm-cells = <3>;
  19. reg = <0x48300200 0x100>;
  20. clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
  21. clock-names = "tbclk", "fck";
  22. };
  23. ehrpwm0: pwm@48300200 { /* EHRPWM on am4372 */
  24. compatible = "ti,am4372-ehrpwm", "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
  25. #pwm-cells = <3>;
  26. reg = <0x48300200 0x80>;
  27. clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
  28. clock-names = "tbclk", "fck";
  29. ti,hwmods = "ehrpwm0";
  30. };
  31. ehrpwm0: pwm@1f00000 { /* EHRPWM on da850 */
  32. compatible = "ti,da850-ehrpwm", "ti,am3352-ehrpwm", "ti,am33xx-ehrpwm";
  33. #pwm-cells = <3>;
  34. reg = <0x1f00000 0x2000>;
  35. };
  36. ehrpwm0: pwm@4843e200 { /* EHRPWM on dra746 */
  37. compatible = "ti,dra746-ehrpwm", "ti,am3352-ehrpwm";
  38. #pwm-cells = <3>;
  39. reg = <0x4843e200 0x80>;
  40. clocks = <&ehrpwm0_tbclk>, <&l4_root_clk_div>;
  41. clock-names = "tbclk", "fck";
  42. };