1# Copyright (c) 2023, Meta
2# SPDX-License-Identifier: Apache-2.0
3
4description: Generic Device Multiplexer
5
6compatible: "zephyr,devmux"
7
8include: [base.yaml, mutable.yaml]
9
10properties:
11
12  devices:
13    type: phandles
14    required: true
15    description: |
16      Devices to be multiplexed.
17
18  selected:
19    type: int
20    default: 0
21    description: |
22      Initial multiplexer selection.
23
24      This must be in the range [0, N-1], where N is the length of the
25      'devices' phandle list.
26
27      If unspecified, the default selection is zero in order to ensure that
28      the multiplexer is ready for use (i.e. one of the [0, N-1] multiplexed
29      devices is selected). Zero is, necessarily, the only possible valid
30      default value since the phandle list must have length >= 1.
31
32      Note: Specifying a value of 'selected' outside the range [0, N-1]
33      results in a compile-time error.
34