ti,omap-dmtimer-pwm.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/pwm/ti,omap-dmtimer-pwm.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TI dual mode timer PWM controller
  7. maintainers:
  8. - Tony Lindgren <tony@atomide.com>
  9. description:
  10. TI dual mode timer instances have an IO pin for PWM capability
  11. allOf:
  12. - $ref: pwm.yaml#
  13. properties:
  14. compatible:
  15. const: ti,omap-dmtimer-pwm
  16. "#pwm-cells":
  17. const: 3
  18. ti,timers:
  19. description: Timer instance phandle for the PWM
  20. $ref: /schemas/types.yaml#/definitions/phandle
  21. ti,prescaler:
  22. description: |
  23. Legacy clock prescaler for timer. The timer counter is prescaled
  24. with 2^n where n is the prescaler.
  25. $ref: /schemas/types.yaml#/definitions/uint32
  26. enum: [ 0, 1, 2, 3, 4, 5, 6, 7 ]
  27. deprecated: true
  28. ti,clock-source:
  29. description: |
  30. Legacy clock for timer, please use assigned-clocks instead.
  31. 0x00 - high-frequency system clock (timer_sys_ck)
  32. 0x01 - 32-kHz always-on clock (timer_32k_ck)
  33. 0x02 - external clock (timer_ext_ck, OMAP2 only)
  34. $ref: /schemas/types.yaml#/definitions/uint32
  35. enum: [ 0, 1, 2 ]
  36. deprecated: true
  37. required:
  38. - compatible
  39. - ti,timers
  40. unevaluatedProperties: false
  41. examples:
  42. - |
  43. pwm9: pwm {
  44. compatible = "ti,omap-dmtimer-pwm";
  45. ti,timers = <&timer9>;
  46. #pwm-cells = <3>;
  47. };