ti,am13e2-xbar-in

Description

TI AM13E2 Input XBAR peripheral binding.

Routes a GPIO pin (raw GPIO number, TRM Table 20-9) into one of the 28
INPUTXBAR channels. A consumer selects the channel via the control cell.

The trailing mux-states cell is packed with
AM13E2_XBAR_IN_STATE(pin, raw) from
<zephyr/dt-bindings/mux/ti_am13e2_xbar_in.h> - each GPIO's signal
reaches the Input X-BAR through a RAW_INPUTSELECT_Pn mux (TRM Figure
20-1): raw=1 selects the raw pad signal, raw=0 (reset default) selects
the signal after the GPIO peripheral module processes it. This SoC has
no GPIO driver yet, so raw=1 is the only usable value today; raw=0
becomes meaningful once an AM13E GPIO driver exists.

Consumers may also drive the channel at runtime with mux-controls and
mux_control_set(dev, AM13E2_XBAR_IN_STATE(gpio_number, 1)).

Examples

#include <zephyr/dt-bindings/mux/ti_am13e2_xbar_in.h>

&xbar1 {
        status = "okay";
};

my_consumer {
        mux-states = <&xbar1 CHANNEL AM13E2_XBAR_IN_STATE(GPIO_NUMBER, 1)>;
};

&xbar1 {
        status = "okay";
};

my_consumer {
        mux-controls = <&xbar1 CHANNEL>;
};

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: 1

#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: 2

ti,pwren

phandle-array

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

Specifier cell names

  • mux-control cells: channel

  • mux-state cells: channel, pin