ti,am3352-ecap

Description

TI SOC ECAP based PWM controller

On SoCs where the eCAP's pins are reachable only through a crossbar
(e.g. AM13E), reference the crossbar via "mux-states" instead of adding
SoC-specific pinmux logic to this driver:

  &ecap0 {
          pinctrl-0 = <&my_apwm_pin>;
          pinctrl-names = "default";

          mux-states = <&xbar_out AM13E2_XBAR_OUT_CTRL(idx, group, bit) 1>;
          mux-state-names = "output";
  };

  &ecap1 {
          pinctrl-0 = <&my_capture_pin>;
          pinctrl-names = "default";

          mux-states = <&xbar_in CHANNEL AM13E2_XBAR_IN_STATE(GPIO_NUMBER, 1)>;
          mux-state-names = "input";
  };

A "mux-states" entry named "input" additionally feeds this eCAP's own
ECCTL0.INPUTSEL field (AM13E-only) with that entry's crossbar channel,
since ECCTL0 is a mux internal to the eCAP, separate from the crossbar
itself.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

clock-frequency

int

Optional peripheral frequency to use if the clock is absent

#pwm-cells

int

Number of items to expect in a pwm specifier

This property is required.

Constant value: 3

ti,pwren

phandle-array

Power-enable this peripheral via SYSCTL.PWREN_*.
Format: <&sysctl offset bit>.

channels

int

Number of PWM channels supported by the controller.

pinctrl-0

phandles

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

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.

pinctrl-names

string-array

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

mux-controls

phandle-array

List of MUX controller specifiers. Each entry is a phandle to a MUX
controller followed by #mux-control-cells addressing cells.

mux-control-names

string-array

Optional names for the entries in "mux-controls"

mux-states

phandle-array

List of MUX state specifiers. Each entry is a phandle to a MUX
controller followed by #mux-state-cells cells: the addressing cells
followed by a trailing "state" cell carrying the default state value.

mux-state-names

string-array

Optional names for the entries in "mux-states"

Specifier cell names

  • pwm cells: channel, period, flags