Documentation / devicetree / bindings / pwm / ti,omap-dmtimer-pwm.yaml


Based on kernel version 6.11. Page generated on 2024-09-24 08:21 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/pwm/ti,omap-dmtimer-pwm.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: TI dual mode timer PWM controller

maintainers:
  - Tony Lindgren <tony@atomide.com>

description:
  TI dual mode timer instances have an IO pin for PWM capability

allOf:
  - $ref: pwm.yaml#

properties:
  compatible:
    const: ti,omap-dmtimer-pwm
 
  "#pwm-cells":
    const: 3

  ti,timers:
    description: Timer instance phandle for the PWM
    $ref: /schemas/types.yaml#/definitions/phandle

  ti,prescaler:
    description: |
      Legacy clock prescaler for timer. The timer counter is prescaled
      with 2^n where n is the prescaler.
    $ref: /schemas/types.yaml#/definitions/uint32
    enum: [ 0, 1, 2, 3, 4, 5, 6, 7 ]
    deprecated: true

  ti,clock-source:
    description: |
      Legacy clock for timer, please use assigned-clocks instead.
      0x00 - high-frequency system clock (timer_sys_ck)
      0x01 - 32-kHz always-on clock (timer_32k_ck)
      0x02 - external clock (timer_ext_ck, OMAP2 only)
    $ref: /schemas/types.yaml#/definitions/uint32
    enum: [ 0, 1, 2 ]
    deprecated: true

required:
  - compatible
  - ti,timers

unevaluatedProperties: false

examples:
  - |
    pwm9: pwm {
      compatible = "ti,omap-dmtimer-pwm";
      ti,timers = <&timer9>;
      #pwm-cells = <3>;
    };