ti,mspm0-timer-pwm

Vendor: Texas Instruments

Note

An implementation of a driver matching this compatible is available in drivers/pwm/pwm_mspm0.c.

Description

TI MSPM0 PWM node for MSPM0 SoCs. Each channel in MSPM0 can be configured
to use for PWM operation. There are three PWM modes supported by hardware.

timer0: timer {
  pwm0: pwm {
    compatible = "ti,mspm0g-timer-pwm";
    #pwm-cells = <3>;

    ti,cc-index = <0>;
    ti,pwm-mode = "PULSE_WIDTH";
    ti,period = <1000>;
  };
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

This property is required.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.

This property is required.

ti,cc-index

array

Capture input/Compare output index, should match with the pin function.

This property is required.

ti,pwm-mode

string

Select PWM OUT mode:
- EDGE_ALIGN: generate pulses with edge aligned down counting mode.

- EDGE_ALIGN_UP: generate pulses with edge aligned up counting mode.

- CENTER_ALIGN: generates pulses center aligned up and down counting mode.

Legal values: 'EDGE_ALIGN', 'EDGE_ALIGN_UP', 'CENTER_ALIGN'

ti,cc-mode

string

Select input capture mode:
- EDGE_TIME: capture edge time mode.

- PULSE_WIDTH: capture pulse width and/or period mode.

Legal values: 'EDGE_TIME', 'PULSE_WIDTH'

ti,period

int

Time period in TIMCLK cycle for Capture mode or PWM output.

This property is required.

#pwm-cells

int

Number of items to expect in a pwm specifier

This property is required.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

Specifier cell names

  • pwm cells: channel, period, flags