The latest development version of this page may be more current than this released 3.7.0 version.

zephyr,devmux

Vendor: Zephyr-specific binding

Description

Generic Device Multiplexer

Properties

Properties not inherited from the base binding file.

Name

Type

Details

zephyr,mutable

boolean

True if and only if the device structure may be mutated.

Inherit this binding for devices that are runtime-modifiable, in-place.
This places the device structure into SRAM rather than Flash.

devices

phandles

Devices to be multiplexed.

This property is required.

selected

int

Initial multiplexer selection.

This must be in the range [0, N-1], where N is the length of the
'devices' phandle list.

If unspecified, the default selection is zero in order to ensure that
the multiplexer is ready for use (i.e. one of the [0, N-1] multiplexed
devices is selected). Zero is, necessarily, the only possible valid
default value since the phandle list must have length >= 1.

Note: Specifying a value of 'selected' outside the range [0, N-1]
results in a compile-time error.