nxp,trgmux

Description

NXP TRGMUX peripheral wrapper.

TRGMUX provides per-device output trigger inputs. Each device exposes
up to 4 trigger input slots, and each slot can be routed to one of the
TRGMUX trigger sources.

The first cell selects the destination device, the second selects the
trigger input slot. The state value is the source to route to that slot.

Examples

trgmux0: trgmux@40063000 {
        compatible = "nxp,trgmux";
        reg = <0x40063000 0x1000>;
        #mux-control-cells = <2>;
        #mux-state-cells = <3>;
};

adc-trigger {
        mux-states = <&trgmux0 5 1 7>; /* device=5, input=1, source=7 */
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

#mux-control-cells

int

Number of cells in a "mux-controls" specifier. These cells form the
addressing portion only (which output line) and do NOT include the
target state value. Drivers receive the addressing cells in the
"cells" field of struct mux_control.

This property is required.

Constant value: 2

#mux-state-cells

int

Number of cells in a "mux-states" specifier. Equals
#mux-control-cells + 1: the trailing cell carries the default state
value. Backends may name the trailing cell whatever best describes
the hardware (e.g. "state" for a generic mux, "input" for an
XBAR, "source" for a TRGMUX).

This property is required.

Constant value: 3

Specifier cell names

  • mux-control cells: device, input

  • mux-state cells: device, input, source