pwm-tiecap.txt 1.5 KB

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