pwm-tiecap.txt 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. TI SOC ECAP based APWM controller
  2. Required properties:
  3. - compatible: Must be "ti,<soc>-ecap".
  4. for am33xx - compatible = "ti,am33xx-ecap";
  5. for da850 - compatible = "ti,da850-ecap", "ti,am33xx-ecap";
  6. - #pwm-cells: Should be 3. Number of cells being used to specify PWM property.
  7. First cell specifies the per-chip index of the PWM to use, the second
  8. cell is the period in nanoseconds and bit 0 in the third cell is used to
  9. encode the polarity of PWM output. Set bit 0 of the third in PWM specifier
  10. to 1 for inverse polarity & set to 0 for normal polarity.
  11. - reg: physical base address and size of the registers map.
  12. Optional properties:
  13. - ti,hwmods: Name of the hwmod associated to the ECAP:
  14. "ecap<x>", <x> being the 0-based instance number from the HW spec
  15. Example:
  16. ecap0: ecap@0 { /* ECAP on am33xx */
  17. compatible = "ti,am33xx-ecap";
  18. #pwm-cells = <3>;
  19. reg = <0x48300100 0x80>;
  20. ti,hwmods = "ecap0";
  21. };
  22. ecap0: ecap@0 { /* ECAP on da850 */
  23. compatible = "ti,da850-ecap", "ti,am33xx-ecap";
  24. #pwm-cells = <3>;
  25. reg = <0x306000 0x80>;
  26. };