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